Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState") [: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.001169/0.001169, allocations: 192.1 kB / 8.534 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.232/1.232, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009172/0.0009172, allocations: 94.56 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1754/0.1754, allocations: 45.13 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.854e-06/8.045e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 63.25 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3704/0.5048, allocations: 97.19 MB / 0.5987 GB, free: 5.781 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.5051, allocations: 65.28 kB / 0.5987 GB, free: 5.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.08101/0.5861, allocations: 27.43 MB / 0.6255 GB, free: 14.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.209e-05/0.5862, allocations: 23.25 kB / 0.6255 GB, free: 14.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00203/0.5883, allocations: 0.9651 MB / 0.6265 GB, free: 13.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.5883, allocations: 8.031 kB / 0.6265 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003992/0.5887, allocations: 107 kB / 0.6266 GB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.5899, allocations: 0.5581 MB / 0.6271 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.207e-05/0.5899, allocations: 12 kB / 0.6272 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.59, allocations: 39.78 kB / 0.6272 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006859/0.5907, allocations: 339.2 kB / 0.6275 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007988/0.5915, allocations: 498.2 kB / 0.628 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.5916, allocations: 4 kB / 0.628 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.857e-05/0.5916, allocations: 3.938 kB / 0.628 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.5917, allocations: 12 kB / 0.628 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00362/0.5953, allocations: 2.575 MB / 0.6305 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007756/0.5961, allocations: 461.2 kB / 0.631 GB, free: 9.867 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.5964, allocations: 181 kB / 0.6311 GB, free: 9.742 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.5964, allocations: 10.03 kB / 0.6311 GB, free: 9.734 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.5965, allocations: 41.44 kB / 0.6312 GB, free: 9.688 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 2.665e-06/0.5965, allocations: 0 / 0.6312 GB, free: 9.688 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.001453/0.5979, allocations: 0.7699 MB / 0.6319 GB, free: 9.016 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.598, allocations: 144.5 kB / 0.6321 GB, free: 8.844 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000608/0.5986, allocations: 499.6 kB / 0.6326 GB, free: 8.461 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/0.5987, allocations: 29.7 kB / 0.6326 GB, free: 8.426 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.5989, allocations: 246.5 kB / 0.6328 GB, free: 8.211 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001517/0.599, allocations: 165.2 kB / 0.633 GB, free: 8.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.5991, allocations: 0 / 0.633 GB, free: 8.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.5993, allocations: 385.5 kB / 0.6333 GB, free: 7.715 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.5996, allocations: 193.8 kB / 0.6335 GB, free: 7.598 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.6001, allocations: 348.2 kB / 0.6339 GB, free: 7.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003775/0.6005, allocations: 248.9 kB / 0.6341 GB, free: 7.102 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.6005, allocations: 4 kB / 0.6341 GB, free: 7.098 MB / 426.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0009946/0.6015, allocations: 0.6243 MB / 0.6347 GB, free: 6.605 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000772/0.6023, allocations: 1.741 MB / 0.6364 GB, free: 4.762 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.6023, allocations: 4 kB / 0.6364 GB, free: 4.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.6023, allocations: 8 kB / 0.6364 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007844/0.6031, allocations: 167.6 kB / 0.6366 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.424e-05/0.6031, allocations: 8 kB / 0.6366 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006124/0.6037, allocations: 91.52 kB / 0.6367 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/0.6038, allocations: 31.62 kB / 0.6367 GB, free: 4.469 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.664e-06/0.6038, allocations: 4 kB / 0.6367 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008558/0.6047, allocations: 0.5128 MB / 0.6372 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.6047, allocations: 4 kB / 0.6372 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.6047, allocations: 8 kB / 0.6372 GB, free: 4.074 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.6054, allocations: 156.2 kB / 0.6374 GB, free: 3.926 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.6054, allocations: 15.92 kB / 0.6374 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.6059, allocations: 71.64 kB / 0.6375 GB, free: 3.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.606, allocations: 35.69 kB / 0.6375 GB, free: 3.812 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.6062, allocations: 120.7 kB / 0.6376 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.6064, allocations: 67.16 kB / 0.6377 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.6066, allocations: 83.78 kB / 0.6377 GB, free: 3.574 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.6066, allocations: 7.906 kB / 0.6378 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.6067, allocations: 0 / 0.6378 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.6067, allocations: 0 / 0.6378 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.6079, allocations: 0.763 MB / 0.6385 GB, free: 2.922 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.6079, allocations: 0 / 0.6385 GB, free: 2.922 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007335/0.6086, allocations: 119.4 kB / 0.6386 GB, free: 2.809 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.6087, allocations: 4 kB / 0.6386 GB, free: 2.805 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.445e-05/0.6087, allocations: 11.86 kB / 0.6386 GB, free: 2.797 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.6087, allocations: 4 kB / 0.6386 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.6087, allocations: 0 / 0.6386 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001192/0.6099, allocations: 0.9674 MB / 0.6396 GB, free: 1.996 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.6102, allocations: 195.2 kB / 0.6398 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.6103, allocations: 7.812 kB / 0.6398 GB, free: 1.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.6109, allocations: 63.94 kB / 0.6398 GB, free: 1.742 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.6111, allocations: 31.5 kB / 0.6399 GB, free: 1.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.542e-05/0.6111, allocations: 11.94 kB / 0.6399 GB, free: 1.707 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004321/0.6115, allocations: 379.6 kB / 0.6402 GB, free: 1.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000879/0.6124, allocations: 168 kB / 0.6404 GB, free: 1.266 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002177/0.6126, allocations: 119 kB / 0.6405 GB, free: 1.141 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.6139, allocations: 0.8012 MB / 0.6413 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.6139, allocations: 0 / 0.6413 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003262/0.6143, allocations: 212.3 kB / 0.6415 GB, free: 432 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009021/0.6152, allocations: 157.5 kB / 0.6416 GB, free: 308 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.6178, allocations: 1.179 MB / 0.6428 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007713/0.6186, allocations: 1.023 MB / 0.6438 GB, free: 14.15 MB / 442.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6186, allocations: 0 / 0.6438 GB, free: 14.15 MB / 442.7 MB Notification: Performance of Templates: time 0.02002/0.6386, allocations: 10.48 MB / 0.654 GB, free: 3.75 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches