Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.LinearSystems.Examples.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") translateModel(IndustrialControlSystems.LinearSystems.Examples.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") [: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 3.2.3+maint.om/package.mo): time 0.004391/0.004391, allocations: 182.2 kB / 7.457 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06272/0.06272, allocations: 10.59 MB / 18.46 MB, free: 2.184 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.885/1.885, allocations: 205.2 MB / 226.5 MB, free: 0.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 88.55 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.199e-06/5.229e-06, allocations: 0 / 332.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2995, allocations: 50 MB / 382.9 MB, free: 39.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.4057, allocations: 77.84 MB / 460.8 MB, free: 9.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.406, allocations: 67.97 kB / 460.8 MB, free: 9.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0145/0.4205, allocations: 4.836 MB / 465.7 MB, free: 4.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.4206, allocations: 4 kB / 465.7 MB, free: 4.941 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000824/0.4214, allocations: 0.5031 MB / 466.2 MB, free: 4.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.4215, allocations: 8.031 kB / 466.2 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.182e-05/0.4216, allocations: 27.72 kB / 466.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005134/0.4221, allocations: 267.5 kB / 466.5 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.4222, allocations: 4 kB / 466.5 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.4222, allocations: 20.06 kB / 466.5 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001968/0.4224, allocations: 44.44 kB / 466.5 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.4228, allocations: 165.8 kB / 466.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.4228, allocations: 0 / 466.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.4228, allocations: 0 / 466.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4229, allocations: 4 kB / 466.7 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.4239, allocations: 476.8 kB / 467.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.4242, allocations: 125.1 kB / 467.3 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.4243, allocations: 56.86 kB / 467.3 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.4244, allocations: 4 kB / 467.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.4246, allocations: 119.3 kB / 467.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.523e-06/0.4246, allocations: 0 / 467.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007154/0.4253, allocations: 236.3 kB / 467.7 MB, free: 2.746 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.4254, allocations: 166.2 kB / 467.9 MB, free: 2.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/0.4256, allocations: 213.7 kB / 468.1 MB, free: 2.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.4257, allocations: 25.7 kB / 468.1 MB, free: 2.297 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.4259, allocations: 128.5 kB / 468.2 MB, free: 2.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.537e-05/0.4259, allocations: 63.17 kB / 468.3 MB, free: 2.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.4259, allocations: 0 / 468.3 MB, free: 2.105 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4261, allocations: 336.4 kB / 468.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.704e-05/0.4262, allocations: 48.22 kB / 468.7 MB, free: 1.719 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.4264, allocations: 173.3 kB / 468.8 MB, free: 1.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.4266, allocations: 67.91 kB / 468.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4266, allocations: 0 / 468.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003447/0.4269, allocations: 221.3 kB / 469.1 MB, free: 1.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4269, allocations: 12.08 kB / 469.1 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.427, allocations: 4 kB / 469.1 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.427, allocations: 4 kB / 469.1 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.4273, allocations: 63.81 kB / 469.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.4273, allocations: 8 kB / 469.2 MB, free: 1.109 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.4275, allocations: 15.84 kB / 469.2 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.4275, allocations: 12 kB / 469.2 MB, free: 1.082 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.complexPoles_dig.y,complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,$PRE.complexPoles_dig.y_pre1,complexPoles_dig.y_pre1,$PRE.lLag_dig.y,lLag_dig.y,$PRE.fO_dig.y,fO_dig.y,$PRE.int_dig.y,int_dig.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002267/0.4278, allocations: 128.8 kB / 469.3 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.727e-05/0.4278, allocations: 27.62 kB / 469.4 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.551e-05/0.4279, allocations: 29.83 kB / 469.4 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.4279, allocations: 4 kB / 469.4 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4279, allocations: 0 / 469.4 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4279, allocations: 0 / 469.4 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008435/0.4288, allocations: 0.5338 MB / 469.9 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4288, allocations: 0 / 469.9 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.4291, allocations: 43.91 kB / 470 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.4291, allocations: 0 / 470 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.4291, allocations: 7.906 kB / 470 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.4291, allocations: 4 kB / 470 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4291, allocations: 4 kB / 470 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007792/0.4299, allocations: 401.7 kB / 470.4 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.57e-05/0.43, allocations: 104.8 kB / 470.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.994e-05/0.4301, allocations: 4 kB / 470.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.4302, allocations: 11.98 kB / 470.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.4303, allocations: 16.02 kB / 470.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.4303, allocations: 7.984 kB / 470.5 MB, free: 15.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000155/0.4305, allocations: 173.2 kB / 470.7 MB, free: 15.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003994/0.4309, allocations: 91.77 kB / 470.8 MB, free: 15.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (int.y,fO.y,lLag.dy,complexPoles.y,complexPoles.dy) * Number of discrete variables: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,int_dig.y,fO_dig.y,lLag_dig.y,complexPoles_dig.y,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1) * Number of discrete states: 10 (complexPoles_dig.u,complexPoles_dig.u_pre1,complexPoles_dig.y,complexPoles_dig.y_pre1,lLag_dig.u,lLag_dig.y,fO_dig.u,fO_dig.y,int_dig.u,int_dig.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002962/0.4312, allocations: 183.9 kB / 471 MB, free: 15.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002723/0.4315, allocations: 135.8 kB / 471.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.4315, allocations: 8 kB / 471.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000112/0.4316, allocations: 64.86 kB / 471.2 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.432, allocations: 42.2 kB / 471.2 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.4331, allocations: 401.8 kB / 471.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004757/0.4336, allocations: 0.7748 MB / 472.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4336, allocations: 0 / 472.4 MB, free: 13.78 MB / 362.7 MB Notification: Performance of Templates: time 0.007346/0.441, allocations: 2.783 MB / 475.2 MB, free: 11.02 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)