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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001081/0.001081, allocations: 199.3 kB / 16.14 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05383/0.05383, allocations: 10.74 MB / 280.1 MB, free: 10.73 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.001237/0.001237, allocations: 75.84 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09949, allocations: 49.01 MB / 389 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.003515/0.1031, allocations: 1.896 MB / 390.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.1044, allocations: 0.6344 MB / 391.5 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.78e-05/0.1045, allocations: 7.938 kB / 391.5 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.604e-05/0.1046, allocations: 7.875 kB / 391.5 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.1048, allocations: 27.8 kB / 391.5 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.1053, allocations: 143.6 kB / 391.7 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.1055, allocations: 195.4 kB / 391.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1057, allocations: 48.59 kB / 391.9 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1058, allocations: 79.52 kB / 392 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.1059, allocations: 103.4 kB / 392.1 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.106, allocations: 8 kB / 392.1 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.1063, allocations: 147.9 kB / 392.3 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.438e-05/0.1064, allocations: 47.75 kB / 392.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.876e-05/0.1065, allocations: 95.34 kB / 392.4 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004939/0.107, allocations: 295.2 kB / 392.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.107, allocations: 0 / 392.7 MB, free: 2.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.107, allocations: 3.938 kB / 392.7 MB, free: 2.883 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.107, allocations: 0 / 392.7 MB, free: 2.883 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.0008161/0.1078, allocations: 0.5486 MB / 393.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1079, allocations: 8.031 kB / 393.2 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.485e-05/0.1079, allocations: 50.73 kB / 393.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.999e-05/0.108, allocations: 24.66 kB / 393.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002703/0.1083, allocations: 275.5 kB / 393.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.1083, allocations: 8.375 kB / 393.6 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.1083, allocations: 20.36 kB / 393.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.1087, allocations: 175 kB / 393.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1087, allocations: 7.938 kB / 393.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.1087, allocations: 4 kB / 393.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.1088, allocations: 4 kB / 393.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.1089, allocations: 63.95 kB / 393.9 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000923/0.1099, allocations: 0.5236 MB / 394.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.1101, allocations: 134.7 kB / 394.5 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.1103, allocations: 68.83 kB / 394.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.1103, allocations: 4 kB / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003048/0.1106, allocations: 135.3 kB / 394.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.1106, allocations: 0 / 394.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005749/0.1112, allocations: 265.2 kB / 395 MB, free: 400 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.1114, allocations: 166.2 kB / 395.1 MB, free: 196 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/0.1117, allocations: 266.6 kB / 395.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.1117, allocations: 33.7 kB / 395.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.329e-05/0.1118, allocations: 148.4 kB / 395.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.1119, allocations: 71.08 kB / 395.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.665e-05/0.112, allocations: 57.92 kB / 395.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1121, allocations: 338.8 kB / 396 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1123, allocations: 56.19 kB / 396.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.1125, allocations: 189.6 kB / 396.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000339/0.1128, allocations: 245.5 kB / 396.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1128, allocations: 4 kB / 396.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004092/0.1132, allocations: 265.3 kB / 396.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1133, allocations: 8 kB / 396.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1133, allocations: 7.938 kB / 396.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.1133, allocations: 4 kB / 396.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.1135, allocations: 59.95 kB / 396.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.1136, allocations: 7.938 kB / 396.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001892/0.1137, allocations: 31.81 kB / 396.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1138, allocations: 12 kB / 396.9 MB, free: 14.27 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 (complexPoles_dig.y,$PRE.complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1,$PRE.complexPoles_dig.y_pre1,lLag_dig.y,$PRE.lLag_dig.y,fO_dig.y,$PRE.fO_dig.y,int_dig.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.114, allocations: 149.6 kB / 397.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.114, allocations: 23.72 kB / 397.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.279e-05/0.1141, allocations: 34.11 kB / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1141, allocations: 0 / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.1141, allocations: 3.938 kB / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1141, allocations: 3.984 kB / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007163/0.1148, allocations: 0.5485 MB / 397.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1148, allocations: 4 kB / 397.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.1151, allocations: 39.92 kB / 397.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1151, allocations: 0 / 397.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.1151, allocations: 11.92 kB / 397.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1151, allocations: 0 / 397.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1151, allocations: 0 / 397.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005461/0.1157, allocations: 387.1 kB / 398.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.1157, allocations: 104.7 kB / 398.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/0.1158, allocations: 12 kB / 398.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.116, allocations: 11.98 kB / 398.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.116, allocations: 11.98 kB / 398.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.116, allocations: 11.98 kB / 398.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001674/0.1162, allocations: 186 kB / 398.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.1162, allocations: 0 / 398.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1166, allocations: 79.94 kB / 398.5 MB, free: 12.57 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009077/0.1175, allocations: 0.9847 MB / 399.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003451/0.1178, allocations: 172 kB / 399.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1179, allocations: 0 / 399.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.118, allocations: 71.91 kB / 399.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.1184, allocations: 52.52 kB / 399.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.1221, allocations: 2.963 MB / 402.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002924/0.1224, allocations: 0.744 MB / 403.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.1225, allocations: 30.28 kB / 403.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.1226, allocations: 75.36 kB / 403.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1226, allocations: 4 kB / 403.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.1395, allocations: 5.382 MB / 409 MB, free: 1.938 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.1397, allocations: 215.8 kB / 409.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.009, allocations: 0 / 409.2 MB, free: 1.684 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/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)