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.001268/0.001268, allocations: 113.3 kB / 18.45 MB, free: 4.602 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.001335/0.001335, allocations: 185.1 kB / 19.38 MB, free: 3.684 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.282/1.282, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2057/0.2057, allocations: 44.19 MB / 337.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 71.88 kB / 471.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3213, allocations: 60.81 MB / 0.5195 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01609/0.3374, allocations: 15.05 MB / 0.5342 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.3477, allocations: 4.811 MB / 0.5389 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002827/0.3506, allocations: 92.78 kB / 0.539 GB, free: 4.926 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00584/0.3565, allocations: 3.16 MB / 0.5421 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006467/0.363, allocations: 2.55 MB / 0.5446 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002284/0.3653, allocations: 0.9966 MB / 0.5456 GB, free: 328 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009116/0.3744, allocations: 6.968 MB / 0.5524 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00497/0.3794, allocations: 4.375 MB / 0.5567 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.3828, allocations: 2.227 MB / 0.5588 GB, free: 3.672 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004163/0.387, allocations: 3.256 MB / 0.562 GB, free: 416 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001167/0.3882, allocations: 488 kB / 0.5625 GB, free: 15.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003089/0.3913, allocations: 1.502 MB / 0.5639 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002659/0.3939, allocations: 2.891 MB / 0.5668 GB, free: 11.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003449/0.3974, allocations: 3.254 MB / 0.57 GB, free: 8.254 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01049/0.4079, allocations: 10.46 MB / 0.5802 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.4079, allocations: 0 / 0.5802 GB, free: 13.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.408, allocations: 0 / 0.5802 GB, free: 13.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002749/0.4082, allocations: 0 / 0.5802 GB, free: 13.76 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.01568/0.4239, allocations: 7.31 MB / 0.5873 GB, free: 6.367 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.424, allocations: 8.031 kB / 0.5873 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01617/0.4402, allocations: 3.927 MB / 0.5911 GB, free: 2.418 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008431/0.4486, allocations: 4.188 MB / 0.5952 GB, free: 14.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002146/0.4489, allocations: 316.4 kB / 0.5955 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001242/0.4501, allocations: 435.4 kB / 0.596 GB, free: 13.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02493/0.4751, allocations: 15.74 MB / 0.6113 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001829/0.4753, allocations: 59.47 kB / 0.6114 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008603/0.4762, allocations: 203.8 kB / 0.6116 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004667/0.4808, allocations: 3.22 MB / 0.6147 GB, free: 9.281 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02645/0.5073, allocations: 14.16 MB / 0.6285 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07513/0.5825, allocations: 57.5 MB / 0.6847 GB, free: 28 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01497/0.5975, allocations: 6.59 MB / 0.6911 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005465/0.603, allocations: 3.747 MB / 0.6948 GB, free: 5.426 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02613/0.6292, allocations: 14.78 MB / 0.7092 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.599e-05/0.6293, allocations: 68.48 kB / 0.7093 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 6.052e-06/0.6293, allocations: 4 kB / 0.7093 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.3953/1.025, allocations: 42.49 MB / 0.7508 GB, free: 154.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/1.025, allocations: 213.9 kB / 0.751 GB, free: 154.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007848/1.033, allocations: 5.471 MB / 0.7563 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008046/1.033, allocations: 71.02 kB / 0.7564 GB, free: 149.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001882/1.035, allocations: 4.353 MB / 0.7606 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001336/1.037, allocations: 1.267 MB / 0.7619 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002399/1.039, allocations: 1.856 MB / 0.7637 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.32e-05/1.039, allocations: 309.1 kB / 0.764 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005206/1.044, allocations: 4.828 MB / 0.7687 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007031/1.051, allocations: 9.834 MB / 0.7783 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/1.065, allocations: 15.61 MB / 0.7936 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001359/1.066, allocations: 48 kB / 0.7936 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.0392/1.105, allocations: 19.62 MB / 0.8128 GB, free: 86.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.574e-05/1.105, allocations: 80.94 kB / 0.8128 GB, free: 86.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/1.105, allocations: 176 kB / 0.813 GB, free: 86.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02151/1.127, allocations: 5.94 MB / 0.8188 GB, free: 80.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006863/1.134, allocations: 2.125 MB / 0.8209 GB, free: 78.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02732/1.161, allocations: 26.16 MB / 0.8464 GB, free: 51.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007839/1.169, allocations: 0.5614 MB / 0.847 GB, free: 51.14 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.17, allocations: 0.5117 MB / 0.8475 GB, free: 50.63 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.005662/1.176, allocations: 3.099 MB / 0.8505 GB, free: 47.52 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.177, allocations: 497.5 kB / 0.851 GB, free: 47.02 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02873/1.206, allocations: 13.01 MB / 0.8637 GB, free: 33.95 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.149e-05/1.206, allocations: 55.98 kB / 0.8637 GB, free: 33.89 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/1.206, allocations: 15.94 kB / 0.8637 GB, free: 33.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.838e-05/1.206, allocations: 15.94 kB / 0.8638 GB, free: 33.86 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04665/1.253, allocations: 24.63 MB / 0.8878 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.512e-05/1.253, allocations: 4 kB / 0.8878 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003115/1.256, allocations: 0.585 MB / 0.8884 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01904/1.275, allocations: 4.969 MB / 0.8932 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009305/1.276, allocations: 55.98 kB / 0.8933 GB, free: 3.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03028/1.306, allocations: 21.35 MB / 0.9141 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.306, allocations: 7.938 kB / 0.9142 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03861/1.345, allocations: 17.58 MB / 0.9313 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/1.347, allocations: 0.5337 MB / 0.9318 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001791/1.349, allocations: 63.92 kB / 0.9319 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003973/1.353, allocations: 263.6 kB / 0.9321 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001126/1.354, allocations: 193.5 kB / 0.9323 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005663/1.354, allocations: 91.91 kB / 0.9324 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.00674/1.361, allocations: 3.394 MB / 0.9357 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/1.361, allocations: 4 kB / 0.9357 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009536/1.371, allocations: 1.756 MB / 0.9375 GB, free: 5.477 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.001147/1.372, allocations: 215.9 kB / 0.9377 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.2472/1.619, allocations: 11.03 MB / 0.9484 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/1.619, allocations: 1.125 kB / 0.9484 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.005896/1.625, allocations: 4.137 MB / 0.9525 GB, free: 201.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003874/1.629, allocations: 0.6179 MB / 0.9531 GB, free: 201.6 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/1.653, allocations: 16.68 MB / 0.9694 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00435/1.657, allocations: 4.606 MB / 0.9739 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/1.659, allocations: 419.7 kB / 0.9743 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.072e-06/1.659, allocations: 0 / 0.9743 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1465/1.806, allocations: 150.8 MB / 1.122 GB, free: 44.58 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/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