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.001699/0.001699, allocations: 104 kB / 17.32 MB, free: 5.984 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.001927/0.001927, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.391/1.391, allocations: 222.9 MB / 241.9 MB, free: 15.39 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.2213/0.2213, allocations: 44.17 MB / 336.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.81 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1185, allocations: 60.83 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2941/0.4127, allocations: 53.42 MB / 0.5099 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03006/0.4428, allocations: 11.12 MB / 0.5208 GB, free: 8.652 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01494/0.4578, allocations: 230.6 kB / 0.521 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007163/0.465, allocations: 3.031 MB / 0.5239 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008908/0.474, allocations: 2.387 MB / 0.5263 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003291/0.4773, allocations: 0.9245 MB / 0.5272 GB, free: 6.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.4891, allocations: 7.382 MB / 0.5344 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006529/0.4957, allocations: 4.589 MB / 0.5389 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005486/0.5012, allocations: 2.273 MB / 0.5411 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006583/0.5078, allocations: 3.592 MB / 0.5446 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00198/0.5098, allocations: 485.8 kB / 0.5451 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004399/0.5142, allocations: 1.518 MB / 0.5465 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004166/0.5184, allocations: 2.907 MB / 0.5494 GB, free: 9.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00622/0.5247, allocations: 3.285 MB / 0.5526 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01645/0.5412, allocations: 10.14 MB / 0.5625 GB, free: 12.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/0.5412, allocations: 0 / 0.5625 GB, free: 12.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.045e-06/0.5413, allocations: 0 / 0.5625 GB, free: 12.11 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000378/0.5416, allocations: 0 / 0.5625 GB, free: 12.11 MB / 414.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.01982/0.5615, allocations: 7.328 MB / 0.5696 GB, free: 4.859 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.5616, allocations: 15.97 kB / 0.5697 GB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.5773, allocations: 3.921 MB / 0.5735 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.5897, allocations: 4.119 MB / 0.5775 GB, free: 12.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003083/0.59, allocations: 318.8 kB / 0.5778 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001883/0.5919, allocations: 439.7 kB / 0.5782 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02921/0.6211, allocations: 15.73 MB / 0.5936 GB, free: 11.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001759/0.6213, allocations: 55.44 kB / 0.5937 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006274/0.622, allocations: 203.8 kB / 0.5938 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00482/0.6268, allocations: 3.215 MB / 0.597 GB, free: 8.262 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02903/0.6559, allocations: 14.17 MB / 0.6108 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0854/0.7413, allocations: 57.78 MB / 0.6672 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01499/0.7564, allocations: 6.596 MB / 0.6737 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005817/0.7622, allocations: 3.745 MB / 0.6773 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02504/0.7873, allocations: 14.79 MB / 0.6918 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/0.7874, allocations: 68.5 kB / 0.6918 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.891e-06/0.7874, allocations: 0 / 0.6918 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.3596/1.147, allocations: 42.49 MB / 0.7333 GB, free: 196.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/1.147, allocations: 220.3 kB / 0.7335 GB, free: 196.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008154/1.155, allocations: 5.462 MB / 0.7389 GB, free: 194.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000967/1.156, allocations: 71.64 kB / 0.7389 GB, free: 194.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002341/1.159, allocations: 4.345 MB / 0.7432 GB, free: 191.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001573/1.16, allocations: 1.265 MB / 0.7444 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002552/1.163, allocations: 1.865 MB / 0.7462 GB, free: 189.4 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.651e-05/1.163, allocations: 305.1 kB / 0.7465 GB, free: 189.1 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005597/1.168, allocations: 4.839 MB / 0.7513 GB, free: 187.1 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007653/1.176, allocations: 9.822 MB / 0.7609 GB, free: 177.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01684/1.193, allocations: 15.63 MB / 0.7761 GB, free: 159.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001946/1.193, allocations: 52 kB / 0.7762 GB, free: 159.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04321/1.236, allocations: 19.61 MB / 0.7953 GB, free: 140.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002597/1.237, allocations: 80 kB / 0.7954 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003502/1.237, allocations: 172 kB / 0.7956 GB, free: 139.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0213/1.258, allocations: 5.947 MB / 0.8014 GB, free: 133.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007155/1.266, allocations: 2.126 MB / 0.8034 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02883/1.294, allocations: 26.15 MB / 0.829 GB, free: 105.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009712/1.304, allocations: 0.5578 MB / 0.8295 GB, free: 104.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002075/1.306, allocations: 0.5233 MB / 0.83 GB, free: 104.2 MB / 0.545 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.007646/1.314, allocations: 3.091 MB / 0.8331 GB, free: 101.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/1.316, allocations: 0.4935 MB / 0.8335 GB, free: 100.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03009/1.346, allocations: 13.01 MB / 0.8462 GB, free: 87.56 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.472e-05/1.346, allocations: 59.42 kB / 0.8463 GB, free: 87.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.612e-05/1.346, allocations: 8 kB / 0.8463 GB, free: 87.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.135e-05/1.346, allocations: 15.94 kB / 0.8463 GB, free: 87.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06087/1.407, allocations: 24.69 MB / 0.8704 GB, free: 62.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.048e-05/1.407, allocations: 8 kB / 0.8704 GB, free: 62.33 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004803/1.412, allocations: 0.5856 MB / 0.871 GB, free: 61.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02852/1.441, allocations: 4.966 MB / 0.8759 GB, free: 56.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000688/1.441, allocations: 63.92 kB / 0.8759 GB, free: 56.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02559/1.467, allocations: 21.35 MB / 0.8968 GB, free: 35.08 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/1.467, allocations: 7.938 kB / 0.8968 GB, free: 35.07 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2906/1.758, allocations: 17.56 MB / 0.9139 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002633/1.76, allocations: 0.5324 MB / 0.9144 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002187/1.763, allocations: 57.55 kB / 0.9145 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003945/1.767, allocations: 266.5 kB / 0.9148 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/1.768, allocations: 197.8 kB / 0.9149 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003443/1.768, allocations: 84.78 kB / 0.915 GB, free: 184.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008063/1.776, allocations: 3.404 MB / 0.9183 GB, free: 184.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.61e-07/1.776, allocations: 0 / 0.9183 GB, free: 184.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01115/1.787, allocations: 1.762 MB / 0.9201 GB, free: 184.5 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.001219/1.789, allocations: 215.1 kB / 0.9203 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02645/1.815, allocations: 15.91 MB / 0.9358 GB, free: 180.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.454e-05/1.815, allocations: 0 / 0.9358 GB, free: 180.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005734/1.821, allocations: 4.13 MB / 0.9398 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00472/1.826, allocations: 0.6299 MB / 0.9405 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02798/1.854, allocations: 19.26 MB / 0.9593 GB, free: 164.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005056/1.859, allocations: 4.608 MB / 0.9638 GB, free: 161.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007024/1.866, allocations: 2.981 MB / 0.9667 GB, free: 159.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/1.867, allocations: 354.7 kB / 0.967 GB, free: 159 MB / 0.545 GB Notification: Performance of SimCode: time 9.41e-07/1.867, allocations: 0 / 0.967 GB, free: 159 MB / 0.545 GB Notification: Performance of Templates: time 0.1155/1.983, allocations: 81.32 MB / 1.046 GB, free: 79.93 MB / 0.545 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