Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") [: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 3.2.3+maint.om/package.mo): time 0.001479/0.001479, allocations: 183.4 kB / 7.803 MB, free: 132 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.014/1.014, allocations: 205.2 MB / 213.4 MB, free: 2.156 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007591/0.0007591, allocations: 92.62 kB / 261.4 MB, free: 1.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1496/0.1496, allocations: 43.5 MB / 352.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 4.599e-06/4.629e-06, allocations: 224 / 417.7 MB, free: 62.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07878/0.0788, allocations: 58.85 MB / 476.6 MB, free: 3.902 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2622/0.3411, allocations: 109.7 MB / 0.5725 GB, free: 9.66 MB / 398.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001648/0.3413, allocations: 71.09 kB / 0.5726 GB, free: 9.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 0.2033/0.5445, allocations: 88.36 MB / 0.6589 GB, free: 8.84 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0001475/0.5447, allocations: 88 kB / 0.659 GB, free: 8.754 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01106/0.5558, allocations: 4.133 MB / 0.663 GB, free: 4.555 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/0.5559, allocations: 12.02 kB / 0.663 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/0.5727, allocations: 4.077 MB / 0.667 GB, free: 464 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/0.5841, allocations: 4.785 MB / 0.6717 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.5843, allocations: 148 kB / 0.6718 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009043/0.5852, allocations: 275.9 kB / 0.6721 GB, free: 11.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009076/0.5943, allocations: 6.496 MB / 0.6784 GB, free: 4.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1457/0.74, allocations: 9.9 MB / 0.6881 GB, free: 164.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.7402, allocations: 57.06 kB / 0.6882 GB, free: 164.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004559/0.7406, allocations: 32.31 kB / 0.6882 GB, free: 164.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009235/0.7415, allocations: 1.061 MB / 0.6892 GB, free: 164.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03405/0.7756, allocations: 45.53 MB / 0.7337 GB, free: 136.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.7782, allocations: 2.671 MB / 0.7363 GB, free: 136.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.7797, allocations: 1.688 MB / 0.7379 GB, free: 136.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006402/0.7861, allocations: 5.469 MB / 0.7433 GB, free: 134.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.7862, allocations: 50.06 kB / 0.7433 GB, free: 134.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=170): time 3.597e-06/0.7862, allocations: 3.375 kB / 0.7433 GB, free: 134.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.0179/0.8041, allocations: 12.12 MB / 0.7552 GB, free: 128.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.8042, allocations: 202.2 kB / 0.7554 GB, free: 128.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003252/0.8074, allocations: 3.026 MB / 0.7583 GB, free: 127.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.8075, allocations: 29.36 kB / 0.7583 GB, free: 127.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.8086, allocations: 3.115 MB / 0.7614 GB, free: 125.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.809, allocations: 0.7007 MB / 0.7621 GB, free: 124.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.8092, allocations: 0 / 0.7621 GB, free: 124.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.8095, allocations: 0.565 MB / 0.7626 GB, free: 124.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/0.8116, allocations: 1.981 MB / 0.7646 GB, free: 123.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003291/0.8149, allocations: 5.833 MB / 0.7703 GB, free: 117.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003232/0.8181, allocations: 3.389 MB / 0.7736 GB, free: 116.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.554e-05/0.8182, allocations: 42.91 kB / 0.7736 GB, free: 116.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.008053/0.8262, allocations: 7.071 MB / 0.7805 GB, free: 114.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.8262, allocations: 3.812 kB / 0.7805 GB, free: 114.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.219e-05/0.8263, allocations: 138.3 kB / 0.7806 GB, free: 114.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006397/0.827, allocations: 396.7 kB / 0.781 GB, free: 114.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/0.8312, allocations: 1.472 MB / 0.7825 GB, free: 113.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.8339, allocations: 2.845 MB / 0.7852 GB, free: 112 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003732/0.8376, allocations: 227.7 kB / 0.7855 GB, free: 112 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005442/0.8382, allocations: 387.7 kB / 0.7858 GB, free: 111.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (777): * Single equations (assignments): 773 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006018/0.8388, allocations: 445.7 kB / 0.7863 GB, free: 111.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004304/0.8392, allocations: 317.4 kB / 0.7866 GB, free: 111.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003714/0.8429, allocations: 2.573 MB / 0.7891 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.638e-05/0.843, allocations: 19.47 kB / 0.7891 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.843, allocations: 4 kB / 0.7891 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.843, allocations: 6.844 kB / 0.7891 GB, free: 110.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009242/0.8523, allocations: 6.277 MB / 0.7952 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.8523, allocations: 7.781 kB / 0.7952 GB, free: 105.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.8538, allocations: 329.7 kB / 0.7955 GB, free: 105.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004764/0.8543, allocations: 180.1 kB / 0.7957 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.8545, allocations: 22.7 kB / 0.7957 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/0.8565, allocations: 2.409 MB / 0.7981 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.8565, allocations: 0 / 0.7981 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004941/0.8615, allocations: 5.093 MB / 0.8031 GB, free: 98.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009879/0.8625, allocations: 0.5959 MB / 0.8036 GB, free: 97.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004723/0.863, allocations: 0 / 0.8036 GB, free: 97.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.8643, allocations: 76.91 kB / 0.8037 GB, free: 97.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/0.8646, allocations: 105.2 kB / 0.8038 GB, free: 97.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.8647, allocations: 53.25 kB / 0.8039 GB, free: 97.32 MB / 494.1 MB Notification: Performance of sort global known variables: time 0.002438/0.8671, allocations: 2.021 MB / 0.8058 GB, free: 95.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004443/0.8716, allocations: 0.845 MB / 0.8067 GB, free: 94.73 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 154 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000411/0.872, allocations: 139.5 kB / 0.8068 GB, free: 94.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006484/0.8785, allocations: 4.744 MB / 0.8114 GB, free: 90.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8785, allocations: 224 / 0.8114 GB, free: 90.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.8804, allocations: 1.485 MB / 0.8129 GB, free: 88.96 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.8822, allocations: 309.7 kB / 0.8132 GB, free: 88.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.8956, allocations: 7.711 MB / 0.8207 GB, free: 81.78 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003874/0.8995, allocations: 3.838 MB / 0.8245 GB, free: 78.81 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.8995, allocations: 0 / 0.8245 GB, free: 78.81 MB / 494.1 MB Notification: Performance of Templates: time 0.0563/0.9558, allocations: 34.02 MB / 0.8577 GB, free: 48.56 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches