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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.797/1.797, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05567/0.05567, allocations: 10.74 MB / 281.1 MB, free: 10.56 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005115/0.0005118, allocations: 12 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1348, allocations: 50 MB / 391.7 MB, free: 5.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002505/0.1374, allocations: 1.515 MB / 393.2 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.1386, allocations: 0.5569 MB / 393.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.948e-05/0.1387, allocations: 0 / 393.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.404e-05/0.1388, allocations: 7.875 kB / 393.8 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1389, allocations: 31.89 kB / 393.8 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005256/0.1395, allocations: 135.5 kB / 393.9 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002602/0.1397, allocations: 123.7 kB / 394.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1399, allocations: 36.33 kB / 394.1 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/0.14, allocations: 75.61 kB / 394.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.1402, allocations: 91.52 kB / 394.3 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.1402, allocations: 12 kB / 394.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002307/0.1405, allocations: 123.9 kB / 394.4 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.753e-05/0.1405, allocations: 35.83 kB / 394.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.1406, allocations: 57.58 kB / 394.5 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.1409, allocations: 215.9 kB / 394.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.141, allocations: 0 / 394.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.141, allocations: 0 / 394.7 MB, free: 2.699 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.141, allocations: 0 / 394.7 MB, free: 2.699 MB / 286.1 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.0009462/0.1419, allocations: 0.5139 MB / 395.2 MB, free: 2.137 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.108e-05/0.142, allocations: 12.03 kB / 395.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.1421, allocations: 50.55 kB / 395.3 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.787e-05/0.1422, allocations: 31.61 kB / 395.3 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.1426, allocations: 254.5 kB / 395.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.1426, allocations: 8 kB / 395.6 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.1426, allocations: 20 kB / 395.6 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003685/0.143, allocations: 178.4 kB / 395.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1431, allocations: 4 kB / 395.7 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.1431, allocations: 4 kB / 395.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.1431, allocations: 4 kB / 395.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.1433, allocations: 67.91 kB / 395.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.1444, allocations: 0.5314 MB / 396.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000336/0.1448, allocations: 146.5 kB / 396.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.1448, allocations: 0 / 396.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/0.1452, allocations: 139.3 kB / 396.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 3.005e-06/0.1452, allocations: 7.984 kB / 396.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006541/0.1458, allocations: 273.2 kB / 396.9 MB, free: 288 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.146, allocations: 162.2 kB / 397.1 MB, free: 88 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.1463, allocations: 254.7 kB / 397.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1464, allocations: 37.7 kB / 397.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.1465, allocations: 148.7 kB / 397.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.712e-05/0.1466, allocations: 67.14 kB / 397.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.088e-05/0.1466, allocations: 4 kB / 397.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.1468, allocations: 342.8 kB / 397.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1469, allocations: 56.25 kB / 398 MB, free: 15.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/0.1472, allocations: 189.5 kB / 398.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001721/0.1474, allocations: 83.92 kB / 398.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.1474, allocations: 0 / 398.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004528/0.1479, allocations: 277.3 kB / 398.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.1479, allocations: 11.94 kB / 398.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1479, allocations: 4 kB / 398.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.1479, allocations: 4 kB / 398.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/0.1482, allocations: 59.91 kB / 398.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.801e-05/0.1482, allocations: 11.92 kB / 398.6 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.1484, allocations: 31.73 kB / 398.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.1485, allocations: 16 kB / 398.6 MB, free: 14.42 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = true 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 () * Number of clocked 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.0002375/0.1487, allocations: 149.2 kB / 398.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.1488, allocations: 23.72 kB / 398.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-05/0.1488, allocations: 26.17 kB / 398.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1488, allocations: 4 kB / 398.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1489, allocations: 0 / 398.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.1489, allocations: 0 / 398.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007211/0.1496, allocations: 0.5606 MB / 399.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1496, allocations: 0 / 399.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.1498, allocations: 31.98 kB / 399.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1498, allocations: 4 kB / 399.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.1499, allocations: 7.984 kB / 399.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1499, allocations: 0 / 399.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1499, allocations: 0 / 399.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005917/0.1505, allocations: 402.9 kB / 399.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.997e-05/0.1506, allocations: 96.83 kB / 399.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.95e-05/0.1506, allocations: 12.05 kB / 399.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1508, allocations: 8 kB / 399.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.1509, allocations: 15.97 kB / 400 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.1509, allocations: 8 kB / 400 MB, free: 12.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.1511, allocations: 190 kB / 400.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1511, allocations: 0 / 400.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003703/0.1515, allocations: 83.92 kB / 400.2 MB, free: 12.72 MB / 302.1 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) * Number of clocked states: 0 () * 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.001077/0.1526, allocations: 0.9811 MB / 401.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003835/0.153, allocations: 172.5 kB / 401.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.153, allocations: 4.188 kB / 401.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.1531, allocations: 79.91 kB / 401.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.1535, allocations: 44.45 kB / 401.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.1574, allocations: 3.818 MB / 405.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.1578, allocations: 0.7599 MB / 406.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.1579, allocations: 30.31 kB / 406.1 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.158, allocations: 75.41 kB / 406.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.158, allocations: 0 / 406.2 MB, free: 6.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.1769, allocations: 5.171 MB / 411.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.1771, allocations: 190.4 kB / 411.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.023, allocations: 0 / 411.5 MB, free: 1.281 MB / 302.1 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) Environment - environmentSimulation: