Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [: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.001196/0.001196, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009794/0.0009795, allocations: 90.88 kB / 286.3 MB, free: 12.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.266e-06/8.456e-06, allocations: 0 / 343.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2996, allocations: 51.46 MB / 394.6 MB, free: 33.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1302/0.4298, allocations: 101.1 MB / 495.7 MB, free: 11.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/0.4302, allocations: 88.47 kB / 495.8 MB, free: 11.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4232/0.8534, allocations: 74.7 MB / 0.5571 GB, free: 49.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001446/0.8536, allocations: 71.98 kB / 0.5572 GB, free: 49.47 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.01092/0.8645, allocations: 3.492 MB / 0.5606 GB, free: 45.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.8646, allocations: 8.031 kB / 0.5606 GB, free: 45.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00933/0.8739, allocations: 1.867 MB / 0.5624 GB, free: 44.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009225/0.8832, allocations: 3.277 MB / 0.5656 GB, free: 40.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.8834, allocations: 124 kB / 0.5658 GB, free: 40.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001422/0.8848, allocations: 219.8 kB / 0.566 GB, free: 40.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01142/0.8963, allocations: 5.769 MB / 0.5716 GB, free: 34.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.9121, allocations: 8.732 MB / 0.5801 GB, free: 24.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002085/0.9123, allocations: 55.45 kB / 0.5802 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.9134, allocations: 28 kB / 0.5802 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001514/0.915, allocations: 1.056 MB / 0.5812 GB, free: 23.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05583/0.9708, allocations: 44.49 MB / 0.6247 GB, free: 9.844 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004645/0.9755, allocations: 2.752 MB / 0.6274 GB, free: 6.949 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002869/0.9785, allocations: 1.842 MB / 0.6292 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01258/0.9911, allocations: 6.011 MB / 0.635 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.411e-05/0.9912, allocations: 55.34 kB / 0.6351 GB, free: 14.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=151): time 5.731e-06/0.9912, allocations: 0 / 0.6351 GB, free: 14.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=166): time 0.03696/1.028, allocations: 14.06 MB / 0.6488 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.028, allocations: 149.5 kB / 0.649 GB, free: 412 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004529/1.033, allocations: 2.641 MB / 0.6516 GB, free: 13.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003822/1.033, allocations: 25.7 kB / 0.6516 GB, free: 13.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001907/1.035, allocations: 2.651 MB / 0.6542 GB, free: 11.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009828/1.036, allocations: 0.6324 MB / 0.6548 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/1.036, allocations: 0 / 0.6548 GB, free: 10.38 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003654/1.037, allocations: 0.5419 MB / 0.6553 GB, free: 9.828 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/1.04, allocations: 1.854 MB / 0.6571 GB, free: 7.969 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004945/1.044, allocations: 5.348 MB / 0.6623 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2282/1.273, allocations: 3.129 MB / 0.6654 GB, free: 142.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.906e-05/1.273, allocations: 35.5 kB / 0.6654 GB, free: 142.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.01354/1.286, allocations: 7.336 MB / 0.6726 GB, free: 142.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.301e-05/1.286, allocations: 6.766 kB / 0.6726 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/1.287, allocations: 125.9 kB / 0.6727 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004028/1.291, allocations: 1.21 MB / 0.6739 GB, free: 142.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004178/1.295, allocations: 1.304 MB / 0.6752 GB, free: 142.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007836/1.303, allocations: 5.71 MB / 0.6808 GB, free: 141.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0049/1.308, allocations: 207.2 kB / 0.681 GB, free: 141.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006789/1.308, allocations: 354.7 kB / 0.6813 GB, free: 141.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (703): * Single equations (assignments): 699 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007354/1.309, allocations: 415.3 kB / 0.6817 GB, free: 140.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004207/1.309, allocations: 275.8 kB / 0.682 GB, free: 140.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006388/1.316, allocations: 3.143 MB / 0.685 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.219e-05/1.316, allocations: 21.05 kB / 0.685 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/1.316, allocations: 7.5 kB / 0.685 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/1.316, allocations: 5.438 kB / 0.6851 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01296/1.329, allocations: 6.709 MB / 0.6916 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/1.329, allocations: 2.812 kB / 0.6916 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/1.33, allocations: 229.8 kB / 0.6918 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003727/1.334, allocations: 1.015 MB / 0.6928 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/1.334, allocations: 18.08 kB / 0.6928 GB, free: 140.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007785/1.342, allocations: 5.374 MB / 0.6981 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/1.342, allocations: 1.938 kB / 0.6981 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01009/1.352, allocations: 5.579 MB / 0.7035 GB, free: 138.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/1.353, allocations: 325.7 kB / 0.7038 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/1.354, allocations: 7.125 kB / 0.7038 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.355, allocations: 52.8 kB / 0.7039 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/1.355, allocations: 77.98 kB / 0.704 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002243/1.356, allocations: 40.03 kB / 0.704 GB, free: 138.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002968/1.359, allocations: 1.74 MB / 0.7057 GB, free: 138.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005537/1.364, allocations: 0.7862 MB / 0.7065 GB, free: 138.1 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,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005269/1.365, allocations: 164.8 kB / 0.7066 GB, free: 138 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00868/1.373, allocations: 4.51 MB / 0.711 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.373, allocations: 1.062 kB / 0.711 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/1.376, allocations: 1.452 MB / 0.7125 GB, free: 136.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/1.378, allocations: 248.8 kB / 0.7127 GB, free: 136.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/1.395, allocations: 6.626 MB / 0.7192 GB, free: 134.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003894/1.398, allocations: 3.163 MB / 0.7223 GB, free: 133 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/1.399, allocations: 0 / 0.7223 GB, free: 133 MB / 442.7 MB Notification: Performance of Templates: time 0.06653/1.465, allocations: 32.7 MB / 0.7542 GB, free: 111 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches