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: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",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 3.2.3+maint.om/package.mo): time 0.004104/0.004104, allocations: 184.3 kB / 7.462 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06467/0.06467, allocations: 10.59 MB / 18.46 MB, free: 2.172 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.381/1.381, allocations: 205.2 MB / 226.5 MB, free: 404 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009331/0.0009331, allocations: 69.67 kB / 276.9 MB, free: 15.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1378/0.1388, allocations: 56.14 MB / 333 MB, free: 7.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.4258, allocations: 49.99 MB / 383 MB, free: 39.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1101/0.536, allocations: 77.83 MB / 460.8 MB, free: 9.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5364, allocations: 71.95 kB / 460.9 MB, free: 9.492 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.01559/0.552, allocations: 5.346 MB / 466.3 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.918e-05/0.5521, allocations: 12 kB / 466.3 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.566e-05/0.5522, allocations: 23.72 kB / 466.3 MB, free: 4.055 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003955/0.5526, allocations: 274 kB / 466.6 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.5526, allocations: 3.984 kB / 466.6 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.002e-05/0.5526, allocations: 19.91 kB / 466.6 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001417/0.5528, allocations: 44.66 kB / 466.6 MB, free: 3.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.5531, allocations: 159.3 kB / 466.8 MB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.5531, allocations: 3.938 kB / 466.8 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.5531, allocations: 4 kB / 466.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.5531, allocations: 4 kB / 466.8 MB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008504/0.554, allocations: 476.8 kB / 467.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.5542, allocations: 118.7 kB / 467.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.29e-05/0.5543, allocations: 52.84 kB / 467.4 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.5543, allocations: 3.984 kB / 467.4 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.5545, allocations: 130.8 kB / 467.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.703e-06/0.5546, allocations: 0 / 467.6 MB, free: 2.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.000641/0.5552, allocations: 229.2 kB / 467.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.306e-05/0.5553, allocations: 162.2 kB / 467.9 MB, free: 2.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.5555, allocations: 217.1 kB / 468.2 MB, free: 2.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.5556, allocations: 33.64 kB / 468.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.925e-05/0.5557, allocations: 124.5 kB / 468.3 MB, free: 1.855 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.5557, allocations: 63.19 kB / 468.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-06/0.5558, allocations: 0 / 468.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5559, allocations: 344.4 kB / 468.7 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.5561, allocations: 40.28 kB / 468.8 MB, free: 1.406 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.5563, allocations: 177.2 kB / 468.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.5564, allocations: 73.16 kB / 469 MB, free: 1.102 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5564, allocations: 0 / 469 MB, free: 1.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003536/0.5568, allocations: 222.4 kB / 469.2 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.5568, allocations: 4 kB / 469.2 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.5568, allocations: 4 kB / 469.2 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.5568, allocations: 8 kB / 469.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.5571, allocations: 64.28 kB / 469.3 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.5572, allocations: 7.938 kB / 469.3 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.5573, allocations: 19.83 kB / 469.3 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.5574, allocations: 16 kB / 469.3 MB, free: 0.7578 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.000166/0.5576, allocations: 116.9 kB / 469.5 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.5576, allocations: 31.61 kB / 469.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.463e-05/0.5577, allocations: 25.91 kB / 469.5 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.5577, allocations: 3.938 kB / 469.5 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5577, allocations: 0 / 469.5 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.5577, allocations: 3.984 kB / 469.5 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008387/0.5585, allocations: 0.5338 MB / 470 MB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.165e-05/0.5586, allocations: 4.047 kB / 470.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/0.5589, allocations: 27.94 kB / 470.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-06/0.5589, allocations: 11.98 kB / 470.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.5589, allocations: 11.91 kB / 470.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.5589, allocations: 0 / 470.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.559, allocations: 0 / 470.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000762/0.5597, allocations: 400.6 kB / 470.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009973/0.5607, allocations: 0.8244 MB / 471.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.302e-05/0.5608, allocations: 108.8 kB / 471.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.321e-05/0.5609, allocations: 4.25 kB / 471.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.5611, allocations: 11.98 kB / 471.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.5612, allocations: 15.89 kB / 471.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.5612, allocations: 11.98 kB / 471.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001785/0.5614, allocations: 169.2 kB / 471.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001035/0.5624, allocations: 95.8 kB / 471.7 MB, free: 14.27 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.0003314/0.5628, allocations: 183 kB / 471.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.5631, allocations: 136.2 kB / 472 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5631, allocations: 4 kB / 472 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.5633, allocations: 67.91 kB / 472.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.5636, allocations: 38.34 kB / 472.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.5648, allocations: 403.8 kB / 472.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005956/0.5654, allocations: 0.7865 MB / 473.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5654, allocations: 0 / 473.3 MB, free: 12.61 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)