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.0009577/0.0009577, allocations: 97.8 kB / 15.36 MB, free: 0.7344 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.005917/0.005917, allocations: 171.2 kB / 16.27 MB, free: 6.652 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.675/1.675, allocations: 205.4 MB / 222.5 MB, free: 5.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05456/0.05456, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.000568/0.0005681, allocations: 23.94 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1154, allocations: 50 MB / 392.3 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002228/0.1177, allocations: 1.545 MB / 393.9 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.1188, allocations: 0.619 MB / 394.5 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.022e-05/0.1188, allocations: 4 kB / 394.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.8e-05/0.1189, allocations: 7.875 kB / 394.5 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.119, allocations: 19.73 kB / 394.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004315/0.1194, allocations: 155.6 kB / 394.7 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.1197, allocations: 187.5 kB / 394.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1198, allocations: 44.59 kB / 394.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.118e-05/0.1199, allocations: 79.47 kB / 395 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001932/0.1201, allocations: 95.45 kB / 395.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.1201, allocations: 8 kB / 395.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.1203, allocations: 143.8 kB / 395.2 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.607e-05/0.1204, allocations: 43.77 kB / 395.3 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.649e-05/0.1205, allocations: 117 kB / 395.4 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.1209, allocations: 291.1 kB / 395.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.1209, allocations: 0 / 395.7 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1209, allocations: 3.938 kB / 395.7 MB, free: 1.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1209, allocations: 4 kB / 395.7 MB, free: 1.957 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.0008142/0.1217, allocations: 0.5096 MB / 396.2 MB, free: 1.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1218, allocations: 12.03 kB / 396.2 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.842e-05/0.1218, allocations: 38.75 kB / 396.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.685e-05/0.1219, allocations: 28.64 kB / 396.3 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000273/0.1222, allocations: 275.6 kB / 396.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.1222, allocations: 8.375 kB / 396.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.1222, allocations: 24.27 kB / 396.6 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.1226, allocations: 171 kB / 396.7 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.1226, allocations: 3.938 kB / 396.7 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.1226, allocations: 11.98 kB / 396.8 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1226, allocations: 4 kB / 396.8 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.1228, allocations: 67.91 kB / 396.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008582/0.1237, allocations: 0.5315 MB / 397.4 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.124, allocations: 142.6 kB / 397.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1241, allocations: 60.83 kB / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.938e-06/0.1241, allocations: 0 / 397.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.1244, allocations: 159.2 kB / 397.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.342e-06/0.1244, allocations: 4 kB / 397.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005373/0.1249, allocations: 265.3 kB / 398 MB, free: 15.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.497e-05/0.125, allocations: 158.2 kB / 398.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.1254, allocations: 262.7 kB / 398.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.1254, allocations: 41.69 kB / 398.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1256, allocations: 152.3 kB / 398.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.597e-05/0.1256, allocations: 59.2 kB / 398.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.1257, allocations: 33.7 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1259, allocations: 338.8 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.126, allocations: 60.19 kB / 399.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.1262, allocations: 189.5 kB / 399.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1265, allocations: 249.5 kB / 399.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1265, allocations: 4 kB / 399.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004093/0.127, allocations: 265.4 kB / 399.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.127, allocations: 8.031 kB / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.127, allocations: 8 kB / 399.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.127, allocations: 4 kB / 399.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/0.1273, allocations: 63.84 kB / 399.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.1273, allocations: 15.88 kB / 399.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.1275, allocations: 23.83 kB / 399.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.863e-05/0.1275, allocations: 16 kB / 399.9 MB, free: 13.37 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.000177/0.1277, allocations: 153.4 kB / 400 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.1277, allocations: 23.72 kB / 400.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.899e-05/0.1278, allocations: 30.17 kB / 400.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1278, allocations: 0 / 400.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1278, allocations: 3.938 kB / 400.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1278, allocations: 3.984 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006703/0.1285, allocations: 0.5564 MB / 400.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1285, allocations: 3.984 kB / 400.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002096/0.1287, allocations: 35.98 kB / 400.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1287, allocations: 0 / 400.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.1288, allocations: 11.92 kB / 400.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1288, allocations: 0 / 400.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1288, allocations: 0 / 400.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005727/0.1293, allocations: 399 kB / 401.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.456e-05/0.1294, allocations: 100.8 kB / 401.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.1295, allocations: 12 kB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.1296, allocations: 15.98 kB / 401.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/0.1297, allocations: 7.984 kB / 401.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.1297, allocations: 11.98 kB / 401.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001582/0.1299, allocations: 194 kB / 401.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1299, allocations: 0 / 401.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.1302, allocations: 76 kB / 401.5 MB, free: 11.65 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.0009436/0.1312, allocations: 0.9888 MB / 402.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.1315, allocations: 168.7 kB / 402.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1315, allocations: 0 / 402.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.1317, allocations: 79.97 kB / 402.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.132, allocations: 52.45 kB / 402.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003602/0.1356, allocations: 2.995 MB / 405.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.1359, allocations: 0.744 MB / 406.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.1361, allocations: 30.28 kB / 406.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1362, allocations: 71.42 kB / 406.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1362, allocations: 4 kB / 406.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.247/0.3832, allocations: 5.29 MB / 411.9 MB, free: 1.105 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.3835, allocations: 223.2 kB / 412.1 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.273, allocations: 0 / 412.1 MB, free: 0.8438 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)