Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009463/0.0009463, allocations: 173.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00082/0.0008198, allocations: 94.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.326/0.326, allocations: 43.57 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003977, allocations: 12 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.2428/0.351, allocations: 56.63 MB / 0.5346 GB, free: 10.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02664/0.3777, allocations: 12.3 MB / 0.5466 GB, free: 1.762 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01166/0.3894, allocations: 279.2 kB / 0.5469 GB, free: 1.715 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0085/0.3979, allocations: 2.941 MB / 0.5498 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02396/0.4219, allocations: 8.74 MB / 0.5583 GB, free: 13 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005066/0.427, allocations: 0.9736 MB / 0.5592 GB, free: 12.63 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0464/0.4734, allocations: 36.15 MB / 0.5946 GB, free: 140 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/0.484, allocations: 6.079 MB / 0.6005 GB, free: 10.01 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003809/0.4878, allocations: 1.646 MB / 0.6021 GB, free: 8.355 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004234/0.4921, allocations: 2.563 MB / 0.6046 GB, free: 5.785 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.4933, allocations: 176 kB / 0.6048 GB, free: 5.613 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003239/0.4965, allocations: 1.268 MB / 0.606 GB, free: 4.344 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003059/0.4996, allocations: 2.162 MB / 0.6081 GB, free: 2.176 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003907/0.5035, allocations: 2.34 MB / 0.6104 GB, free: 15.81 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007358/0.5109, allocations: 6.78 MB / 0.617 GB, free: 9.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.5109, allocations: 4 kB / 0.617 GB, free: 9.016 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.511, allocations: 0 / 0.617 GB, free: 9.016 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003074/0.5113, allocations: 0 / 0.617 GB, free: 9.016 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01307/0.5244, allocations: 5.17 MB / 0.6221 GB, free: 3.773 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.5244, allocations: 12.03 kB / 0.6221 GB, free: 3.762 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01064/0.5351, allocations: 2.579 MB / 0.6246 GB, free: 1.172 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008478/0.5436, allocations: 4.035 MB / 0.6286 GB, free: 13.08 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.5439, allocations: 279.9 kB / 0.6288 GB, free: 12.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001339/0.5452, allocations: 391.6 kB / 0.6292 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02228/0.5675, allocations: 12 MB / 0.6409 GB, free: 15.64 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002632/0.5678, allocations: 55.44 kB / 0.641 GB, free: 15.58 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001239/0.5691, allocations: 175.9 kB / 0.6411 GB, free: 15.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003446/0.5725, allocations: 2.143 MB / 0.6432 GB, free: 13.27 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02136/0.5939, allocations: 10.35 MB / 0.6533 GB, free: 2.895 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.255/0.8489, allocations: 47.53 MB / 0.6997 GB, free: 109.7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01276/0.8617, allocations: 5.82 MB / 0.7054 GB, free: 108.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/0.8648, allocations: 2.96 MB / 0.7083 GB, free: 107.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01154/0.8764, allocations: 8.879 MB / 0.717 GB, free: 103.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.8765, allocations: 63.91 kB / 0.7171 GB, free: 103.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=206): time 5.41e-06/0.8765, allocations: 0 / 0.7171 GB, free: 103.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=262): time 0.111/0.9875, allocations: 35.02 MB / 0.7513 GB, free: 92.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.9876, allocations: 212.9 kB / 0.7515 GB, free: 91.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007635/0.9952, allocations: 4.77 MB / 0.7561 GB, free: 87.87 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007082/0.996, allocations: 61.7 kB / 0.7562 GB, free: 87.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002798/0.9988, allocations: 3.548 MB / 0.7596 GB, free: 84.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001546/1, allocations: 0.9736 MB / 0.7606 GB, free: 83.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/1.001, allocations: 140 kB / 0.7607 GB, free: 83.15 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005303/1.002, allocations: 0.5957 MB / 0.7613 GB, free: 82.55 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004451/1.006, allocations: 3.149 MB / 0.7644 GB, free: 79.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005843/1.012, allocations: 7.02 MB / 0.7712 GB, free: 70.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/1.023, allocations: 10.91 MB / 0.7819 GB, free: 57.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001322/1.023, allocations: 43.94 kB / 0.7819 GB, free: 57.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=914) (initialization): time 0.02553/1.049, allocations: 13.68 MB / 0.7953 GB, free: 43.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001912/1.049, allocations: 67.98 kB / 0.7954 GB, free: 43.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002901/1.05, allocations: 136 kB / 0.7955 GB, free: 43.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01118/1.061, allocations: 4.4 MB / 0.7998 GB, free: 39.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004657/1.065, allocations: 1.485 MB / 0.8012 GB, free: 37.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03164/1.097, allocations: 26.84 MB / 0.8274 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005544/1.103, allocations: 407.5 kB / 0.8278 GB, free: 10.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001379/1.104, allocations: 415.9 kB / 0.8282 GB, free: 9.836 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (798): * Single equations (assignments): 792 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.005336/1.109, allocations: 2.474 MB / 0.8306 GB, free: 7.352 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.111, allocations: 442.3 kB / 0.8311 GB, free: 6.914 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01584/1.127, allocations: 8.479 MB / 0.8393 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.346e-05/1.127, allocations: 31.94 kB / 0.8394 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.7e-05/1.127, allocations: 12 kB / 0.8394 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.991e-05/1.127, allocations: 11.95 kB / 0.8394 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03499/1.162, allocations: 17.04 MB / 0.856 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-05/1.162, allocations: 4 kB / 0.856 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/1.163, allocations: 306 kB / 0.8563 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01121/1.175, allocations: 4.105 MB / 0.8603 GB, free: 8.781 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005091/1.175, allocations: 48 kB / 0.8604 GB, free: 8.734 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2533/1.428, allocations: 25.62 MB / 0.8854 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.429, allocations: 6.406 kB / 0.8854 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01837/1.447, allocations: 12.4 MB / 0.8975 GB, free: 146.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002185/1.449, allocations: 0.9669 MB / 0.8985 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005593/1.45, allocations: 56.05 kB / 0.8985 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001844/1.452, allocations: 177.6 kB / 0.8987 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006221/1.452, allocations: 189.1 kB / 0.8989 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.452, allocations: 73.14 kB / 0.8989 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003822/1.456, allocations: 3.004 MB / 0.9019 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/1.456, allocations: 3.469 kB / 0.9019 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005532/1.462, allocations: 1.465 MB / 0.9033 GB, free: 144.5 MB / 0.5105 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 (158): * Single equations (assignments): 152 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004706/1.462, allocations: 192.1 kB / 0.9035 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01399/1.476, allocations: 8.377 MB / 0.9117 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.476, allocations: 1.375 kB / 0.9117 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006082/1.482, allocations: 3.544 MB / 0.9151 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006667/1.489, allocations: 0.5506 MB / 0.9157 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02081/1.51, allocations: 14.94 MB / 0.9303 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003915/1.514, allocations: 3.901 MB / 0.9341 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/1.515, allocations: 329.6 kB / 0.9344 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.012e-06/1.515, allocations: 0 / 0.9344 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.3486/1.864, allocations: 141.3 MB / 1.072 GB, free: 148.2 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches