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.001288/0.001289, allocations: 103.9 kB / 16.41 MB, free: 6.449 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.001189/0.001189, allocations: 197.4 kB / 17.34 MB, free: 5.738 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.536/1.536, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2127/0.2127, allocations: 43.53 MB / 314.1 MB, free: 472 kB / 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.001558/0.001558, allocations: 68.47 kB / 441.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.144, allocations: 57.79 MB / 499.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01761/0.1616, allocations: 15.09 MB / 0.5026 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01281/0.1745, allocations: 4.827 MB / 0.5073 GB, free: 7.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004172/0.1787, allocations: 95.69 kB / 0.5074 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006972/0.1858, allocations: 3.161 MB / 0.5105 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.1977, allocations: 2.556 MB / 0.513 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003198/0.2009, allocations: 0.9944 MB / 0.514 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01312/0.214, allocations: 6.653 MB / 0.5205 GB, free: 10.32 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006208/0.2203, allocations: 4.369 MB / 0.5247 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003977/0.2243, allocations: 2.243 MB / 0.5269 GB, free: 3.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004485/0.2288, allocations: 3.267 MB / 0.5301 GB, free: 364 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3858/0.6146, allocations: 484.7 kB / 0.5306 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005446/0.6201, allocations: 1.489 MB / 0.532 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005827/0.626, allocations: 2.897 MB / 0.5349 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009463/0.6355, allocations: 3.261 MB / 0.538 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02376/0.6593, allocations: 10.46 MB / 0.5483 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.245e-05/0.6594, allocations: 0.75 kB / 0.5483 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.719e-06/0.6594, allocations: 0 / 0.5483 GB, free: 8.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000706/0.6601, allocations: 3.641 kB / 0.5483 GB, free: 8.961 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.03363/0.6938, allocations: 7.325 MB / 0.5554 GB, free: 6.262 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.6938, allocations: 13.36 kB / 0.5554 GB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01828/0.7121, allocations: 3.936 MB / 0.5593 GB, free: 5.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/0.726, allocations: 4.286 MB / 0.5635 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004926/0.7266, allocations: 323.4 kB / 0.5638 GB, free: 3.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005223/0.7318, allocations: 431 kB / 0.5642 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04329/0.7751, allocations: 15.74 MB / 0.5795 GB, free: 9.715 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002046/0.7754, allocations: 64.27 kB / 0.5796 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007113/0.7761, allocations: 200.2 kB / 0.5798 GB, free: 9.539 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005628/0.7817, allocations: 3.212 MB / 0.5829 GB, free: 6.367 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03317/0.8149, allocations: 14.18 MB / 0.5968 GB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09733/0.9123, allocations: 57.5 MB / 0.6529 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01627/0.9286, allocations: 6.59 MB / 0.6594 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006266/0.935, allocations: 3.761 MB / 0.663 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03351/0.9685, allocations: 14.78 MB / 0.6775 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/0.9687, allocations: 67.97 kB / 0.6775 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=292): time 1.194e-05/0.9687, allocations: 0 / 0.6775 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of matching and sorting (n=342): time 0.1794/1.148, allocations: 42.55 MB / 0.7191 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000137/1.148, allocations: 214 kB / 0.7193 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009779/1.158, allocations: 5.49 MB / 0.7247 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001135/1.159, allocations: 69.7 kB / 0.7247 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.004038/1.163, allocations: 4.352 MB / 0.729 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.003042/1.166, allocations: 1.268 MB / 0.7302 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005735/1.172, allocations: 1.852 MB / 0.732 GB, free: 12.52 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002213/1.172, allocations: 305.1 kB / 0.7323 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009139/1.181, allocations: 4.839 MB / 0.737 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01358/1.195, allocations: 9.825 MB / 0.7466 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4354/1.631, allocations: 15.63 MB / 0.7619 GB, free: 181.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001993/1.631, allocations: 48.88 kB / 0.7619 GB, free: 181.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.052/1.683, allocations: 19.61 MB / 0.7811 GB, free: 178.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/1.683, allocations: 82.06 kB / 0.7812 GB, free: 178.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002531/1.683, allocations: 171.7 kB / 0.7813 GB, free: 178.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02345/1.707, allocations: 5.943 MB / 0.7871 GB, free: 178 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008052/1.715, allocations: 2.128 MB / 0.7892 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02957/1.744, allocations: 26.14 MB / 0.8147 GB, free: 158.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01008/1.754, allocations: 0.5623 MB / 0.8153 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003096/1.758, allocations: 0.5065 MB / 0.8158 GB, free: 157.2 MB / 0.5919 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.009037/1.767, allocations: 3.109 MB / 0.8188 GB, free: 154.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/1.768, allocations: 499.4 kB / 0.8193 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02977/1.798, allocations: 13.01 MB / 0.832 GB, free: 140.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001088/1.798, allocations: 55.98 kB / 0.8321 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.378e-05/1.798, allocations: 12 kB / 0.8321 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.527e-05/1.798, allocations: 17.2 kB / 0.8321 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05131/1.849, allocations: 24.63 MB / 0.8561 GB, free: 115.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.571e-05/1.85, allocations: 8 kB / 0.8561 GB, free: 115.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003387/1.853, allocations: 0.5811 MB / 0.8567 GB, free: 115.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01927/1.872, allocations: 4.972 MB / 0.8616 GB, free: 110.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00125/1.874, allocations: 62.75 kB / 0.8616 GB, free: 110.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02546/1.899, allocations: 21.35 MB / 0.8825 GB, free: 88.62 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.899, allocations: 8 kB / 0.8825 GB, free: 88.61 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04793/1.947, allocations: 17.58 MB / 0.8997 GB, free: 70.93 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005579/1.953, allocations: 1.256 MB / 0.9009 GB, free: 69.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002878/1.956, allocations: 57.64 kB / 0.9009 GB, free: 69.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006414/1.962, allocations: 264.3 kB / 0.9012 GB, free: 69.34 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002025/1.964, allocations: 192.4 kB / 0.9014 GB, free: 69.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001035/1.965, allocations: 87.98 kB / 0.9015 GB, free: 69.06 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.01027/1.975, allocations: 3.418 MB / 0.9048 GB, free: 65.66 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.71e-07/1.975, allocations: 0 / 0.9048 GB, free: 65.66 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01637/1.992, allocations: 1.769 MB / 0.9065 GB, free: 63.9 MB / 0.5919 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.0016/1.994, allocations: 203.4 kB / 0.9067 GB, free: 63.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0197/2.013, allocations: 11.04 MB / 0.9175 GB, free: 52.67 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.722e-05/2.013, allocations: 1.75 kB / 0.9175 GB, free: 52.67 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007319/2.021, allocations: 4.137 MB / 0.9215 GB, free: 48.52 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00918/2.03, allocations: 0.618 MB / 0.9221 GB, free: 47.93 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03755/2.067, allocations: 16.12 MB / 0.9379 GB, free: 31.73 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/2.078, allocations: 4.619 MB / 0.9424 GB, free: 27.09 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.009531/2.087, allocations: 2.982 MB / 0.9453 GB, free: 24.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002722/2.09, allocations: 355.4 kB / 0.9456 GB, free: 23.75 MB / 0.5919 GB Notification: Performance of SimCode: time 8.51e-07/2.09, allocations: 0 / 0.9456 GB, free: 23.75 MB / 0.5919 GB Notification: Performance of Templates: time 0.4541/2.544, allocations: 77.66 MB / 1.021 GB, free: 198.5 MB / 0.6075 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches