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.001383/0.001383, allocations: 110.7 kB / 17.04 MB, free: 5.812 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.00118/0.001181, allocations: 196 kB / 17.97 MB, free: 5.027 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.663/1.663, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2503/0.2503, allocations: 43.52 MB / 314.7 MB, free: 492 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.002363/0.002363, allocations: 66 kB / 384.2 MB, free: 56.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1418, allocations: 57.8 MB / 442 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01098/0.1528, allocations: 12.09 MB / 454.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1645, allocations: 4.322 MB / 458.4 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002699/0.1672, allocations: 75.81 kB / 458.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005409/0.1727, allocations: 2.733 MB / 461.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005719/0.1784, allocations: 2.015 MB / 463.2 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.1805, allocations: 0.9202 MB / 464.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00838/0.1889, allocations: 5.244 MB / 469.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005289/0.1943, allocations: 3.378 MB / 472.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.1977, allocations: 1.733 MB / 474.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003791/0.2015, allocations: 2.532 MB / 477 MB, free: 2.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009906/0.2026, allocations: 384 kB / 477.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003123/0.2057, allocations: 1.4 MB / 478.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002361/0.2081, allocations: 2.19 MB / 481 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002909/0.211, allocations: 2.447 MB / 483.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00883/0.2198, allocations: 7.919 MB / 491.3 MB, free: 4.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.2199, allocations: 4 kB / 491.3 MB, free: 4.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2199, allocations: 0 / 491.3 MB, free: 4.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002246/0.2201, allocations: 0 / 491.3 MB, free: 4.574 MB / 366.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.01382/0.2339, allocations: 5.521 MB / 496.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.234, allocations: 19.83 kB / 496.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0103/0.2443, allocations: 2.467 MB / 499.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008268/0.2526, allocations: 3.528 MB / 0.4911 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000209/0.2529, allocations: 238.5 kB / 0.4913 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.2541, allocations: 339.6 kB / 0.4916 GB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02081/0.2749, allocations: 10.87 MB / 0.5023 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001764/0.2752, allocations: 55.48 kB / 0.5023 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004594/0.2757, allocations: 151.9 kB / 0.5025 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003108/0.2788, allocations: 2.006 MB / 0.5044 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.2976, allocations: 9.444 MB / 0.5136 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3422/0.6399, allocations: 41.05 MB / 0.5537 GB, free: 58.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/0.6514, allocations: 4.268 MB / 0.5579 GB, free: 57.46 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003496/0.6549, allocations: 1.91 MB / 0.5598 GB, free: 56.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.6672, allocations: 7.624 MB / 0.5672 GB, free: 52.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.6672, allocations: 58.33 kB / 0.5673 GB, free: 52.25 MB / 414.1 MB Notification: Performance of pre-optimization done (n=180): time 3.126e-06/0.6672, allocations: 0 / 0.5673 GB, free: 52.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=236): time 0.1399/0.8071, allocations: 40.96 MB / 0.6073 GB, free: 17.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.21e-05/0.8073, allocations: 201.9 kB / 0.6075 GB, free: 17.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005324/0.8126, allocations: 4.333 MB / 0.6117 GB, free: 12.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006123/0.8132, allocations: 61.7 kB / 0.6117 GB, free: 12.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.8148, allocations: 3.172 MB / 0.6148 GB, free: 9.758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008174/0.8156, allocations: 0.8814 MB / 0.6157 GB, free: 8.883 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/0.8172, allocations: 1.356 MB / 0.617 GB, free: 7.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.953e-05/0.8173, allocations: 305.1 kB / 0.6173 GB, free: 7.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003875/0.8212, allocations: 3.628 MB / 0.6209 GB, free: 3.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008051/0.8292, allocations: 7.295 MB / 0.628 GB, free: 10.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01634/0.8456, allocations: 11.63 MB / 0.6393 GB, free: 13.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001676/0.8459, allocations: 36 kB / 0.6394 GB, free: 13.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.05234/0.8982, allocations: 16.22 MB / 0.6552 GB, free: 12.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.183e-05/0.8984, allocations: 60 kB / 0.6553 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/0.8985, allocations: 124 kB / 0.6554 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02289/0.9214, allocations: 6.221 MB / 0.6615 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005935/0.9274, allocations: 1.491 MB / 0.6629 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03836/0.9658, allocations: 27.63 MB / 0.6899 GB, free: 9.023 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006892/0.9727, allocations: 411.4 kB / 0.6903 GB, free: 8.621 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001417/0.9742, allocations: 384 kB / 0.6907 GB, free: 8.246 MB / 494.1 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 (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.005128/0.9793, allocations: 2.231 MB / 0.6928 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001133/0.9805, allocations: 390.9 kB / 0.6932 GB, free: 5.617 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02936/1.01, allocations: 11.3 MB / 0.7043 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.826e-05/1.01, allocations: 24 kB / 0.7043 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/1.01, allocations: 16 kB / 0.7043 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.033e-05/1.01, allocations: 7.969 kB / 0.7043 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04643/1.056, allocations: 20.66 MB / 0.7245 GB, free: 5.125 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.55e-05/1.057, allocations: 4 kB / 0.7245 GB, free: 5.121 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002115/1.059, allocations: 391.4 kB / 0.7249 GB, free: 4.738 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2545/1.313, allocations: 5.305 MB / 0.73 GB, free: 180.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006189/1.314, allocations: 42.47 kB / 0.7301 GB, free: 180.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02953/1.343, allocations: 22.7 MB / 0.7522 GB, free: 172.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.862e-06/1.343, allocations: 6.312 kB / 0.7522 GB, free: 172.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02774/1.371, allocations: 14.59 MB / 0.7665 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003101/1.374, allocations: 0.99 MB / 0.7675 GB, free: 166.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007617/1.375, allocations: 43.34 kB / 0.7675 GB, free: 166.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002292/1.377, allocations: 183.9 kB / 0.7677 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007059/1.378, allocations: 154 kB / 0.7678 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002064/1.378, allocations: 62.44 kB / 0.7679 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003478/1.382, allocations: 2.723 MB / 0.7705 GB, free: 164.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.21e-07/1.382, allocations: 0 / 0.7705 GB, free: 164.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006492/1.388, allocations: 1.37 MB / 0.7719 GB, free: 163.5 MB / 0.5137 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.0005753/1.389, allocations: 182.3 kB / 0.7721 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01043/1.399, allocations: 8.354 MB / 0.7802 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/1.399, allocations: 0 / 0.7802 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003718/1.403, allocations: 3.217 MB / 0.7834 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/1.406, allocations: 0.5004 MB / 0.7838 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/1.423, allocations: 11.86 MB / 0.7954 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002925/1.426, allocations: 3.51 MB / 0.7989 GB, free: 136 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003972/1.43, allocations: 1.967 MB / 0.8008 GB, free: 134.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009412/1.431, allocations: 267.4 kB / 0.801 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.082e-06/1.431, allocations: 4 kB / 0.801 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.08909/1.52, allocations: 64.75 MB / 0.8643 GB, free: 69.27 MB / 0.5137 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/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