Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 112.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 180.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2151/0.2151, allocations: 44.18 MB / 336.7 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4187, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01583/0.4346, allocations: 15.09 MB / 0.5336 GB, free: 8.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.4483, allocations: 4.825 MB / 0.5383 GB, free: 4.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004242/0.4526, allocations: 92.91 kB / 0.5384 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007455/0.46, allocations: 3.199 MB / 0.5416 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008159/0.4682, allocations: 2.626 MB / 0.5441 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002965/0.4712, allocations: 0.9847 MB / 0.5451 GB, free: 236 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.4833, allocations: 6.974 MB / 0.5519 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006163/0.4894, allocations: 3.722 MB / 0.5555 GB, free: 6.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004588/0.494, allocations: 2.231 MB / 0.5577 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005062/0.4991, allocations: 3.26 MB / 0.5609 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001785/0.5009, allocations: 484 kB / 0.5614 GB, free: 440 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004507/0.5054, allocations: 1.506 MB / 0.5628 GB, free: 14.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004333/0.5097, allocations: 2.945 MB / 0.5657 GB, free: 11.97 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006784/0.5165, allocations: 3.243 MB / 0.5689 GB, free: 8.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.5308, allocations: 10.5 MB / 0.5791 GB, free: 14.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.5308, allocations: 3.984 kB / 0.5791 GB, free: 14.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5308, allocations: 7.938 kB / 0.5791 GB, free: 14.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004044/0.5312, allocations: 0 / 0.5791 GB, free: 14.15 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0194/0.5506, allocations: 7.494 MB / 0.5865 GB, free: 6.562 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.5507, allocations: 8.031 kB / 0.5865 GB, free: 6.555 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01746/0.5681, allocations: 3.967 MB / 0.5903 GB, free: 2.578 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/0.5802, allocations: 4.198 MB / 0.5944 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005243/0.5807, allocations: 320.4 kB / 0.5947 GB, free: 14 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00269/0.5834, allocations: 439.6 kB / 0.5952 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03266/0.6161, allocations: 15.74 MB / 0.6105 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002613/0.6164, allocations: 59.45 kB / 0.6106 GB, free: 12.84 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001729/0.6181, allocations: 207.8 kB / 0.6108 GB, free: 12.64 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005395/0.6235, allocations: 3.216 MB / 0.6139 GB, free: 9.418 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0299/0.6534, allocations: 14.15 MB / 0.6277 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08113/0.7345, allocations: 57.6 MB / 0.684 GB, free: 80 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01456/0.7491, allocations: 6.296 MB / 0.6901 GB, free: 9.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005354/0.7544, allocations: 3.38 MB / 0.6935 GB, free: 6.137 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02568/0.7801, allocations: 14.8 MB / 0.7079 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.899e-05/0.7802, allocations: 60.5 kB / 0.708 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 8.957e-06/0.7802, allocations: 0 / 0.708 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.5021/1.282, allocations: 42.78 MB / 0.7497 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/1.282, allocations: 210 kB / 0.7499 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008768/1.291, allocations: 5.491 MB / 0.7553 GB, free: 150 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000905/1.292, allocations: 69.7 kB / 0.7554 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002667/1.295, allocations: 4.524 MB / 0.7598 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001821/1.297, allocations: 1.325 MB / 0.7611 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003039/1.3, allocations: 1.869 MB / 0.7629 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.605e-05/1.3, allocations: 305.1 kB / 0.7632 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006328/1.306, allocations: 4.835 MB / 0.7679 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009046/1.315, allocations: 9.826 MB / 0.7775 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/1.33, allocations: 15.62 MB / 0.7928 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001483/1.33, allocations: 48 kB / 0.7928 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04267/1.373, allocations: 19.61 MB / 0.812 GB, free: 87.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00026/1.373, allocations: 81 kB / 0.812 GB, free: 87.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004548/1.374, allocations: 172 kB / 0.8122 GB, free: 87.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02261/1.396, allocations: 5.941 MB / 0.818 GB, free: 81.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007844/1.404, allocations: 2.133 MB / 0.8201 GB, free: 79.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02991/1.434, allocations: 26.17 MB / 0.8457 GB, free: 52.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00981/1.444, allocations: 0.5579 MB / 0.8462 GB, free: 52.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00188/1.446, allocations: 0.5109 MB / 0.8467 GB, free: 51.57 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00678/1.453, allocations: 3.095 MB / 0.8497 GB, free: 48.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001799/1.454, allocations: 0.5199 MB / 0.8502 GB, free: 47.94 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03096/1.485, allocations: 12.98 MB / 0.8629 GB, free: 34.89 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/1.486, allocations: 52 kB / 0.863 GB, free: 34.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.953e-05/1.486, allocations: 8 kB / 0.863 GB, free: 34.83 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-05/1.486, allocations: 15.94 kB / 0.863 GB, free: 34.82 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05202/1.538, allocations: 24.6 MB / 0.887 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-05/1.538, allocations: 4 kB / 0.887 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003255/1.541, allocations: 0.5811 MB / 0.8876 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01903/1.56, allocations: 4.974 MB / 0.8924 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001203/1.561, allocations: 55.2 kB / 0.8925 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02909/1.59, allocations: 21.36 MB / 0.9133 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/1.59, allocations: 7.562 kB / 0.9133 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04121/1.632, allocations: 17.57 MB / 0.9305 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002562/1.634, allocations: 0.56 MB / 0.931 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002613/1.637, allocations: 63.83 kB / 0.9311 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004953/1.642, allocations: 259.6 kB / 0.9314 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001619/1.643, allocations: 193.6 kB / 0.9315 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001007/1.644, allocations: 88 kB / 0.9316 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.008421/1.653, allocations: 3.398 MB / 0.9349 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.653, allocations: 0 / 0.9349 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0121/1.665, allocations: 1.765 MB / 0.9367 GB, free: 6.43 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001592/1.666, allocations: 210.3 kB / 0.9369 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.376/2.042, allocations: 10.56 MB / 0.9472 GB, free: 203.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.836e-05/2.042, allocations: 1.156 kB / 0.9472 GB, free: 203.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01263/2.055, allocations: 3.82 MB / 0.9509 GB, free: 202.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/2.066, allocations: 0.6184 MB / 0.9515 GB, free: 202.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04646/2.113, allocations: 16.27 MB / 0.9674 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007941/2.121, allocations: 4.63 MB / 0.9719 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01037/2.131, allocations: 2.973 MB / 0.9748 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002051/2.133, allocations: 354.3 kB / 0.9752 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.573e-06/2.133, allocations: 4 kB / 0.9752 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.1167/2.25, allocations: 77.65 MB / 1.051 GB, free: 116.3 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches