Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) [: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.0009707/0.0009707, allocations: 174.8 kB / 8.518 MB, free: 1.832 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.124/1.124, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0009167/0.0009167, allocations: 91.23 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1743/0.1743, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1683/0.3426, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.4323, allocations: 61.91 MB / 0.4942 GB, free: 1.535 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.6772, allocations: 96.19 MB / 0.5881 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001644/0.6774, allocations: 64.62 kB / 0.5882 GB, free: 488 kB / 394.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.08656/0.7639, allocations: 29.77 MB / 0.6172 GB, free: 2.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.764, allocations: 15.94 kB / 0.6173 GB, free: 2.555 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.7642, allocations: 90.88 kB / 0.6173 GB, free: 2.465 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.7654, allocations: 0.5859 MB / 0.6179 GB, free: 1.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.7655, allocations: 16 kB / 0.6179 GB, free: 1.824 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.471e-05/0.7656, allocations: 43.89 kB / 0.618 GB, free: 1.781 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006392/0.7662, allocations: 329.9 kB / 0.6183 GB, free: 1.457 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.767, allocations: 494.5 kB / 0.6188 GB, free: 0.9258 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.767, allocations: 4 kB / 0.6188 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.767, allocations: 4 kB / 0.6188 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.7671, allocations: 12 kB / 0.6188 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.7705, allocations: 2.561 MB / 0.6213 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.771, allocations: 335.4 kB / 0.6216 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.7713, allocations: 195.1 kB / 0.6218 GB, free: 13.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.7714, allocations: 8.234 kB / 0.6218 GB, free: 13.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.7714, allocations: 46.64 kB / 0.6218 GB, free: 13.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 1.724e-06/0.7714, allocations: 0 / 0.6218 GB, free: 13.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.001332/0.7727, allocations: 0.7727 MB / 0.6226 GB, free: 12.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.7728, allocations: 114.8 kB / 0.6227 GB, free: 12.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000554/0.7734, allocations: 495.8 kB / 0.6232 GB, free: 12.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.7734, allocations: 25.7 kB / 0.6232 GB, free: 12.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.7736, allocations: 248.5 kB / 0.6234 GB, free: 11.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.7737, allocations: 177.4 kB / 0.6236 GB, free: 11.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.7738, allocations: 0 / 0.6236 GB, free: 11.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.7739, allocations: 382.8 kB / 0.624 GB, free: 11.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003262/0.7743, allocations: 197.3 kB / 0.6242 GB, free: 11.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/0.7747, allocations: 346.3 kB / 0.6245 GB, free: 10.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.7751, allocations: 263 kB / 0.6247 GB, free: 10.54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.7752, allocations: 4 kB / 0.6247 GB, free: 10.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001033/0.7762, allocations: 0.6293 MB / 0.6254 GB, free: 9.902 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000616/0.7768, allocations: 1.738 MB / 0.6271 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.7768, allocations: 4 kB / 0.6271 GB, free: 8.023 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.7769, allocations: 11.98 kB / 0.6271 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.778, allocations: 211.7 kB / 0.6273 GB, free: 7.805 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.778, allocations: 11.94 kB / 0.6273 GB, free: 7.793 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/0.7786, allocations: 79.55 kB / 0.6274 GB, free: 7.715 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.914e-05/0.7786, allocations: 28 kB / 0.6274 GB, free: 7.688 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.002e-06/0.7786, allocations: 4 kB / 0.6274 GB, free: 7.684 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008858/0.7795, allocations: 0.536 MB / 0.6279 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.7795, allocations: 7.984 kB / 0.6279 GB, free: 7.141 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.7796, allocations: 8 kB / 0.6279 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.7806, allocations: 204 kB / 0.6281 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.7806, allocations: 15.92 kB / 0.6281 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/0.7811, allocations: 75.55 kB / 0.6282 GB, free: 6.844 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.784e-05/0.7812, allocations: 28 kB / 0.6282 GB, free: 6.816 MB / 442.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 (78): * Single equations (assignments): 77 * Array equations: 1 * 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.00013/0.7813, allocations: 120.8 kB / 0.6284 GB, free: 6.691 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.7815, allocations: 71.06 kB / 0.6284 GB, free: 6.621 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.7817, allocations: 82.69 kB / 0.6285 GB, free: 6.539 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.7817, allocations: 4 kB / 0.6285 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.7817, allocations: 0 / 0.6285 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.7817, allocations: 0 / 0.6285 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.7833, allocations: 1.128 MB / 0.6296 GB, free: 5.355 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.7833, allocations: 4 kB / 0.6296 GB, free: 5.352 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007232/0.784, allocations: 123.9 kB / 0.6297 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.784, allocations: 0 / 0.6297 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.7841, allocations: 8 kB / 0.6297 GB, free: 5.223 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.7841, allocations: 4 kB / 0.6297 GB, free: 5.219 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7841, allocations: 0 / 0.6297 GB, free: 5.219 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001143/0.7853, allocations: 1.022 MB / 0.6307 GB, free: 4.148 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001588/0.7869, allocations: 1.632 MB / 0.6323 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.7871, allocations: 192 kB / 0.6325 GB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.7872, allocations: 12 kB / 0.6325 GB, free: 2.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006004/0.7878, allocations: 55.88 kB / 0.6326 GB, free: 2.195 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.7879, allocations: 35.89 kB / 0.6326 GB, free: 2.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.788, allocations: 19.98 kB / 0.6326 GB, free: 2.141 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003921/0.7884, allocations: 375.2 kB / 0.633 GB, free: 1.773 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002055/0.7904, allocations: 207.8 kB / 0.6332 GB, free: 1.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (46): * Single equations (assignments): 46 * 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.0002803/0.7907, allocations: 139.8 kB / 0.6333 GB, free: 1.426 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.7921, allocations: 0.805 MB / 0.6341 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7921, allocations: 0 / 0.6341 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003503/0.7924, allocations: 231.8 kB / 0.6343 GB, free: 404 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008461/0.7933, allocations: 158 kB / 0.6345 GB, free: 248 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.7956, allocations: 1.212 MB / 0.6357 GB, free: 14.99 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007602/0.7963, allocations: 1.058 MB / 0.6367 GB, free: 13.89 MB / 458.7 MB Notification: Performance of SimCode: time 3.11e-07/0.7963, allocations: 0 / 0.6367 GB, free: 13.89 MB / 458.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Continuous_InitialOutput.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_InitialOutput.pipe 2>&1)