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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009481/0.000948, allocations: 100.4 kB / 17 MB, free: 6.477 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.00139/0.00139, allocations: 185.7 kB / 17.89 MB, free: 5.922 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.531/1.531, allocations: 223.3 MB / 241.9 MB, free: 324 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.2116/0.2116, allocations: 44.24 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003124, allocations: 8.625 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1443, allocations: 61.92 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.04214/0.1865, allocations: 42.57 MB / 0.5021 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3452/0.5318, allocations: 9.585 MB / 0.5115 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01179/0.5436, allocations: 205 kB / 0.5117 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009029/0.5527, allocations: 2.181 MB / 0.5138 GB, free: 9.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02394/0.5766, allocations: 6.618 MB / 0.5203 GB, free: 8.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005737/0.5824, allocations: 0.7735 MB / 0.521 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1017/0.6842, allocations: 61.34 MB / 0.5809 GB, free: 1.176 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008304/0.6925, allocations: 4.259 MB / 0.5851 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00424/0.6968, allocations: 1.429 MB / 0.5865 GB, free: 12.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004568/0.7014, allocations: 2.409 MB / 0.5888 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001407/0.7028, allocations: 176 kB / 0.589 GB, free: 10.62 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003382/0.7062, allocations: 1.092 MB / 0.5901 GB, free: 9.711 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00324/0.7095, allocations: 1.94 MB / 0.592 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002196/0.7117, allocations: 0.8806 MB / 0.5928 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008072/0.7198, allocations: 6.013 MB / 0.5987 GB, free: 2.285 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.7198, allocations: 0 / 0.5987 GB, free: 2.285 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7199, allocations: 0 / 0.5987 GB, free: 2.285 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003092/0.7202, allocations: 0 / 0.5987 GB, free: 2.285 MB / 430.1 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.01219/0.7324, allocations: 4.657 MB / 0.6032 GB, free: 13.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.7324, allocations: 12.56 kB / 0.6032 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01142/0.7439, allocations: 2.529 MB / 0.6057 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009895/0.7538, allocations: 3.299 MB / 0.6089 GB, free: 7.688 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002709/0.7541, allocations: 242.1 kB / 0.6092 GB, free: 7.449 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001674/0.7558, allocations: 331.7 kB / 0.6095 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02165/0.7775, allocations: 10.88 MB / 0.6201 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.7777, allocations: 59.44 kB / 0.6202 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004807/0.7782, allocations: 155.8 kB / 0.6203 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003486/0.7817, allocations: 1.996 MB / 0.6223 GB, free: 9.297 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02014/0.8018, allocations: 9.436 MB / 0.6315 GB, free: 15.83 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05379/0.8557, allocations: 41.21 MB / 0.6717 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009887/0.8656, allocations: 4.257 MB / 0.6759 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002453/0.8681, allocations: 1.928 MB / 0.6778 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.8783, allocations: 7.618 MB / 0.6852 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.8784, allocations: 55.5 kB / 0.6853 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 3.918e-06/0.8784, allocations: 0 / 0.6853 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.4027/1.281, allocations: 41.41 MB / 0.7257 GB, free: 189 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.687e-05/1.281, allocations: 202.7 kB / 0.7259 GB, free: 188.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/1.288, allocations: 4.28 MB / 0.7301 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007296/1.288, allocations: 65.88 kB / 0.7301 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002189/1.291, allocations: 3.172 MB / 0.7332 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001208/1.292, allocations: 0.8799 MB / 0.7341 GB, free: 183.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/1.292, allocations: 130.2 kB / 0.7342 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002612/1.292, allocations: 0.5821 MB / 0.7348 GB, free: 183.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004208/1.297, allocations: 3.603 MB / 0.7383 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005525/1.302, allocations: 7.266 MB / 0.7454 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005776/1.308, allocations: 4.96 MB / 0.7502 GB, free: 171 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.439e-05/1.308, allocations: 36 kB / 0.7503 GB, free: 171 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03244/1.341, allocations: 16.17 MB / 0.7661 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.915e-05/1.341, allocations: 62.12 kB / 0.7661 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/1.341, allocations: 132.7 kB / 0.7662 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01995/1.361, allocations: 6.278 MB / 0.7724 GB, free: 148.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005556/1.366, allocations: 1.489 MB / 0.7738 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0294/1.396, allocations: 26.14 MB / 0.7994 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006439/1.402, allocations: 415.3 kB / 0.7998 GB, free: 120 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/1.403, allocations: 381.1 kB / 0.8001 GB, free: 119.7 MB / 0.5294 GB 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.004342/1.408, allocations: 2.229 MB / 0.8023 GB, free: 117.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001069/1.409, allocations: 390.9 kB / 0.8027 GB, free: 117 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02513/1.434, allocations: 11.3 MB / 0.8137 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-05/1.434, allocations: 27.95 kB / 0.8137 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.229e-05/1.434, allocations: 8 kB / 0.8137 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.804e-05/1.434, allocations: 19.95 kB / 0.8138 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04465/1.479, allocations: 20.75 MB / 0.834 GB, free: 84.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.928e-05/1.479, allocations: 11.98 kB / 0.834 GB, free: 84.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002096/1.481, allocations: 384 kB / 0.8344 GB, free: 84.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01766/1.499, allocations: 5.344 MB / 0.8396 GB, free: 78.74 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007332/1.5, allocations: 47.98 kB / 0.8397 GB, free: 78.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02622/1.526, allocations: 21.22 MB / 0.8604 GB, free: 57.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.526, allocations: 8 kB / 0.8604 GB, free: 57.2 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02936/1.555, allocations: 14.59 MB / 0.8746 GB, free: 42.52 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002162/1.557, allocations: 455.8 kB / 0.8751 GB, free: 42.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002457/1.56, allocations: 45.41 kB / 0.8751 GB, free: 42.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003967/1.564, allocations: 183.7 kB / 0.8753 GB, free: 41.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00105/1.565, allocations: 161 kB / 0.8754 GB, free: 41.67 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005778/1.566, allocations: 60.94 kB / 0.8755 GB, free: 41.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00611/1.572, allocations: 2.682 MB / 0.8781 GB, free: 38.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.765e-06/1.572, allocations: 4 kB / 0.8781 GB, free: 38.92 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01063/1.582, allocations: 1.373 MB / 0.8795 GB, free: 37.56 MB / 0.5294 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.001333/1.584, allocations: 179.9 kB / 0.8796 GB, free: 37.38 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01478/1.599, allocations: 8.285 MB / 0.8877 GB, free: 29.11 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/1.599, allocations: 0 / 0.8877 GB, free: 29.11 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005125/1.604, allocations: 3.212 MB / 0.8909 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005633/1.609, allocations: 496.5 kB / 0.8913 GB, free: 25.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.295/1.904, allocations: 13.6 MB / 0.9046 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006939/1.911, allocations: 3.51 MB / 0.908 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007059/1.919, allocations: 1.95 MB / 0.9099 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/1.92, allocations: 265.4 kB / 0.9102 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.804e-06/1.92, allocations: 0 / 0.9102 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.09332/2.013, allocations: 64.97 MB / 0.9736 GB, free: 132.2 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches