Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_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.000937/0.000937, allocations: 97.8 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 179.2 kB / 16.91 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.834/1.834, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4094/0.4094, allocations: 43.57 MB / 315 MB, free: 8.762 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005142/0.0005143, allocations: 12 kB / 384.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.143, allocations: 58.86 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.326/0.469, allocations: 52.1 MB / 495.5 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03485/0.5039, allocations: 11.14 MB / 0.4948 GB, free: 9.754 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01175/0.5157, allocations: 229.5 kB / 0.495 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.518, allocations: 0.6112 MB / 0.4956 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007574/0.5256, allocations: 2.421 MB / 0.498 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.5285, allocations: 0.9171 MB / 0.4989 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01783/0.5464, allocations: 9.426 MB / 0.5081 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01528/0.5617, allocations: 5.815 MB / 0.5138 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006403/0.5682, allocations: 1.753 MB / 0.5155 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006044/0.5743, allocations: 3.163 MB / 0.5186 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.5756, allocations: 237 kB / 0.5188 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003499/0.5791, allocations: 1.335 MB / 0.5201 GB, free: 232 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00327/0.5824, allocations: 2.64 MB / 0.5227 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003912/0.5863, allocations: 2.975 MB / 0.5256 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.5973, allocations: 9.708 MB / 0.5351 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.5974, allocations: 0 / 0.5351 GB, free: 1.898 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.829e-06/0.5974, allocations: 7.938 kB / 0.5351 GB, free: 1.891 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003187/0.5977, allocations: 3.938 kB / 0.5351 GB, free: 1.887 MB / 398.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.0152/0.6129, allocations: 6.084 MB / 0.541 GB, free: 11.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.613, allocations: 12.03 kB / 0.541 GB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01902/0.632, allocations: 4.028 MB / 0.545 GB, free: 7.668 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.6432, allocations: 4.224 MB / 0.5491 GB, free: 3.383 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.6436, allocations: 320.6 kB / 0.5494 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.6451, allocations: 435.5 kB / 0.5498 GB, free: 2.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02734/0.6724, allocations: 15.76 MB / 0.5652 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.6726, allocations: 67.3 kB / 0.5653 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006233/0.6733, allocations: 203.8 kB / 0.5655 GB, free: 1.688 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005087/0.6784, allocations: 3.216 MB / 0.5686 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/0.7105, allocations: 14.18 MB / 0.5824 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4187/1.129, allocations: 57.79 MB / 0.6389 GB, free: 100.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/1.143, allocations: 6.608 MB / 0.6453 GB, free: 99.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005128/1.148, allocations: 3.757 MB / 0.649 GB, free: 99.64 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02371/1.172, allocations: 14.78 MB / 0.6634 GB, free: 93.67 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.799e-05/1.172, allocations: 69.39 kB / 0.6635 GB, free: 93.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 8.095e-06/1.172, allocations: 0 / 0.6635 GB, free: 93.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1561/1.328, allocations: 42.81 MB / 0.7053 GB, free: 80.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.328, allocations: 210 kB / 0.7055 GB, free: 79.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007452/1.336, allocations: 5.493 MB / 0.7109 GB, free: 74.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008985/1.337, allocations: 69.7 kB / 0.7109 GB, free: 74.22 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002359/1.339, allocations: 4.348 MB / 0.7152 GB, free: 69.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001632/1.341, allocations: 1.273 MB / 0.7164 GB, free: 68.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/1.342, allocations: 0.7683 MB / 0.7172 GB, free: 67.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/1.342, allocations: 309 kB / 0.7175 GB, free: 67.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005818/1.348, allocations: 4.839 MB / 0.7222 GB, free: 62.69 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007746/1.355, allocations: 9.827 MB / 0.7318 GB, free: 50.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/1.372, allocations: 15.62 MB / 0.7471 GB, free: 32.59 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002283/1.372, allocations: 52 kB / 0.7471 GB, free: 32.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04204/1.414, allocations: 19.63 MB / 0.7663 GB, free: 12.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.414, allocations: 87.98 kB / 0.7664 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.414, allocations: 172 kB / 0.7665 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0221/1.436, allocations: 5.971 MB / 0.7724 GB, free: 6.629 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007597/1.444, allocations: 2.125 MB / 0.7744 GB, free: 4.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03047/1.475, allocations: 24.8 MB / 0.7987 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009588/1.484, allocations: 0.5656 MB / 0.7992 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001876/1.486, allocations: 0.5108 MB / 0.7997 GB, free: 10.36 MB / 0.5137 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.006429/1.493, allocations: 3.099 MB / 0.8027 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/1.494, allocations: 0.4897 MB / 0.8032 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03333/1.527, allocations: 13.03 MB / 0.8159 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/1.527, allocations: 52 kB / 0.816 GB, free: 9.598 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-05/1.527, allocations: 16 kB / 0.816 GB, free: 9.582 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.893e-05/1.527, allocations: 15.94 kB / 0.816 GB, free: 9.566 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05321/1.581, allocations: 24.77 MB / 0.8402 GB, free: 328 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-05/1.581, allocations: 8 kB / 0.8402 GB, free: 320 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3151/1.896, allocations: 0.577 MB / 0.8408 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02055/1.916, allocations: 4.998 MB / 0.8457 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001186/1.918, allocations: 62.31 kB / 0.8457 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02928/1.947, allocations: 19.97 MB / 0.8652 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.211e-05/1.947, allocations: 9.75 kB / 0.8652 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04728/1.994, allocations: 17.61 MB / 0.8824 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004781/1.999, allocations: 1.264 MB / 0.8837 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00201/2.001, allocations: 56.45 kB / 0.8837 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004986/2.006, allocations: 272.5 kB / 0.884 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/2.007, allocations: 196.5 kB / 0.8842 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003514/2.008, allocations: 84.88 kB / 0.8842 GB, free: 169.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009309/2.017, allocations: 3.418 MB / 0.8876 GB, free: 168.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.52e-07/2.017, allocations: 1.719 kB / 0.8876 GB, free: 168.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01344/2.031, allocations: 1.763 MB / 0.8893 GB, free: 168.3 MB / 0.545 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.001511/2.032, allocations: 205.4 kB / 0.8895 GB, free: 168.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01911/2.051, allocations: 11 MB / 0.9002 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.779e-05/2.051, allocations: 0 / 0.9002 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006695/2.058, allocations: 4.133 MB / 0.9043 GB, free: 162.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009717/2.068, allocations: 0.5992 MB / 0.9049 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03168/2.1, allocations: 19.36 MB / 0.9238 GB, free: 147.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007008/2.107, allocations: 4.633 MB / 0.9283 GB, free: 143.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008755/2.115, allocations: 2.979 MB / 0.9312 GB, free: 140.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002403/2.118, allocations: 359.4 kB / 0.9315 GB, free: 140.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/2.118, allocations: 0 / 0.9315 GB, free: 140.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1262/2.244, allocations: 77.04 MB / 1.007 GB, free: 63.42 MB / 0.545 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches