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.0007978/0.000798, allocations: 96.88 kB / 17 MB, free: 6.398 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.0007963/0.0007963, allocations: 179.2 kB / 17.89 MB, free: 5.945 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.476/1.476, allocations: 223.3 MB / 241.9 MB, free: 328 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2158/0.2158, allocations: 44.25 MB / 337.3 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003194, allocations: 12 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 61.93 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3467/0.4865, allocations: 48.39 MB / 0.5078 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02754/0.5141, allocations: 10.64 MB / 0.5182 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01076/0.5249, allocations: 230 kB / 0.5184 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008407/0.5333, allocations: 2.519 MB / 0.5209 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02286/0.5562, allocations: 7.593 MB / 0.5283 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004286/0.5605, allocations: 0.8518 MB / 0.5291 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08129/0.6418, allocations: 62.84 MB / 0.5905 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.6519, allocations: 5.115 MB / 0.5955 GB, free: 5.598 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005077/0.657, allocations: 1.88 MB / 0.5973 GB, free: 3.711 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005919/0.6629, allocations: 3.124 MB / 0.6004 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001724/0.6647, allocations: 236 kB / 0.6006 GB, free: 356 kB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.6687, allocations: 1.131 MB / 0.6017 GB, free: 15.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004113/0.6729, allocations: 2.571 MB / 0.6042 GB, free: 12.64 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.6753, allocations: 1.193 MB / 0.6054 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0106/0.6859, allocations: 7.96 MB / 0.6132 GB, free: 3.469 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.6859, allocations: 0 / 0.6132 GB, free: 3.469 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.686, allocations: 3.938 kB / 0.6132 GB, free: 3.465 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005111/0.6865, allocations: 0 / 0.6132 GB, free: 3.465 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.01729/0.7038, allocations: 6.17 MB / 0.6192 GB, free: 13.24 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.7039, allocations: 12.56 kB / 0.6192 GB, free: 13.23 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01599/0.7199, allocations: 4.02 MB / 0.6231 GB, free: 9.195 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.7319, allocations: 4.059 MB / 0.6271 GB, free: 5.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004512/0.7324, allocations: 320 kB / 0.6274 GB, free: 4.773 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002825/0.7352, allocations: 427.7 kB / 0.6278 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03539/0.7706, allocations: 15.72 MB / 0.6432 GB, free: 3.703 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003399/0.771, allocations: 64.62 kB / 0.6432 GB, free: 3.641 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002138/0.7732, allocations: 199.8 kB / 0.6434 GB, free: 3.445 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005516/0.7787, allocations: 3.213 MB / 0.6465 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03112/0.8098, allocations: 14.14 MB / 0.6603 GB, free: 2.066 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4735/1.283, allocations: 57.75 MB / 0.7167 GB, free: 155 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01698/1.3, allocations: 6.579 MB / 0.7232 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007646/1.308, allocations: 3.739 MB / 0.7268 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02238/1.33, allocations: 14.79 MB / 0.7413 GB, free: 146.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/1.331, allocations: 70.19 kB / 0.7413 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 5.701e-06/1.331, allocations: 0 / 0.7413 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.1288/1.459, allocations: 42.72 MB / 0.7831 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.67e-05/1.46, allocations: 221.5 kB / 0.7833 GB, free: 114 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006896/1.466, allocations: 5.437 MB / 0.7886 GB, free: 108.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008/1.467, allocations: 70.64 kB / 0.7886 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002252/1.47, allocations: 4.344 MB / 0.7929 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001654/1.471, allocations: 1.271 MB / 0.7941 GB, free: 102.9 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005336/1.472, allocations: 181.2 kB / 0.7943 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003809/1.472, allocations: 0.693 MB / 0.795 GB, free: 102 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005863/1.478, allocations: 4.804 MB / 0.7997 GB, free: 97.21 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008238/1.486, allocations: 9.791 MB / 0.8092 GB, free: 85.05 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009039/1.495, allocations: 6.695 MB / 0.8158 GB, free: 78.48 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001088/1.495, allocations: 48 kB / 0.8158 GB, free: 78.44 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04022/1.536, allocations: 19.57 MB / 0.8349 GB, free: 58.88 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/1.536, allocations: 80 kB / 0.835 GB, free: 58.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002172/1.536, allocations: 176.6 kB / 0.8352 GB, free: 58.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01981/1.556, allocations: 5.998 MB / 0.841 GB, free: 52.62 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007539/1.563, allocations: 2.117 MB / 0.8431 GB, free: 50.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02937/1.593, allocations: 24.77 MB / 0.8673 GB, free: 25.44 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008841/1.602, allocations: 0.5646 MB / 0.8678 GB, free: 24.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00201/1.604, allocations: 0.5181 MB / 0.8683 GB, free: 24.36 MB / 0.5294 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007218/1.611, allocations: 3.102 MB / 0.8714 GB, free: 21.25 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/1.613, allocations: 0.4936 MB / 0.8719 GB, free: 20.75 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02891/1.641, allocations: 13 MB / 0.8846 GB, free: 7.676 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.359e-05/1.642, allocations: 52.69 kB / 0.8846 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.928e-05/1.642, allocations: 8 kB / 0.8846 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-05/1.642, allocations: 19.91 kB / 0.8846 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04946/1.691, allocations: 24.74 MB / 0.9088 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.261e-05/1.691, allocations: 4 kB / 0.9088 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003533/1.695, allocations: 0.585 MB / 0.9094 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01899/1.714, allocations: 4.998 MB / 0.9142 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001178/1.715, allocations: 56.92 kB / 0.9143 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3206/2.036, allocations: 19.98 MB / 0.9338 GB, free: 199.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.73e-05/2.036, allocations: 12.06 kB / 0.9338 GB, free: 199.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03359/2.069, allocations: 17.57 MB / 0.951 GB, free: 193.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/2.071, allocations: 0.5449 MB / 0.9515 GB, free: 193.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00133/2.072, allocations: 55.94 kB / 0.9516 GB, free: 193.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00286/2.075, allocations: 266.1 kB / 0.9518 GB, free: 193.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/2.076, allocations: 191.5 kB / 0.952 GB, free: 193.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003454/2.077, allocations: 91.67 kB / 0.9521 GB, free: 193.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004908/2.082, allocations: 3.366 MB / 0.9554 GB, free: 192.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.625e-06/2.082, allocations: 0 / 0.9554 GB, free: 192.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008604/2.09, allocations: 1.768 MB / 0.9571 GB, free: 192.2 MB / 0.5606 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007104/2.091, allocations: 201.1 kB / 0.9573 GB, free: 192.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01694/2.108, allocations: 10.95 MB / 0.968 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/2.108, allocations: 0 / 0.968 GB, free: 187.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0063/2.114, allocations: 4.126 MB / 0.972 GB, free: 183.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005686/2.12, allocations: 0.6017 MB / 0.9726 GB, free: 182.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/2.148, allocations: 18.66 MB / 0.9908 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/2.152, allocations: 4.623 MB / 0.9953 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006899/2.159, allocations: 2.972 MB / 0.9982 GB, free: 157 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001413/2.16, allocations: 351.4 kB / 0.9986 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.102e-06/2.16, allocations: 0 / 0.9986 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.1162/2.277, allocations: 75.44 MB / 1.072 GB, free: 81.26 MB / 0.5606 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