Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2") translateModel(ModelicaTest.MultiBody.Forces.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2") [: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.0009791/0.0009793, allocations: 175.6 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.221/1.221, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.000878/0.000878, allocations: 90.09 kB / 281.2 MB, free: 5.445 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.1826/0.1826, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.973e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3139/0.4197, allocations: 106.2 MB / 0.5978 GB, free: 6.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.42, allocations: 75.97 kB / 0.5979 GB, free: 6.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.5959/1.016, allocations: 151 MB / 0.7453 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004242/1.016, allocations: 156.7 kB / 0.7454 GB, free: 101.4 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: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.01818/1.035, allocations: 7.556 MB / 0.7528 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/1.035, allocations: 7.562 kB / 0.7528 GB, free: 98.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04218/1.077, allocations: 11.5 MB / 0.7641 GB, free: 97.83 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02492/1.102, allocations: 10.07 MB / 0.7739 GB, free: 94.56 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005651/1.102, allocations: 251.3 kB / 0.7741 GB, free: 94.55 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003211/1.106, allocations: 472.7 kB / 0.7746 GB, free: 94.54 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02259/1.128, allocations: 10.52 MB / 0.7849 GB, free: 90.88 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02957/1.158, allocations: 15.84 MB / 0.8003 GB, free: 73.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003576/1.158, allocations: 114.8 kB / 0.8004 GB, free: 73.55 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001846/1.16, allocations: 43.94 kB / 0.8005 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001796/1.162, allocations: 1.696 MB / 0.8021 GB, free: 71.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07165/1.234, allocations: 74.8 MB / 0.8752 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007147/1.241, allocations: 5.601 MB / 0.8806 GB, free: 5.793 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004689/1.245, allocations: 3.91 MB / 0.8845 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01947/1.265, allocations: 12.37 MB / 0.8965 GB, free: 5.07 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/1.265, allocations: 63.94 kB / 0.8966 GB, free: 5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=225): time 5.059e-06/1.265, allocations: 0 / 0.8966 GB, free: 5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=253): time 0.2014/1.466, allocations: 27.73 MB / 0.9237 GB, free: 174.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.832e-05/1.467, allocations: 292.2 kB / 0.924 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006233/1.473, allocations: 5.224 MB / 0.9291 GB, free: 173.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002977/1.473, allocations: 25.7 kB / 0.9291 GB, free: 173.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001969/1.475, allocations: 4.807 MB / 0.9338 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008938/1.476, allocations: 0.9533 MB / 0.9347 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/1.476, allocations: 0 / 0.9347 GB, free: 170.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003341/1.477, allocations: 0.6729 MB / 0.9354 GB, free: 169.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003302/1.48, allocations: 2.78 MB / 0.9381 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005349/1.485, allocations: 8.107 MB / 0.946 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006141/1.491, allocations: 4.724 MB / 0.9506 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/1.492, allocations: 55.91 kB / 0.9507 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1132) (initialization): time 0.01936/1.511, allocations: 10.41 MB / 0.9608 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.511, allocations: 11.72 kB / 0.9608 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002084/1.511, allocations: 188.2 kB / 0.961 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/1.514, allocations: 1.031 MB / 0.962 GB, free: 159 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006407/1.52, allocations: 1.966 MB / 0.964 GB, free: 158.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00956/1.53, allocations: 10.62 MB / 0.9743 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007178/1.537, allocations: 265.5 kB / 0.9746 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002058/1.539, allocations: 0.5295 MB / 0.9751 GB, free: 151.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 871 * Number of states: 0 () * Number of discrete variables: 74 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1052): * Single equations (assignments): 1045 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001938/1.541, allocations: 0.5847 MB / 0.9757 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.542, allocations: 0.5387 MB / 0.9762 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007175/1.55, allocations: 4.393 MB / 0.9805 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.689e-05/1.55, allocations: 23.44 kB / 0.9805 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/1.55, allocations: 11.44 kB / 0.9805 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/1.55, allocations: 13.08 kB / 0.9805 GB, free: 149.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02382/1.574, allocations: 10.73 MB / 0.991 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-05/1.574, allocations: 2.438 kB / 0.991 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/1.576, allocations: 382 kB / 0.9914 GB, free: 145.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/1.578, allocations: 0.6969 MB / 0.9921 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/1.578, allocations: 7.234 kB / 0.9921 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008741/1.587, allocations: 9.503 MB / 1.001 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.587, allocations: 7.844 kB / 1.001 GB, free: 135.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01107/1.598, allocations: 7.722 MB / 1.009 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/1.601, allocations: 0.5589 MB / 1.009 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001553/1.602, allocations: 6.938 kB / 1.009 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002616/1.605, allocations: 88.73 kB / 1.01 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000311/1.605, allocations: 109.6 kB / 1.01 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/1.605, allocations: 70 kB / 1.01 GB, free: 128.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004836/1.61, allocations: 3.563 MB / 1.013 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007604/1.618, allocations: 1.403 MB / 1.015 GB, free: 123.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 186 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.0004512/1.618, allocations: 158.2 kB / 1.015 GB, free: 123.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009311/1.628, allocations: 7.02 MB / 1.022 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.628, allocations: 0 / 1.022 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002715/1.63, allocations: 2.415 MB / 1.024 GB, free: 114.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/1.634, allocations: 0.7285 MB / 1.025 GB, free: 114.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/1.659, allocations: 13.08 MB / 1.037 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008349/1.667, allocations: 5.968 MB / 1.043 GB, free: 98.17 MB / 0.5261 GB Notification: Performance of SimCode: time 7.81e-07/1.667, allocations: 0 / 1.043 GB, free: 98.17 MB / 0.5261 GB Notification: Performance of Templates: time 0.1012/1.769, allocations: 57.64 MB / 1.1 GB, free: 48.5 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches