Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [: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.001444/0.001444, allocations: 180.5 kB / 8.131 MB, free: 2.168 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.219/1.219, allocations: 221.4 MB / 229.9 MB, free: 3.309 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.0009591/0.0009591, allocations: 100.1 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.127e-06/9.178e-06, allocations: 0 / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.241, allocations: 50.4 MB / 386.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3555, allocations: 98.47 MB / 485.4 MB, free: 4.285 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.3558, allocations: 89.12 kB / 485.5 MB, free: 4.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3419/0.6976, allocations: 79.17 MB / 0.5514 GB, free: 57.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002474/0.6979, allocations: 76 kB / 0.5515 GB, free: 57.62 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01666/0.7146, allocations: 4.273 MB / 0.5556 GB, free: 53.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.7147, allocations: 8.031 kB / 0.5557 GB, free: 53.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009123/0.7238, allocations: 1.788 MB / 0.5574 GB, free: 51.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.7345, allocations: 4.275 MB / 0.5616 GB, free: 47.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.7347, allocations: 128 kB / 0.5617 GB, free: 47.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001844/0.7366, allocations: 239.9 kB / 0.5619 GB, free: 46.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01024/0.7469, allocations: 6.204 MB / 0.568 GB, free: 40.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01532/0.7622, allocations: 9.436 MB / 0.5772 GB, free: 30.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002185/0.7625, allocations: 63.41 kB / 0.5773 GB, free: 30.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/0.7638, allocations: 28 kB / 0.5773 GB, free: 30 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001277/0.765, allocations: 0.9897 MB / 0.5783 GB, free: 29.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05141/0.8165, allocations: 46.21 MB / 0.6234 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.8208, allocations: 3.142 MB / 0.6265 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002356/0.8232, allocations: 1.746 MB / 0.6282 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009628/0.8329, allocations: 5.506 MB / 0.6335 GB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.8329, allocations: 51.12 kB / 0.6336 GB, free: 2.492 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 5.55e-06/0.8329, allocations: 0 / 0.6336 GB, free: 2.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.02078/0.8537, allocations: 10.39 MB / 0.6437 GB, free: 7.996 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.8538, allocations: 145.2 kB / 0.6439 GB, free: 7.824 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004641/0.8585, allocations: 3.107 MB / 0.6469 GB, free: 4.723 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.8586, allocations: 25.7 kB / 0.6469 GB, free: 4.691 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.8606, allocations: 2.929 MB / 0.6498 GB, free: 1.715 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005804/0.8612, allocations: 0.5094 MB / 0.6503 GB, free: 1.199 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.8614, allocations: 4 kB / 0.6503 GB, free: 1.195 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003655/0.8618, allocations: 0.5499 MB / 0.6508 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1265/0.9883, allocations: 1.757 MB / 0.6525 GB, free: 136.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00369/0.992, allocations: 5.56 MB / 0.658 GB, free: 131.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/0.9957, allocations: 3.119 MB / 0.661 GB, free: 131.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-05/0.9958, allocations: 38.91 kB / 0.6611 GB, free: 131.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01175/1.008, allocations: 6.983 MB / 0.6679 GB, free: 131.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/1.008, allocations: 3.75 kB / 0.6679 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002095/1.008, allocations: 138.9 kB / 0.668 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/1.011, allocations: 0.8602 MB / 0.6689 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004835/1.015, allocations: 1.345 MB / 0.6702 GB, free: 130.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/1.021, allocations: 4.475 MB / 0.6745 GB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004531/1.025, allocations: 186.9 kB / 0.6747 GB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009098/1.026, allocations: 375.2 kB / 0.6751 GB, free: 129.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 715 * 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 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008155/1.027, allocations: 449.5 kB / 0.6755 GB, free: 129.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/1.027, allocations: 302.9 kB / 0.6758 GB, free: 129.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004191/1.032, allocations: 2.339 MB / 0.6781 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.658e-05/1.032, allocations: 14.5 kB / 0.6781 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/1.032, allocations: 7.531 kB / 0.6781 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/1.032, allocations: 3.188 kB / 0.6781 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/1.042, allocations: 5.492 MB / 0.6835 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/1.042, allocations: 3.562 kB / 0.6835 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/1.043, allocations: 185.5 kB / 0.6836 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/1.045, allocations: 0.6351 MB / 0.6843 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/1.045, allocations: 8.078 kB / 0.6843 GB, free: 128.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004509/1.05, allocations: 4.119 MB / 0.6883 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.05, allocations: 4.516 kB / 0.6883 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006059/1.056, allocations: 4.488 MB / 0.6927 GB, free: 127.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009258/1.057, allocations: 351 kB / 0.693 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004152/1.057, allocations: 4.469 kB / 0.693 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/1.058, allocations: 37.05 kB / 0.6931 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/1.059, allocations: 65.02 kB / 0.6931 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/1.059, allocations: 34.52 kB / 0.6931 GB, free: 126.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003226/1.062, allocations: 2.073 MB / 0.6952 GB, free: 126.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005044/1.067, allocations: 0.773 MB / 0.6959 GB, free: 126.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 89 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004252/1.068, allocations: 154.7 kB / 0.6961 GB, free: 126.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00668/1.074, allocations: 4.16 MB / 0.7001 GB, free: 125.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.074, allocations: 1 kB / 0.7001 GB, free: 125.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/1.076, allocations: 1.139 MB / 0.7013 GB, free: 125.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/1.078, allocations: 308.1 kB / 0.7015 GB, free: 125 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/1.094, allocations: 6.748 MB / 0.7081 GB, free: 122.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004073/1.098, allocations: 3.427 MB / 0.7115 GB, free: 121.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.362e-06/1.098, allocations: 0 / 0.7115 GB, free: 121.3 MB / 426.7 MB Notification: Performance of Templates: time 0.05973/1.158, allocations: 30.56 MB / 0.7413 GB, free: 101.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches