Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.00134/0.00134, allocations: 188.1 kB / 8.533 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008553/0.0008553, allocations: 93.77 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.194e-06/7.264e-06, allocations: 8 kB / 343.1 MB, free: 8.754 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.116, allocations: 51.49 MB / 394.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3621/0.4782, allocations: 99.12 MB / 493.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.4785, allocations: 79.33 kB / 493.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2141/0.6926, allocations: 79.85 MB / 0.5602 GB, free: 15.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003614/0.6931, allocations: 87.94 kB / 0.5603 GB, free: 15.31 MB / 442.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.0189/0.712, allocations: 4.308 MB / 0.5645 GB, free: 10.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.712, allocations: 12.03 kB / 0.5645 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.7221, allocations: 1.82 MB / 0.5663 GB, free: 9.105 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01178/0.7339, allocations: 3.739 MB / 0.57 GB, free: 5.305 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/0.7343, allocations: 136 kB / 0.5701 GB, free: 5.172 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002692/0.737, allocations: 235.9 kB / 0.5703 GB, free: 4.941 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1789/0.9159, allocations: 6.205 MB / 0.5764 GB, free: 129.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.9299, allocations: 9.433 MB / 0.5856 GB, free: 127.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001665/0.9301, allocations: 61.59 kB / 0.5856 GB, free: 127.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004783/0.9306, allocations: 28.44 kB / 0.5857 GB, free: 127.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001091/0.9317, allocations: 0.9952 MB / 0.5866 GB, free: 127.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04192/0.9736, allocations: 46.21 MB / 0.6318 GB, free: 98.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003264/0.9769, allocations: 3.128 MB / 0.6348 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.9786, allocations: 1.749 MB / 0.6365 GB, free: 96.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006941/0.9856, allocations: 5.5 MB / 0.6419 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.9856, allocations: 53.06 kB / 0.6419 GB, free: 92.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 3.777e-06/0.9857, allocations: 0 / 0.6419 GB, free: 92.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.01729/1.003, allocations: 10.39 MB / 0.6521 GB, free: 88.44 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/1.003, allocations: 152 kB / 0.6522 GB, free: 88.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/1.007, allocations: 3.11 MB / 0.6553 GB, free: 87.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001754/1.008, allocations: 25.7 kB / 0.6553 GB, free: 87.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/1.009, allocations: 2.93 MB / 0.6582 GB, free: 84.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000465/1.009, allocations: 0.5035 MB / 0.6587 GB, free: 84.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/1.01, allocations: 0 / 0.6587 GB, free: 84.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002607/1.01, allocations: 0.5549 MB / 0.6592 GB, free: 84.09 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/1.012, allocations: 1.753 MB / 0.6609 GB, free: 83.51 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003781/1.016, allocations: 5.564 MB / 0.6663 GB, free: 77.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004959/1.021, allocations: 3.127 MB / 0.6694 GB, free: 76.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001596/1.021, allocations: 39.53 kB / 0.6694 GB, free: 76.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01519/1.036, allocations: 6.979 MB / 0.6763 GB, free: 74.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/1.036, allocations: 10.16 kB / 0.6763 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/1.036, allocations: 136.2 kB / 0.6764 GB, free: 74.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002349/1.039, allocations: 0.8563 MB / 0.6772 GB, free: 74.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005069/1.044, allocations: 1.345 MB / 0.6785 GB, free: 73.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005553/1.049, allocations: 4.479 MB / 0.6829 GB, free: 71.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005338/1.055, allocations: 191.4 kB / 0.6831 GB, free: 71.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001293/1.056, allocations: 375.2 kB / 0.6835 GB, free: 71.53 MB / 442.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.0009642/1.057, allocations: 446.3 kB / 0.6839 GB, free: 71.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006766/1.058, allocations: 299.6 kB / 0.6842 GB, free: 71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/1.062, allocations: 2.337 MB / 0.6864 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-05/1.062, allocations: 9.969 kB / 0.6865 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/1.062, allocations: 3.156 kB / 0.6865 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/1.062, allocations: 14.59 kB / 0.6865 GB, free: 70.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/1.073, allocations: 5.489 MB / 0.6918 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/1.073, allocations: 0 / 0.6918 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.074, allocations: 190 kB / 0.692 GB, free: 68.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001984/1.076, allocations: 0.6339 MB / 0.6926 GB, free: 68.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/1.077, allocations: 9.281 kB / 0.6926 GB, free: 68.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004602/1.081, allocations: 4.122 MB / 0.6967 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.081, allocations: 3.188 kB / 0.6967 GB, free: 65.94 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006417/1.088, allocations: 4.489 MB / 0.7011 GB, free: 64.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/1.089, allocations: 342.3 kB / 0.7014 GB, free: 63.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/1.089, allocations: 11.8 kB / 0.7014 GB, free: 63.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/1.09, allocations: 40.23 kB / 0.7014 GB, free: 63.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/1.09, allocations: 57.2 kB / 0.7015 GB, free: 63.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/1.091, allocations: 38.62 kB / 0.7015 GB, free: 63.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003849/1.094, allocations: 2.078 MB / 0.7036 GB, free: 62.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006006/1.1, allocations: 0.7778 MB / 0.7043 GB, free: 61.85 MB / 442.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.0004968/1.101, allocations: 148.5 kB / 0.7045 GB, free: 61.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006779/1.108, allocations: 4.165 MB / 0.7085 GB, free: 57.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/1.108, allocations: 4.062 kB / 0.7085 GB, free: 57.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/1.109, allocations: 1.14 MB / 0.7096 GB, free: 56.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/1.111, allocations: 316.9 kB / 0.7099 GB, free: 56.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/1.126, allocations: 6.738 MB / 0.7165 GB, free: 50.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004657/1.131, allocations: 3.429 MB / 0.7199 GB, free: 47.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.733e-06/1.131, allocations: 0 / 0.7199 GB, free: 47.95 MB / 442.7 MB Notification: Performance of Templates: time 0.06199/1.193, allocations: 30.56 MB / 0.7497 GB, free: 25.51 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches