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.001526/0.001526, allocations: 107.1 kB / 18.39 MB, free: 4.629 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.001534/0.001534, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.481/1.481, allocations: 222.9 MB / 243 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2149/0.2149, allocations: 44.19 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 65.25 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1501, allocations: 60.82 MB / 470.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.013/0.1632, allocations: 12.05 MB / 482.7 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008427/0.1716, allocations: 4.292 MB / 487 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.1735, allocations: 75.75 kB / 487.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005285/0.1788, allocations: 2.737 MB / 489.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005892/0.1848, allocations: 2.015 MB / 491.9 MB, free: 8.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002481/0.1872, allocations: 0.9085 MB / 492.8 MB, free: 7.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009579/0.1968, allocations: 5.583 MB / 498.4 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004615/0.2015, allocations: 3.366 MB / 0.49 GB, free: 14.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.2049, allocations: 1.721 MB / 0.4916 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003821/0.2088, allocations: 2.512 MB / 0.4941 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009251/0.2097, allocations: 384 kB / 0.4945 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002991/0.2127, allocations: 1.416 MB / 0.4958 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002191/0.2149, allocations: 2.178 MB / 0.498 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00284/0.2178, allocations: 2.455 MB / 0.5004 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3312/0.549, allocations: 7.889 MB / 0.5081 GB, free: 24.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.317e-05/0.5491, allocations: 0 / 0.5081 GB, free: 24.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5491, allocations: 4.031 kB / 0.5081 GB, free: 24.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004446/0.5495, allocations: 0 / 0.5081 GB, free: 24.35 MB / 382.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.02378/0.5733, allocations: 5.507 MB / 0.5135 GB, free: 22.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.5734, allocations: 9.375 kB / 0.5135 GB, free: 22.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01344/0.5868, allocations: 2.474 MB / 0.5159 GB, free: 21.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.5977, allocations: 3.426 MB / 0.5192 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004031/0.5982, allocations: 240.3 kB / 0.5195 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002799/0.601, allocations: 336.4 kB / 0.5198 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02514/0.6261, allocations: 10.88 MB / 0.5304 GB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001893/0.6264, allocations: 56.14 kB / 0.5305 GB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007582/0.6271, allocations: 153.2 kB / 0.5306 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002845/0.63, allocations: 2.002 MB / 0.5326 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.019/0.649, allocations: 9.444 MB / 0.5418 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05719/0.7062, allocations: 41.04 MB / 0.5819 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01094/0.7172, allocations: 4.259 MB / 0.586 GB, free: 12.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002925/0.7202, allocations: 1.931 MB / 0.5879 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01259/0.7328, allocations: 7.611 MB / 0.5953 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/0.7329, allocations: 53.56 kB / 0.5954 GB, free: 2.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=180): time 4.488e-06/0.7329, allocations: 0 / 0.5954 GB, free: 2.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=236): time 0.1594/0.8923, allocations: 40.91 MB / 0.6353 GB, free: 9.449 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.8924, allocations: 204 kB / 0.6355 GB, free: 9.211 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006355/0.8988, allocations: 4.314 MB / 0.6397 GB, free: 4.875 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007473/0.8995, allocations: 64.59 kB / 0.6398 GB, free: 4.809 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.9017, allocations: 3.163 MB / 0.6429 GB, free: 1.664 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001159/0.9028, allocations: 0.8863 MB / 0.6438 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002023/0.9049, allocations: 1.352 MB / 0.6451 GB, free: 15.42 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.905, allocations: 301.1 kB / 0.6454 GB, free: 15.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005175/0.9102, allocations: 3.626 MB / 0.6489 GB, free: 11.49 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007118/0.9173, allocations: 7.3 MB / 0.656 GB, free: 2.449 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.015/0.9323, allocations: 11.62 MB / 0.6674 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.851e-05/0.9325, allocations: 40.81 kB / 0.6674 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03887/0.9713, allocations: 16.21 MB / 0.6833 GB, free: 5.598 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.249e-05/0.9715, allocations: 60 kB / 0.6833 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001571/0.9716, allocations: 128 kB / 0.6834 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/0.9939, allocations: 6.224 MB / 0.6895 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005045/0.999, allocations: 1.493 MB / 0.691 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3113/1.31, allocations: 27.62 MB / 0.7179 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007404/1.318, allocations: 410.4 kB / 0.7183 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001787/1.32, allocations: 388.3 kB / 0.7187 GB, free: 165 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 (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.005583/1.325, allocations: 2.216 MB / 0.7209 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/1.326, allocations: 398.2 kB / 0.7212 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02711/1.353, allocations: 11.29 MB / 0.7323 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.514e-05/1.354, allocations: 29.5 kB / 0.7323 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.627e-05/1.354, allocations: 10.5 kB / 0.7323 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.744e-05/1.354, allocations: 11.3 kB / 0.7323 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04218/1.396, allocations: 20.65 MB / 0.7525 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.901e-05/1.396, allocations: 4 kB / 0.7525 GB, free: 147.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/1.398, allocations: 385.1 kB / 0.7529 GB, free: 147 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01866/1.417, allocations: 5.307 MB / 0.758 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007309/1.417, allocations: 43.91 kB / 0.7581 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02549/1.443, allocations: 22.71 MB / 0.7803 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/1.443, allocations: 8 kB / 0.7803 GB, free: 118.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02865/1.472, allocations: 14.61 MB / 0.7945 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.474, allocations: 453.3 kB / 0.795 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001093/1.475, allocations: 36 kB / 0.795 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002451/1.477, allocations: 186.9 kB / 0.7952 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000703/1.478, allocations: 158.2 kB / 0.7953 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002239/1.478, allocations: 63.66 kB / 0.7954 GB, free: 103.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004143/1.482, allocations: 2.705 MB / 0.798 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.11e-07/1.482, allocations: 0 / 0.798 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007795/1.49, allocations: 1.371 MB / 0.7994 GB, free: 99.5 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 (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.0006488/1.491, allocations: 190.7 kB / 0.7996 GB, free: 99.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01346/1.504, allocations: 8.342 MB / 0.8077 GB, free: 91.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/1.504, allocations: 0 / 0.8077 GB, free: 91.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004417/1.509, allocations: 3.209 MB / 0.8108 GB, free: 88.21 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003663/1.513, allocations: 0.5107 MB / 0.8113 GB, free: 87.72 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01978/1.532, allocations: 11.82 MB / 0.8229 GB, free: 75.84 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003916/1.536, allocations: 3.506 MB / 0.8263 GB, free: 72.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004522/1.541, allocations: 1.96 MB / 0.8282 GB, free: 70.35 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001233/1.542, allocations: 263.4 kB / 0.8285 GB, free: 70.09 MB / 0.5294 GB Notification: Performance of SimCode: time 1.933e-06/1.542, allocations: 0 / 0.8285 GB, free: 70.09 MB / 0.5294 GB Notification: Performance of Templates: time 0.09743/1.64, allocations: 64.64 MB / 0.8916 GB, free: 5.699 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/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