Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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.Torque,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.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,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.Torque") [: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.001032/0.001032, allocations: 178.7 kB / 8.519 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.17/1.17, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.0008914/0.0008914, allocations: 87.28 kB / 281.2 MB, free: 5.449 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.1601/0.1601, allocations: 44.15 MB / 376.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.881e-06, allocations: 224 / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.09789, allocations: 61.91 MB / 0.4941 GB, free: 1.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2728/0.3707, allocations: 108.2 MB / 0.5997 GB, free: 4.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.371, allocations: 76.8 kB / 0.5998 GB, free: 4.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4657/0.8367, allocations: 121.7 MB / 0.7187 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002735/0.837, allocations: 128.1 kB / 0.7188 GB, free: 103.7 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.01725/0.8543, allocations: 6.314 MB / 0.725 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.8544, allocations: 10.44 kB / 0.725 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0265/0.8809, allocations: 6.696 MB / 0.7315 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01712/0.898, allocations: 7.02 MB / 0.7384 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003364/0.8984, allocations: 205.1 kB / 0.7386 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002966/0.9014, allocations: 372.1 kB / 0.7389 GB, free: 100 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01457/0.916, allocations: 8.869 MB / 0.7476 GB, free: 99.97 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02222/0.9382, allocations: 13.75 MB / 0.761 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002554/0.9385, allocations: 94.41 kB / 0.7611 GB, free: 93.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008419/0.9394, allocations: 42.28 kB / 0.7611 GB, free: 93.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001688/0.9411, allocations: 1.522 MB / 0.7626 GB, free: 93.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06179/1.003, allocations: 68.15 MB / 0.8292 GB, free: 39.04 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005327/1.008, allocations: 5.188 MB / 0.8342 GB, free: 34.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003676/1.012, allocations: 3.52 MB / 0.8377 GB, free: 30.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.027, allocations: 9.325 MB / 0.8468 GB, free: 22.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/1.028, allocations: 65.06 kB / 0.8468 GB, free: 22.84 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=221): time 5.38e-06/1.028, allocations: 0 / 0.8468 GB, free: 22.84 MB / 0.4948 GB Notification: Performance of matching and sorting (n=263): time 0.04526/1.073, allocations: 23.99 MB / 0.8703 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001393/1.073, allocations: 231.6 kB / 0.8705 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007175/1.08, allocations: 4.673 MB / 0.8751 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006371/1.081, allocations: 29.7 kB / 0.8751 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003084/1.084, allocations: 4.233 MB / 0.8792 GB, free: 6.441 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001532/1.085, allocations: 0.9871 MB / 0.8802 GB, free: 5.441 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004554/1.086, allocations: 3.938 kB / 0.8802 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005055/1.086, allocations: 0.6814 MB / 0.8809 GB, free: 4.746 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004681/1.091, allocations: 3.152 MB / 0.8839 GB, free: 1.586 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008627/1.1, allocations: 8.31 MB / 0.892 GB, free: 6.676 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008513/1.108, allocations: 5.089 MB / 0.897 GB, free: 1.586 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001366/1.109, allocations: 52 kB / 0.8971 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1127) (initialization): time 0.1687/1.277, allocations: 11.57 MB / 0.9084 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/1.277, allocations: 3.656 kB / 0.9084 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/1.277, allocations: 188.2 kB / 0.9085 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003723/1.281, allocations: 1.619 MB / 0.9101 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006341/1.288, allocations: 1.982 MB / 0.9121 GB, free: 175.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/1.3, allocations: 10.39 MB / 0.9222 GB, free: 173.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006454/1.306, allocations: 284.6 kB / 0.9225 GB, free: 173.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001379/1.307, allocations: 0.5209 MB / 0.923 GB, free: 173.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1055): * Single equations (assignments): 1050 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001209/1.309, allocations: 0.5658 MB / 0.9235 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000833/1.309, allocations: 487.5 kB / 0.924 GB, free: 172.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00884/1.318, allocations: 5.715 MB / 0.9296 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.181e-05/1.318, allocations: 28.72 kB / 0.9296 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/1.318, allocations: 9.859 kB / 0.9296 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/1.318, allocations: 16.83 kB / 0.9296 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02023/1.339, allocations: 12.04 MB / 0.9414 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.948e-05/1.339, allocations: 5.5 kB / 0.9414 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002398/1.341, allocations: 413 kB / 0.9418 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/1.345, allocations: 1.309 MB / 0.9431 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004929/1.345, allocations: 9.781 kB / 0.9431 GB, free: 171.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0118/1.357, allocations: 9.617 MB / 0.9525 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/1.357, allocations: 5.844 kB / 0.9525 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01285/1.37, allocations: 9.645 MB / 0.9619 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.371, allocations: 0.5063 MB / 0.9624 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008665/1.372, allocations: 3.609 kB / 0.9624 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002089/1.374, allocations: 86.2 kB / 0.9625 GB, free: 162.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003123/1.375, allocations: 119.8 kB / 0.9626 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/1.375, allocations: 72.86 kB / 0.9627 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004605/1.38, allocations: 3.147 MB / 0.9657 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01007/1.39, allocations: 1.306 MB / 0.967 GB, free: 161.3 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,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (205): * Single equations (assignments): 200 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009368/1.391, allocations: 157.2 kB / 0.9672 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01394/1.405, allocations: 7.822 MB / 0.9748 GB, free: 158.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/1.405, allocations: 6.953 kB / 0.9748 GB, free: 158.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004283/1.409, allocations: 2.876 MB / 0.9776 GB, free: 155.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002739/1.412, allocations: 0.5195 MB / 0.9781 GB, free: 155.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.434, allocations: 12.09 MB / 0.9899 GB, free: 144.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007832/1.441, allocations: 5.125 MB / 0.9949 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/1.441, allocations: 0 / 0.9949 GB, free: 140.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.09496/1.536, allocations: 57.45 MB / 1.051 GB, free: 92.82 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches