Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 173.5 kB / 8.743 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 221.5 MB / 230.7 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 101.6 kB / 281.6 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1896/0.1896, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.2e-05, allocations: 4.219 kB / 444.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 61.91 MB / 0.4947 GB, free: 1.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.5245, allocations: 107.8 MB / 0.5999 GB, free: 4.738 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.5248, allocations: 79.95 kB / 0.6 GB, free: 4.66 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2431/0.7679, allocations: 94.66 MB / 0.6924 GB, free: 5.367 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7679, allocations: 0 / 0.6924 GB, free: 5.367 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002233/0.7682, allocations: 88 kB / 0.6925 GB, free: 5.281 MB / 0.4948 GB 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.01391/0.7821, allocations: 4.601 MB / 0.697 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.7821, allocations: 11.98 kB / 0.697 GB, free: 0.5977 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.32/1.102, allocations: 6.732 MB / 0.7036 GB, free: 112.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01764/1.12, allocations: 5.988 MB / 0.7094 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003452/1.12, allocations: 138.9 kB / 0.7096 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002218/1.122, allocations: 265.5 kB / 0.7098 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01329/1.136, allocations: 6.588 MB / 0.7163 GB, free: 112.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01622/1.152, allocations: 9.58 MB / 0.7256 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/1.152, allocations: 60.88 kB / 0.7257 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006029/1.153, allocations: 33.31 kB / 0.7257 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001245/1.154, allocations: 1.019 MB / 0.7267 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/1.196, allocations: 45.98 MB / 0.7716 GB, free: 77.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003288/1.199, allocations: 3.072 MB / 0.7746 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001754/1.201, allocations: 1.729 MB / 0.7763 GB, free: 75.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00131/1.203, allocations: 1.934 MB / 0.7782 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/1.203, allocations: 53.31 kB / 0.7782 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=186): time 4.118e-06/1.203, allocations: 3.172 kB / 0.7782 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=242): time 0.06128/1.264, allocations: 26.14 MB / 0.8038 GB, free: 63.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.985e-05/1.264, allocations: 213.8 kB / 0.804 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004882/1.269, allocations: 3.27 MB / 0.8071 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006066/1.27, allocations: 25.7 kB / 0.8072 GB, free: 60.36 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001545/1.271, allocations: 3.278 MB / 0.8104 GB, free: 57.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009848/1.272, allocations: 0.8691 MB / 0.8112 GB, free: 56.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/1.272, allocations: 4 kB / 0.8112 GB, free: 56.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002625/1.273, allocations: 0.5807 MB / 0.8118 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003374/1.276, allocations: 3.308 MB / 0.815 GB, free: 53.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/1.281, allocations: 7.056 MB / 0.8219 GB, free: 44.64 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005341/1.286, allocations: 4.71 MB / 0.8265 GB, free: 40.59 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.232e-05/1.286, allocations: 36 kB / 0.8265 GB, free: 40.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.03312/1.319, allocations: 14.69 MB / 0.8409 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-05/1.32, allocations: 68.17 kB / 0.841 GB, free: 28.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/1.32, allocations: 136 kB / 0.8411 GB, free: 28.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/1.341, allocations: 5.914 MB / 0.8469 GB, free: 22.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/1.346, allocations: 1.493 MB / 0.8483 GB, free: 21.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02641/1.373, allocations: 22.89 MB / 0.8707 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006344/1.379, allocations: 275.4 kB / 0.8709 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001575/1.381, allocations: 397.4 kB / 0.8713 GB, free: 13.43 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (778): * Single equations (assignments): 773 * 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.00215/1.383, allocations: 454.7 kB / 0.8717 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001247/1.384, allocations: 367.2 kB / 0.8721 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/1.414, allocations: 10.57 MB / 0.8824 GB, free: 2.008 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.969e-05/1.414, allocations: 28 kB / 0.8824 GB, free: 1.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-05/1.414, allocations: 12 kB / 0.8825 GB, free: 1.969 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.088e-05/1.414, allocations: 7.969 kB / 0.8825 GB, free: 1.961 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3709/1.785, allocations: 19.43 MB / 0.9014 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.265e-05/1.785, allocations: 7.078 kB / 0.9015 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002302/1.787, allocations: 390.4 kB / 0.9018 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02199/1.809, allocations: 4.984 MB / 0.9067 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005839/1.81, allocations: 9.25 kB / 0.9067 GB, free: 127.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02693/1.837, allocations: 18.43 MB / 0.9247 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/1.837, allocations: 8.531 kB / 0.9247 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02897/1.866, allocations: 14.35 MB / 0.9387 GB, free: 121.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.867, allocations: 404.8 kB / 0.9391 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007513/1.868, allocations: 10.94 kB / 0.9391 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/1.87, allocations: 133.8 kB / 0.9392 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000571/1.871, allocations: 165.3 kB / 0.9394 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/1.871, allocations: 66.72 kB / 0.9395 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003309/1.874, allocations: 2.197 MB / 0.9416 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.152e-06/1.875, allocations: 2.562 kB / 0.9416 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006447/1.881, allocations: 1.17 MB / 0.9428 GB, free: 120.9 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 168 * 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.0006599/1.882, allocations: 157.4 kB / 0.9429 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.893, allocations: 7.632 MB / 0.9504 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.893, allocations: 0 / 0.9504 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004231/1.897, allocations: 3.03 MB / 0.9533 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/1.9, allocations: 409.4 kB / 0.9537 GB, free: 116.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01633/1.916, allocations: 9.826 MB / 0.9633 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003597/1.92, allocations: 3.604 MB / 0.9668 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00514/1.925, allocations: 2.048 MB / 0.9688 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009431/1.926, allocations: 257.9 kB / 0.9691 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of SimCode: time 9.22e-07/1.926, allocations: 0 / 0.9691 GB, free: 111.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.0869/2.013, allocations: 59.32 MB / 1.027 GB, free: 71.33 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches