Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009383/0.0009384, allocations: 174.4 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 221.4 MB / 230.3 MB, free: 7.637 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008942/0.0008945, allocations: 86.19 kB / 281.2 MB, free: 5.441 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1733/0.1733, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.213e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4481, allocations: 107.4 MB / 0.599 GB, free: 5.324 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.4483, allocations: 79.95 kB / 0.5991 GB, free: 5.246 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4751/0.9234, allocations: 104.6 MB / 0.7012 GB, free: 87.98 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002544/0.9237, allocations: 113.8 kB / 0.7013 GB, free: 87.98 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.0139/0.9376, allocations: 5.097 MB / 0.7063 GB, free: 86.13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.9377, allocations: 14.47 kB / 0.7063 GB, free: 86.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02485/0.9625, allocations: 6.502 MB / 0.7127 GB, free: 85.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01471/0.9773, allocations: 6.444 MB / 0.719 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/0.9775, allocations: 163.2 kB / 0.7191 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002067/0.9796, allocations: 307.2 kB / 0.7194 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01139/0.991, allocations: 7.031 MB / 0.7263 GB, free: 85.02 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/1.009, allocations: 11.1 MB / 0.7371 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/1.009, allocations: 68.62 kB / 0.7372 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008018/1.01, allocations: 35.25 kB / 0.7372 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00123/1.011, allocations: 1.228 MB / 0.7384 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04623/1.057, allocations: 55.61 MB / 0.7927 GB, free: 46.97 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004064/1.062, allocations: 3.387 MB / 0.796 GB, free: 46.25 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002234/1.064, allocations: 2.083 MB / 0.7981 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/1.074, allocations: 6.196 MB / 0.8041 GB, free: 42 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/1.074, allocations: 48.83 kB / 0.8042 GB, free: 41.95 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=141): time 4.628e-06/1.075, allocations: 4 kB / 0.8042 GB, free: 41.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=155): time 0.02705/1.102, allocations: 15.35 MB / 0.8192 GB, free: 32.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/1.102, allocations: 226.1 kB / 0.8194 GB, free: 32.03 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004895/1.107, allocations: 4 MB / 0.8233 GB, free: 28.51 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001758/1.107, allocations: 29.7 kB / 0.8233 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001366/1.108, allocations: 3.571 MB / 0.8268 GB, free: 25.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004789/1.109, allocations: 0.6128 MB / 0.8274 GB, free: 24.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/1.109, allocations: 0 / 0.8274 GB, free: 24.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002546/1.109, allocations: 0.5989 MB / 0.828 GB, free: 24.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/1.111, allocations: 1.921 MB / 0.8299 GB, free: 22.49 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003348/1.115, allocations: 6.307 MB / 0.836 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003591/1.118, allocations: 3.499 MB / 0.8394 GB, free: 11.29 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-05/1.118, allocations: 48 kB / 0.8395 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=887) (initialization): time 0.01009/1.128, allocations: 7.521 MB / 0.8468 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/1.128, allocations: 7.906 kB / 0.8468 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/1.128, allocations: 160 kB / 0.847 GB, free: 4.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/1.13, allocations: 0.6031 MB / 0.8476 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003972/1.134, allocations: 1.531 MB / 0.8491 GB, free: 2.605 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/1.139, allocations: 5.414 MB / 0.8544 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00461/1.143, allocations: 202.1 kB / 0.8545 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008332/1.144, allocations: 431.5 kB / 0.855 GB, free: 12.86 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 49 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (835): * Single equations (assignments): 830 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007901/1.145, allocations: 0.4902 MB / 0.8554 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006394/1.146, allocations: 398.8 kB / 0.8558 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004036/1.15, allocations: 2.293 MB / 0.8581 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.382e-05/1.15, allocations: 12 kB / 0.8581 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.15, allocations: 12.75 kB / 0.8581 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-05/1.15, allocations: 6.047 kB / 0.8581 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/1.162, allocations: 6.113 MB / 0.8641 GB, free: 5.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/1.162, allocations: 0 / 0.8641 GB, free: 5.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/1.163, allocations: 209.1 kB / 0.8643 GB, free: 4.895 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/1.164, allocations: 363.8 kB / 0.8646 GB, free: 4.617 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/1.165, allocations: 4.891 kB / 0.8646 GB, free: 4.613 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005245/1.17, allocations: 4.757 MB / 0.8693 GB, free: 20 kB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.17, allocations: 4.359 kB / 0.8693 GB, free: 20 kB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006033/1.176, allocations: 4.621 MB / 0.8738 GB, free: 11.57 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009597/1.177, allocations: 431.8 kB / 0.8742 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004754/1.177, allocations: 7.906 kB / 0.8742 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/1.179, allocations: 31.95 kB / 0.8742 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/1.179, allocations: 72.39 kB / 0.8743 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/1.179, allocations: 44 kB / 0.8743 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003926/1.183, allocations: 2.704 MB / 0.877 GB, free: 8.277 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004955/1.188, allocations: 0.9453 MB / 0.8779 GB, free: 7.332 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 108 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003657/1.188, allocations: 147 kB / 0.878 GB, free: 7.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006532/1.195, allocations: 4.715 MB / 0.8826 GB, free: 2.484 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.195, allocations: 0 / 0.8826 GB, free: 2.484 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001734/1.196, allocations: 1.334 MB / 0.8839 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/1.199, allocations: 481.7 kB / 0.8844 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01625/1.215, allocations: 8.642 MB / 0.8928 GB, free: 7.965 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005839/1.221, allocations: 4.262 MB / 0.897 GB, free: 3.695 MB / 0.5417 GB Notification: Performance of SimCode: time 9.52e-07/1.221, allocations: 0 / 0.897 GB, free: 3.695 MB / 0.5417 GB Notification: Performance of Templates: time 0.2221/1.443, allocations: 37.34 MB / 0.9335 GB, free: 190.4 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches