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: translateModel(IndustrialControlSystems.LinearSystems.Examples.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") translateModel(IndustrialControlSystems.LinearSystems.Examples.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.001454/0.001454, allocations: 183 kB / 17.34 MB, free: 5.754 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.399/1.399, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0593/0.0593, allocations: 10.72 MB / 281.3 MB, free: 1.293 MB / 222.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.002737/0.002737, allocations: 66.22 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1222, allocations: 49.03 MB / 440.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.003992/0.1263, allocations: 1.841 MB / 442.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.1277, allocations: 0.6069 MB / 443 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.1278, allocations: 0 / 443 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.368e-05/0.1279, allocations: 23.67 kB / 443 MB, free: 1.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.1281, allocations: 35.61 kB / 443 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008119/0.129, allocations: 187 kB / 443.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000325/0.1293, allocations: 199.5 kB / 443.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1295, allocations: 44.39 kB / 443.5 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.1297, allocations: 91.5 kB / 443.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.1298, allocations: 99.45 kB / 443.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.514e-05/0.1299, allocations: 20 kB / 443.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003075/0.1302, allocations: 159.8 kB / 443.8 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.037e-05/0.1303, allocations: 55.7 kB / 443.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.689e-05/0.1304, allocations: 107.3 kB / 444 MB, free: 348 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.1308, allocations: 295.2 kB / 444.3 MB, free: 52 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1308, allocations: 4 kB / 444.3 MB, free: 48 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1308, allocations: 0 / 444.3 MB, free: 48 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.1308, allocations: 0 / 444.3 MB, free: 48 kB / 318.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.001149/0.132, allocations: 0.5683 MB / 444.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1321, allocations: 11.89 kB / 444.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.642e-05/0.1322, allocations: 28.66 kB / 444.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.1326, allocations: 259.7 kB / 445.1 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.1326, allocations: 16.38 kB / 445.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-05/0.1327, allocations: 20.27 kB / 445.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/0.1331, allocations: 170.4 kB / 445.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1332, allocations: 192 / 445.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.1332, allocations: 15.92 kB / 445.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.1332, allocations: 4 kB / 445.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.1335, allocations: 67.91 kB / 445.4 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1348, allocations: 0.5081 MB / 445.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.1353, allocations: 146.6 kB / 446.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.1355, allocations: 60.83 kB / 446.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.1355, allocations: 4 kB / 446.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004529/0.136, allocations: 150.4 kB / 446.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 2.224e-06/0.136, allocations: 0 / 446.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0007912/0.1368, allocations: 269.3 kB / 446.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1369, allocations: 158.2 kB / 446.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.1373, allocations: 262.7 kB / 447 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.1373, allocations: 37.69 kB / 447 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.1375, allocations: 152.4 kB / 447.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.639e-05/0.1376, allocations: 59.2 kB / 447.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.1377, allocations: 57.98 kB / 447.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1379, allocations: 342.8 kB / 447.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.138, allocations: 52.12 kB / 447.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1384, allocations: 185.6 kB / 447.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004803/0.1388, allocations: 237.5 kB / 448.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.1389, allocations: 4 kB / 448.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006522/0.1395, allocations: 280.8 kB / 448.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.1396, allocations: 10.03 kB / 448.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.1396, allocations: 4 kB / 448.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.1396, allocations: 4 kB / 448.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003513/0.14, allocations: 56.38 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.14, allocations: 7.938 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.1403, allocations: 39.67 kB / 448.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.1403, allocations: 15.94 kB / 448.5 MB, free: 11.47 MB / 334.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.0002669/0.1406, allocations: 141.7 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/0.1407, allocations: 27.7 kB / 448.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.633e-05/0.1408, allocations: 26.19 kB / 448.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1408, allocations: 0 / 448.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.1408, allocations: 7.984 kB / 448.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.1409, allocations: 3.938 kB / 448.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009893/0.1419, allocations: 0.5487 MB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1419, allocations: 0 / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.1422, allocations: 31.98 kB / 449.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1422, allocations: 0 / 449.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.1422, allocations: 11.92 kB / 449.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.1423, allocations: 0 / 449.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1423, allocations: 0 / 449.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000841/0.1431, allocations: 399 kB / 449.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.668e-05/0.1432, allocations: 100.9 kB / 449.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.1433, allocations: 16 kB / 449.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.1435, allocations: 11.98 kB / 449.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.23e-05/0.1436, allocations: 11.98 kB / 449.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.1437, allocations: 11.98 kB / 449.8 MB, free: 10.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.1439, allocations: 190 kB / 450 MB, free: 9.855 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1439, allocations: 0 / 450 MB, free: 9.855 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006101/0.1445, allocations: 83.89 kB / 450.1 MB, free: 9.773 MB / 334.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.0003125/0.1449, allocations: 147.2 kB / 450.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005509/0.1454, allocations: 172.4 kB / 450.4 MB, free: 9.453 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.1454, allocations: 7.938 kB / 450.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.1457, allocations: 75.91 kB / 450.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.1463, allocations: 58.75 kB / 450.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.1479, allocations: 0.5321 MB / 451.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.1484, allocations: 0.7479 MB / 451.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.1485, allocations: 31.44 kB / 451.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1485, allocations: 4 kB / 451.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of Templates: time 0.007898/0.1564, allocations: 3.242 MB / 455.1 MB, free: 4.711 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)