Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008946/0.0008946, allocations: 175.5 kB / 16.72 MB, free: 5.051 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.31/1.31, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007031/0.000703, allocations: 89.36 kB / 271.2 MB, free: 8.262 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.3039/0.3039, allocations: 43.56 MB / 363.1 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004186/0.0004186, allocations: 15.98 kB / 432 MB, free: 5.852 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1142, allocations: 58.85 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2269/0.3411, allocations: 42.63 MB / 0.5209 GB, free: 20.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02014/0.3613, allocations: 9.584 MB / 0.5303 GB, free: 13.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009631/0.371, allocations: 207.7 kB / 0.5305 GB, free: 13.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006061/0.3771, allocations: 2.175 MB / 0.5326 GB, free: 12.87 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.3928, allocations: 6.645 MB / 0.5391 GB, free: 10.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003307/0.3961, allocations: 0.834 MB / 0.5399 GB, free: 9.781 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.04134/0.4375, allocations: 35.16 MB / 0.5743 GB, free: 4.973 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007008/0.4445, allocations: 4.507 MB / 0.5787 GB, free: 444 kB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003061/0.4476, allocations: 1.452 MB / 0.5801 GB, free: 14.98 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003602/0.4513, allocations: 2.419 MB / 0.5824 GB, free: 12.55 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009677/0.4523, allocations: 176 kB / 0.5826 GB, free: 12.38 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002733/0.455, allocations: 1.26 MB / 0.5838 GB, free: 11.12 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/0.4571, allocations: 1.952 MB / 0.5858 GB, free: 9.16 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002256/0.4594, allocations: 2.091 MB / 0.5878 GB, free: 7.051 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005976/0.4654, allocations: 6.028 MB / 0.5937 GB, free: 1.008 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4654, allocations: 0 / 0.5937 GB, free: 1.008 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4654, allocations: 4 kB / 0.5937 GB, free: 1.004 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001848/0.4656, allocations: 3.938 kB / 0.5937 GB, free: 1 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.008974/0.4746, allocations: 4.596 MB / 0.5982 GB, free: 12.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.4747, allocations: 12.03 kB / 0.5982 GB, free: 12.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01031/0.485, allocations: 2.526 MB / 0.6007 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007094/0.4921, allocations: 3.477 MB / 0.6041 GB, free: 6.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.4923, allocations: 234.7 kB / 0.6043 GB, free: 6.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007288/0.4931, allocations: 339.6 kB / 0.6046 GB, free: 5.688 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0174/0.5105, allocations: 10.88 MB / 0.6152 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.5107, allocations: 55.52 kB / 0.6153 GB, free: 10.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000445/0.5111, allocations: 151.9 kB / 0.6154 GB, free: 9.863 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002838/0.514, allocations: 2.002 MB / 0.6174 GB, free: 7.855 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01795/0.5319, allocations: 9.428 MB / 0.6266 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/0.5812, allocations: 41.26 MB / 0.6669 GB, free: 3.945 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2/0.7813, allocations: 4.258 MB / 0.671 GB, free: 138.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002993/0.7843, allocations: 1.913 MB / 0.6729 GB, free: 138.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.7949, allocations: 7.619 MB / 0.6803 GB, free: 135.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.795, allocations: 53.22 kB / 0.6804 GB, free: 135.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 5.009e-06/0.795, allocations: 2.875 kB / 0.6804 GB, free: 135.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.14/0.9351, allocations: 41.45 MB / 0.7209 GB, free: 125.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.9352, allocations: 209.3 kB / 0.7211 GB, free: 124.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006065/0.9413, allocations: 4.307 MB / 0.7253 GB, free: 122.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006267/0.9419, allocations: 58.16 kB / 0.7253 GB, free: 122.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001716/0.9436, allocations: 3.177 MB / 0.7284 GB, free: 119.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008566/0.9445, allocations: 0.8789 MB / 0.7293 GB, free: 119.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.9449, allocations: 129.4 kB / 0.7294 GB, free: 119 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002583/0.9451, allocations: 0.5842 MB / 0.73 GB, free: 118.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004058/0.9492, allocations: 3.6 MB / 0.7335 GB, free: 115.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/0.9542, allocations: 7.274 MB / 0.7406 GB, free: 106.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.9645, allocations: 11.59 MB / 0.7519 GB, free: 93.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-05/0.9646, allocations: 36 kB / 0.752 GB, free: 93.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03259/0.9972, allocations: 16.17 MB / 0.7678 GB, free: 76.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.329e-05/0.9973, allocations: 60 kB / 0.7678 GB, free: 76.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/0.9975, allocations: 128 kB / 0.7679 GB, free: 76.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01973/1.017, allocations: 6.259 MB / 0.774 GB, free: 70.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004831/1.022, allocations: 1.497 MB / 0.7755 GB, free: 69.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02858/1.051, allocations: 26.16 MB / 0.8011 GB, free: 42.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005523/1.056, allocations: 408 kB / 0.8014 GB, free: 42.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009818/1.057, allocations: 384.5 kB / 0.8018 GB, free: 41.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004125/1.061, allocations: 2.232 MB / 0.804 GB, free: 39.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.063, allocations: 394.9 kB / 0.8044 GB, free: 39.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02464/1.087, allocations: 11.3 MB / 0.8154 GB, free: 27.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-05/1.087, allocations: 25.25 kB / 0.8154 GB, free: 27.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/1.087, allocations: 12 kB / 0.8154 GB, free: 27.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.334e-05/1.087, allocations: 11.95 kB / 0.8155 GB, free: 27.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03801/1.125, allocations: 20.76 MB / 0.8357 GB, free: 6.578 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.051e-05/1.125, allocations: 4 kB / 0.8357 GB, free: 6.574 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001874/1.127, allocations: 395.4 kB / 0.8361 GB, free: 6.188 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01774/1.145, allocations: 5.338 MB / 0.8413 GB, free: 0.8438 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004944/1.146, allocations: 40 kB / 0.8414 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2497/1.395, allocations: 21.21 MB / 0.8621 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/1.395, allocations: 11.59 kB / 0.8621 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02779/1.423, allocations: 14.59 MB / 0.8763 GB, free: 134.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002479/1.426, allocations: 0.9825 MB / 0.8773 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008731/1.427, allocations: 47.89 kB / 0.8773 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002229/1.429, allocations: 192 kB / 0.8775 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006088/1.429, allocations: 151.8 kB / 0.8777 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/1.43, allocations: 65.77 kB / 0.8777 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003657/1.433, allocations: 2.703 MB / 0.8804 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.433, allocations: 0 / 0.8804 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006609/1.44, allocations: 1.367 MB / 0.8817 GB, free: 132.8 MB / 0.4948 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000769/1.441, allocations: 194.1 kB / 0.8819 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01128/1.452, allocations: 8.285 MB / 0.89 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.452, allocations: 0 / 0.89 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004329/1.456, allocations: 3.21 MB / 0.8931 GB, free: 128 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006181/1.463, allocations: 482 kB / 0.8936 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.485, allocations: 14.03 MB / 0.9073 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003734/1.488, allocations: 3.488 MB / 0.9107 GB, free: 119.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00137/1.49, allocations: 311.8 kB / 0.911 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of SimCode: time 6.51e-07/1.49, allocations: 0 / 0.911 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.1146/1.604, allocations: 109 MB / 1.017 GB, free: 19.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches