Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [: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.001135/0.001136, allocations: 196.1 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 225.5 MB / 234.4 MB, free: 3.336 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008804/0.0008804, allocations: 90.7 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.025e-06/8.045e-06, allocations: 4 kB / 343.1 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08648, allocations: 51.47 MB / 394.6 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2403/0.3268, allocations: 93.35 MB / 488 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.3271, allocations: 86.7 kB / 488 MB, free: 15.87 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.1512/0.4783, allocations: 57.67 MB / 0.5329 GB, free: 11.34 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.844e-05/0.4784, allocations: 47.98 kB / 0.533 GB, free: 11.29 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.009657/0.4881, allocations: 2.934 MB / 0.5358 GB, free: 8.305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.4881, allocations: 8.031 kB / 0.5358 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008138/0.4963, allocations: 1.681 MB / 0.5375 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008619/0.5049, allocations: 2.974 MB / 0.5404 GB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.5051, allocations: 80 kB / 0.5405 GB, free: 3.512 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.5061, allocations: 155.8 kB / 0.5406 GB, free: 3.359 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006994/0.5131, allocations: 4.218 MB / 0.5447 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008196/0.5213, allocations: 6.401 MB / 0.551 GB, free: 8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.344e-05/0.5215, allocations: 39.69 kB / 0.551 GB, free: 7.961 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003086/0.5218, allocations: 27.91 kB / 0.551 GB, free: 7.934 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009716/0.5227, allocations: 0.7615 MB / 0.5518 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.172/0.6948, allocations: 32.04 MB / 0.5831 GB, free: 127.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002212/0.6971, allocations: 2.066 MB / 0.5851 GB, free: 126.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.6983, allocations: 1.158 MB / 0.5862 GB, free: 126.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006439/0.7047, allocations: 4.533 MB / 0.5907 GB, free: 124.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.7048, allocations: 49.09 kB / 0.5907 GB, free: 124.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 3.968e-06/0.7048, allocations: 2.5 kB / 0.5907 GB, free: 124.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.0195/0.7243, allocations: 9.044 MB / 0.5995 GB, free: 123 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.7244, allocations: 147.3 kB / 0.5997 GB, free: 122.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003295/0.7277, allocations: 2.162 MB / 0.6018 GB, free: 122.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002513/0.728, allocations: 25.7 kB / 0.6018 GB, free: 122.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.729, allocations: 2.018 MB / 0.6038 GB, free: 121.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00048/0.7295, allocations: 0.5008 MB / 0.6043 GB, free: 121 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.7297, allocations: 0 / 0.6043 GB, free: 121 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000257/0.7299, allocations: 0.5552 MB / 0.6048 GB, free: 120.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.7319, allocations: 1.581 MB / 0.6064 GB, free: 120.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002856/0.7348, allocations: 4.457 MB / 0.6107 GB, free: 116.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003877/0.7386, allocations: 2.842 MB / 0.6135 GB, free: 116.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.296e-05/0.7387, allocations: 31.16 kB / 0.6135 GB, free: 116.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.01248/0.7512, allocations: 6.61 MB / 0.62 GB, free: 115.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.7513, allocations: 7.094 kB / 0.62 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006056/0.7573, allocations: 2.646 MB / 0.6226 GB, free: 114.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004995/0.7623, allocations: 1.4 MB / 0.6239 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003697/0.7661, allocations: 1.042 MB / 0.6249 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.7774, allocations: 7.396 MB / 0.6322 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00451/0.7819, allocations: 237.2 kB / 0.6324 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006787/0.7826, allocations: 294.1 kB / 0.6327 GB, free: 110.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (562): * Single equations (assignments): 554 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006767/0.7833, allocations: 354.8 kB / 0.633 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005891/0.7839, allocations: 212.8 kB / 0.6332 GB, free: 109.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006647/0.7905, allocations: 2.916 MB / 0.6361 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005988/0.7966, allocations: 2.588 MB / 0.6386 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.7966, allocations: 3.281 kB / 0.6386 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.7966, allocations: 9.203 kB / 0.6386 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.809, allocations: 6.285 MB / 0.6447 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.122e-05/0.8091, allocations: 5.406 kB / 0.6447 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000936/0.8101, allocations: 165.3 kB / 0.6449 GB, free: 106.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004799/0.8149, allocations: 1.353 MB / 0.6462 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002615/0.8152, allocations: 28.06 kB / 0.6463 GB, free: 106 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.8256, allocations: 7.688 MB / 0.6538 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006823/0.8263, allocations: 1.369 MB / 0.6551 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009441/0.8358, allocations: 5.093 MB / 0.6601 GB, free: 98.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007167/0.8365, allocations: 280.1 kB / 0.6603 GB, free: 98.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004145/0.8369, allocations: 17.17 kB / 0.6604 GB, free: 98.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.8382, allocations: 73.3 kB / 0.6604 GB, free: 98.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.8384, allocations: 58.17 kB / 0.6605 GB, free: 98.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.8386, allocations: 40.95 kB / 0.6605 GB, free: 98.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002132/0.8407, allocations: 1.43 MB / 0.6619 GB, free: 97.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003919/0.8446, allocations: 0.6947 MB / 0.6626 GB, free: 97.97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004713/0.8451, allocations: 173.1 kB / 0.6628 GB, free: 97.86 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006597/0.8517, allocations: 4.195 MB / 0.6669 GB, free: 94.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8518, allocations: 0 / 0.6669 GB, free: 94.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002642/0.8544, allocations: 1.614 MB / 0.6684 GB, free: 93.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.8556, allocations: 197 kB / 0.6686 GB, free: 93.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009018/0.8646, allocations: 5.574 MB / 0.6741 GB, free: 88.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002631/0.8672, allocations: 2.529 MB / 0.6765 GB, free: 86.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8673, allocations: 0 / 0.6765 GB, free: 86.27 MB / 442.7 MB Notification: Performance of Templates: time 0.04472/0.912, allocations: 28.02 MB / 0.7039 GB, free: 64.3 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches