Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_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.001408/0.001408, allocations: 108.3 kB / 16.41 MB, free: 6.473 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.001414/0.001414, allocations: 188.1 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2299/0.2299, allocations: 43.53 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 71.91 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1591, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01321/0.1724, allocations: 12.1 MB / 0.4997 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.1827, allocations: 4.303 MB / 0.5039 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.1848, allocations: 75.75 kB / 0.504 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005296/0.1901, allocations: 2.741 MB / 0.5066 GB, free: 8.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.1959, allocations: 2.074 MB / 0.5087 GB, free: 6.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.1982, allocations: 0.9202 MB / 0.5096 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008439/0.2067, allocations: 5.244 MB / 0.5147 GB, free: 244 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005581/0.2123, allocations: 3.382 MB / 0.518 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004201/0.2165, allocations: 1.729 MB / 0.5197 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004751/0.2213, allocations: 2.535 MB / 0.5222 GB, free: 8.527 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001537/0.2228, allocations: 384 kB / 0.5225 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004259/0.2271, allocations: 1.408 MB / 0.5239 GB, free: 6.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004063/0.2312, allocations: 2.225 MB / 0.5261 GB, free: 4.512 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006584/0.2378, allocations: 2.443 MB / 0.5285 GB, free: 2.055 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3747/0.6125, allocations: 7.911 MB / 0.5362 GB, free: 16.03 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.6126, allocations: 0 / 0.5362 GB, free: 16.03 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.6126, allocations: 0 / 0.5362 GB, free: 16.03 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000333/0.6129, allocations: 2.672 kB / 0.5362 GB, free: 16.03 MB / 414.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.02104/0.634, allocations: 5.527 MB / 0.5416 GB, free: 13.95 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/0.6341, allocations: 12.45 kB / 0.5416 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0123/0.6464, allocations: 2.48 MB / 0.544 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.6576, allocations: 3.521 MB / 0.5475 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003025/0.6579, allocations: 241.3 kB / 0.5477 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001951/0.6599, allocations: 339.5 kB / 0.548 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.6825, allocations: 10.87 MB / 0.5586 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.6827, allocations: 59.92 kB / 0.5587 GB, free: 9.613 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004251/0.6831, allocations: 151.5 kB / 0.5588 GB, free: 9.547 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00279/0.6859, allocations: 1.996 MB / 0.5608 GB, free: 9.078 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.7042, allocations: 9.451 MB / 0.57 GB, free: 4.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05603/0.7603, allocations: 41.05 MB / 0.6101 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01125/0.7716, allocations: 4.272 MB / 0.6143 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003126/0.7747, allocations: 1.93 MB / 0.6162 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.7894, allocations: 7.61 MB / 0.6236 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.963e-05/0.7895, allocations: 57.89 kB / 0.6236 GB, free: 13.51 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 5.09e-06/0.7895, allocations: 0 / 0.6236 GB, free: 13.51 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.1578/0.9473, allocations: 40.97 MB / 0.6637 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001581/0.9475, allocations: 209.9 kB / 0.6639 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008406/0.9559, allocations: 4.338 MB / 0.6681 GB, free: 20 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.001023/0.957, allocations: 57.7 kB / 0.6681 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003182/0.9602, allocations: 3.168 MB / 0.6712 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002058/0.9622, allocations: 0.8828 MB / 0.6721 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002605/0.9648, allocations: 1.36 MB / 0.6734 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.965, allocations: 305.1 kB / 0.6737 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00564/0.9707, allocations: 3.632 MB / 0.6773 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008912/0.9796, allocations: 7.292 MB / 0.6844 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0162/0.9958, allocations: 11.63 MB / 0.6957 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/0.996, allocations: 40 kB / 0.6958 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0449/1.041, allocations: 16.2 MB / 0.7116 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002529/1.041, allocations: 63.98 kB / 0.7117 GB, free: 0.707 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000326/1.042, allocations: 128 kB / 0.7118 GB, free: 0.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02329/1.065, allocations: 6.223 MB / 0.7179 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006682/1.072, allocations: 1.489 MB / 0.7193 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04341/1.115, allocations: 27.63 MB / 0.7463 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008845/1.124, allocations: 415.3 kB / 0.7467 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002271/1.126, allocations: 384 kB / 0.7471 GB, free: 12.16 MB / 0.5919 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 (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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008025/1.134, allocations: 2.224 MB / 0.7492 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001979/1.136, allocations: 398.9 kB / 0.7496 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4245/1.561, allocations: 11.29 MB / 0.7606 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.815e-05/1.561, allocations: 24.81 kB / 0.7607 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.71e-05/1.561, allocations: 11.28 kB / 0.7607 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.539e-05/1.561, allocations: 11.72 kB / 0.7607 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0516/1.613, allocations: 20.66 MB / 0.7809 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.857e-05/1.613, allocations: 3.906 kB / 0.7809 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/1.615, allocations: 386.6 kB / 0.7812 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01898/1.634, allocations: 5.311 MB / 0.7864 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007112/1.635, allocations: 43.41 kB / 0.7865 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02772/1.663, allocations: 22.71 MB / 0.8086 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.663, allocations: 7.938 kB / 0.8086 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02929/1.692, allocations: 14.6 MB / 0.8229 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003548/1.696, allocations: 0.9845 MB / 0.8239 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00229/1.698, allocations: 41.75 kB / 0.8239 GB, free: 170.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004222/1.702, allocations: 183.7 kB / 0.8241 GB, free: 170.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/1.703, allocations: 156.8 kB / 0.8242 GB, free: 170.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000528/1.704, allocations: 64 kB / 0.8243 GB, free: 170.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006764/1.711, allocations: 2.729 MB / 0.8269 GB, free: 167.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.711, allocations: 0 / 0.8269 GB, free: 167.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01037/1.721, allocations: 1.371 MB / 0.8283 GB, free: 166.2 MB / 0.5919 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 (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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001101/1.722, allocations: 185 kB / 0.8285 GB, free: 166 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01391/1.736, allocations: 8.342 MB / 0.8366 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.937e-05/1.736, allocations: 0 / 0.8366 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005089/1.741, allocations: 3.213 MB / 0.8397 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0062/1.747, allocations: 0.5112 MB / 0.8402 GB, free: 154 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02746/1.775, allocations: 11.86 MB / 0.8518 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007645/1.783, allocations: 3.522 MB / 0.8553 GB, free: 138.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005645/1.788, allocations: 1.957 MB / 0.8572 GB, free: 136.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/1.79, allocations: 263.4 kB / 0.8574 GB, free: 136.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.072e-06/1.79, allocations: 0 / 0.8574 GB, free: 136.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.1046/1.895, allocations: 66.88 MB / 0.9227 GB, free: 69.48 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches