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.00154/0.00154, allocations: 108.2 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.002264/0.002264, allocations: 182.9 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.336/1.336, allocations: 222.9 MB / 243 MB, free: 15.16 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.2103/0.2103, allocations: 44.19 MB / 337.4 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 67.75 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1251, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01325/0.1384, allocations: 12.05 MB / 482.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009231/0.1477, allocations: 4.287 MB / 487 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001923/0.1496, allocations: 75.75 kB / 487.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005301/0.1549, allocations: 2.741 MB / 489.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005235/0.1603, allocations: 2.015 MB / 491.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.1626, allocations: 0.9047 MB / 492.8 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008117/0.1707, allocations: 5.587 MB / 498.4 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00525/0.176, allocations: 3.358 MB / 0.49 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.1796, allocations: 1.725 MB / 0.4916 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003966/0.1835, allocations: 2.512 MB / 0.4941 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001372/0.1849, allocations: 384 kB / 0.4945 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003134/0.1881, allocations: 1.4 MB / 0.4958 GB, free: 8.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002509/0.1906, allocations: 2.194 MB / 0.498 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002859/0.1935, allocations: 2.439 MB / 0.5004 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2333/0.4268, allocations: 7.896 MB / 0.5081 GB, free: 24.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.4269, allocations: 1.391 kB / 0.5081 GB, free: 24.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.218e-06/0.4269, allocations: 0 / 0.5081 GB, free: 24.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000464/0.4274, allocations: 8.734 kB / 0.5081 GB, free: 24.3 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.01767/0.4451, allocations: 5.507 MB / 0.5134 GB, free: 22.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.4451, allocations: 12.72 kB / 0.5135 GB, free: 22.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01173/0.4569, allocations: 2.468 MB / 0.5159 GB, free: 21.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009059/0.466, allocations: 3.434 MB / 0.5192 GB, free: 21.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.4662, allocations: 240 kB / 0.5195 GB, free: 21.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001454/0.4677, allocations: 333.7 kB / 0.5198 GB, free: 21.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.4861, allocations: 10.88 MB / 0.5304 GB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.4863, allocations: 51.34 kB / 0.5304 GB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000439/0.4867, allocations: 157.6 kB / 0.5306 GB, free: 17.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002554/0.4893, allocations: 2 MB / 0.5325 GB, free: 16.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.5049, allocations: 9.449 MB / 0.5418 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05694/0.5618, allocations: 41.04 MB / 0.5818 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.5727, allocations: 4.27 MB / 0.586 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.5756, allocations: 1.936 MB / 0.5879 GB, free: 10.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.5883, allocations: 7.602 MB / 0.5953 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.5884, allocations: 60.98 kB / 0.5954 GB, free: 2.246 MB / 430.1 MB Notification: Performance of pre-optimization done (n=180): time 3.798e-06/0.5884, allocations: 0 / 0.5954 GB, free: 2.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=236): time 0.1626/0.751, allocations: 40.91 MB / 0.6353 GB, free: 9.426 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.7512, allocations: 201.9 kB / 0.6355 GB, free: 9.188 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008076/0.7592, allocations: 4.314 MB / 0.6397 GB, free: 4.852 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006873/0.76, allocations: 64.52 kB / 0.6398 GB, free: 4.785 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002793/0.7628, allocations: 3.158 MB / 0.6429 GB, free: 1.645 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001619/0.7644, allocations: 0.8836 MB / 0.6438 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003953/0.7684, allocations: 1.352 MB / 0.6451 GB, free: 15.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.7685, allocations: 301.1 kB / 0.6454 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005848/0.7744, allocations: 3.628 MB / 0.6489 GB, free: 11.47 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009198/0.7836, allocations: 7.302 MB / 0.656 GB, free: 2.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0153/0.7989, allocations: 11.63 MB / 0.6674 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001441/0.7991, allocations: 39.94 kB / 0.6674 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04173/0.8409, allocations: 16.21 MB / 0.6833 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002981/0.8412, allocations: 61.09 kB / 0.6833 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003005/0.8415, allocations: 128.9 kB / 0.6834 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02302/0.8646, allocations: 6.228 MB / 0.6895 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005527/0.8701, allocations: 1.489 MB / 0.691 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2892/1.159, allocations: 27.62 MB / 0.7179 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.166, allocations: 412.5 kB / 0.7183 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002093/1.168, allocations: 386.5 kB / 0.7187 GB, free: 180 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.005612/1.174, allocations: 2.222 MB / 0.7209 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.175, allocations: 399.9 kB / 0.7213 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0259/1.201, allocations: 11.29 MB / 0.7323 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.253e-05/1.201, allocations: 28.39 kB / 0.7323 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/1.201, allocations: 15.34 kB / 0.7323 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/1.201, allocations: 10.59 kB / 0.7323 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03893/1.24, allocations: 20.66 MB / 0.7525 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.871e-05/1.24, allocations: 7.969 kB / 0.7525 GB, free: 159.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.242, allocations: 380.4 kB / 0.7529 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01765/1.26, allocations: 5.31 MB / 0.7581 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005897/1.26, allocations: 43.94 kB / 0.7581 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02449/1.285, allocations: 22.68 MB / 0.7803 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/1.285, allocations: 7.391 kB / 0.7803 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02813/1.313, allocations: 14.61 MB / 0.7945 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001865/1.315, allocations: 447.9 kB / 0.795 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/1.316, allocations: 51.17 kB / 0.795 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002641/1.319, allocations: 183.7 kB / 0.7952 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006677/1.32, allocations: 149 kB / 0.7953 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002221/1.32, allocations: 71.92 kB / 0.7954 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00365/1.324, allocations: 2.705 MB / 0.798 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.8e-07/1.324, allocations: 0 / 0.798 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00651/1.33, allocations: 1.374 MB / 0.7994 GB, free: 111.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.0006727/1.331, allocations: 180.5 kB / 0.7996 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01107/1.342, allocations: 8.343 MB / 0.8077 GB, free: 103 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.342, allocations: 4.281 kB / 0.8077 GB, free: 103 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004019/1.346, allocations: 3.211 MB / 0.8108 GB, free: 99.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003527/1.35, allocations: 0.5071 MB / 0.8113 GB, free: 99.31 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/1.369, allocations: 11.82 MB / 0.8229 GB, free: 87.41 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003301/1.372, allocations: 3.507 MB / 0.8263 GB, free: 83.88 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004045/1.376, allocations: 1.956 MB / 0.8282 GB, free: 81.92 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/1.377, allocations: 263.4 kB / 0.8285 GB, free: 81.66 MB / 0.5294 GB Notification: Performance of SimCode: time 9.22e-07/1.377, allocations: 4 kB / 0.8285 GB, free: 81.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.0915/1.469, allocations: 64.63 MB / 0.8916 GB, free: 17.21 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 gbode -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