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.001101/0.001101, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002152/0.002152, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.632/1.632, allocations: 205.1 MB / 222.1 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05796/0.05796, allocations: 10.75 MB / 280.2 MB, free: 10.66 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.00225/0.00225, allocations: 59.91 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1143, allocations: 49.01 MB / 389.1 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.003272/0.1176, allocations: 1.9 MB / 391 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1187, allocations: 0.6031 MB / 391.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1188, allocations: 0 / 391.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.953e-05/0.1189, allocations: 11.86 kB / 391.7 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.119, allocations: 23.73 kB / 391.7 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005673/0.1196, allocations: 163.6 kB / 391.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002763/0.1199, allocations: 203.5 kB / 392 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.1201, allocations: 48.55 kB / 392.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1202, allocations: 87.56 kB / 392.2 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.1203, allocations: 103.4 kB / 392.3 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.1203, allocations: 16 kB / 392.3 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.1206, allocations: 151.9 kB / 392.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.212e-05/0.1207, allocations: 55.77 kB / 392.5 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.295e-05/0.1208, allocations: 103.3 kB / 392.6 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003802/0.1211, allocations: 299.2 kB / 392.9 MB, free: 2.738 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1212, allocations: 3.938 kB / 392.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1212, allocations: 0 / 392.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1212, allocations: 4 kB / 392.9 MB, free: 2.73 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.0009072/0.1221, allocations: 0.5524 MB / 393.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.1221, allocations: 11.89 kB / 393.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.813e-05/0.1222, allocations: 42.73 kB / 393.5 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.1223, allocations: 32.66 kB / 393.5 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.1226, allocations: 263.5 kB / 393.8 MB, free: 1.738 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.1226, allocations: 20.36 kB / 393.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.1226, allocations: 12.38 kB / 393.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003341/0.123, allocations: 179 kB / 394 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.123, allocations: 3.938 kB / 394 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.123, allocations: 4 kB / 394 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.123, allocations: 0 / 394 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.1232, allocations: 67.91 kB / 394.1 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009275/0.1242, allocations: 0.5275 MB / 394.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.1245, allocations: 142.6 kB / 394.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.1246, allocations: 56.83 kB / 394.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.1246, allocations: 4 kB / 394.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/0.1249, allocations: 155.3 kB / 395 MB, free: 496 kB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.723e-06/0.125, allocations: 0 / 395 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005464/0.1255, allocations: 257.3 kB / 395.2 MB, free: 232 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/0.1256, allocations: 166.2 kB / 395.4 MB, free: 28 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.1259, allocations: 262.8 kB / 395.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.1259, allocations: 37.7 kB / 395.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.126, allocations: 152.4 kB / 395.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.733e-05/0.1261, allocations: 67.03 kB / 395.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-05/0.1262, allocations: 61.97 kB / 395.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1263, allocations: 338.8 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1265, allocations: 56.25 kB / 396.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.1267, allocations: 185.6 kB / 396.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.127, allocations: 245.5 kB / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.127, allocations: 0 / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004257/0.1275, allocations: 265 kB / 397 MB, free: 14.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.1275, allocations: 8 kB / 397 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1275, allocations: 4.469 kB / 397 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.1276, allocations: 11.98 kB / 397 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.1278, allocations: 55.92 kB / 397.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.1279, allocations: 11.92 kB / 397.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001875/0.1281, allocations: 27.78 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.1281, allocations: 12 kB / 397.1 MB, free: 14.11 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.0001807/0.1283, allocations: 153.5 kB / 397.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.169e-05/0.1283, allocations: 23.72 kB / 397.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.105e-05/0.1284, allocations: 34.17 kB / 397.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1284, allocations: 4 kB / 397.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1284, allocations: 0 / 397.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.1284, allocations: 3.938 kB / 397.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006714/0.1291, allocations: 0.5485 MB / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1291, allocations: 0 / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.1294, allocations: 31.97 kB / 397.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.1294, allocations: 8 kB / 397.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.1294, allocations: 7.938 kB / 397.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1294, allocations: 4 kB / 397.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1294, allocations: 0 / 397.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005818/0.13, allocations: 387.1 kB / 398.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.062e-05/0.1301, allocations: 100.7 kB / 398.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.1301, allocations: 15.98 kB / 398.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.1303, allocations: 12 kB / 398.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.1304, allocations: 15.97 kB / 398.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.1304, allocations: 8 kB / 398.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.1306, allocations: 186 kB / 398.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1306, allocations: 0 / 398.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003728/0.131, allocations: 79.98 kB / 398.7 MB, free: 12.4 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.001017/0.132, allocations: 0.9858 MB / 399.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003975/0.1324, allocations: 180.4 kB / 399.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1324, allocations: 192 / 399.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.1326, allocations: 83.89 kB / 400 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003892/0.133, allocations: 47.33 kB / 400 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.1367, allocations: 2.954 MB / 403 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.1371, allocations: 0.748 MB / 403.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.1373, allocations: 34.31 kB / 403.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1374, allocations: 83.41 kB / 403.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1374, allocations: 0 / 403.8 MB, free: 7.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.1567, allocations: 5.516 MB / 409.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.1569, allocations: 216 kB / 409.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.179, allocations: 0 / 409.6 MB, free: 1.391 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)