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.001045/0.001045, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001096/0.001096, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.553/1.553, allocations: 205.1 MB / 222 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05538/0.05538, allocations: 10.74 MB / 280.1 MB, free: 10.72 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.001488/0.001488, allocations: 64.47 kB / 339.8 MB, free: 23.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1644, allocations: 49.03 MB / 388.9 MB, free: 6.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.00377/0.1682, allocations: 1.899 MB / 390.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1695, allocations: 0.6227 MB / 391.4 MB, free: 4.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.249e-05/0.1696, allocations: 4 kB / 391.4 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.81e-05/0.1696, allocations: 15.8 kB / 391.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.1698, allocations: 11.81 kB / 391.4 MB, free: 4.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005195/0.1703, allocations: 155.7 kB / 391.6 MB, free: 4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.1706, allocations: 191.4 kB / 391.8 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1707, allocations: 44.66 kB / 391.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.052e-05/0.1708, allocations: 75.58 kB / 391.9 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.171, allocations: 99.41 kB / 392 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.603e-05/0.171, allocations: 12 kB / 392 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.1712, allocations: 147.8 kB / 392.1 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.69e-05/0.1713, allocations: 51.77 kB / 392.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.1714, allocations: 91.33 kB / 392.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1718, allocations: 291.1 kB / 392.6 MB, free: 3.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1718, allocations: 0 / 392.6 MB, free: 3.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1718, allocations: 0 / 392.6 MB, free: 3.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1718, allocations: 8 kB / 392.6 MB, free: 3.012 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.0009187/0.1728, allocations: 0.564 MB / 393.1 MB, free: 2.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1728, allocations: 12.03 kB / 393.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.113e-05/0.1729, allocations: 24.66 kB / 393.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.1732, allocations: 271.5 kB / 393.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.1732, allocations: 8.375 kB / 393.4 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.1733, allocations: 24.38 kB / 393.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003443/0.1736, allocations: 171.1 kB / 393.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1736, allocations: 4.188 kB / 393.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.1737, allocations: 3.938 kB / 393.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1737, allocations: 4 kB / 393.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.1739, allocations: 79.83 kB / 393.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009108/0.1748, allocations: 0.5158 MB / 394.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.1751, allocations: 134.6 kB / 394.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.1752, allocations: 60.83 kB / 394.4 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.1753, allocations: 0 / 394.4 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.1756, allocations: 159.3 kB / 394.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.793e-06/0.1756, allocations: 3.938 kB / 394.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005861/0.1762, allocations: 261.3 kB / 394.8 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1764, allocations: 166.2 kB / 395 MB, free: 356 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002496/0.1766, allocations: 266.6 kB / 395.3 MB, free: 80 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.1767, allocations: 29.7 kB / 395.3 MB, free: 44 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.1768, allocations: 152.4 kB / 395.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.086e-05/0.1768, allocations: 67.09 kB / 395.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.1769, allocations: 57.98 kB / 395.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1771, allocations: 338.8 kB / 395.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.1772, allocations: 48.25 kB / 395.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002066/0.1774, allocations: 193.5 kB / 396.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.1778, allocations: 241.5 kB / 396.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.1778, allocations: 4 kB / 396.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004049/0.1782, allocations: 265 kB / 396.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1782, allocations: 4 kB / 396.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1782, allocations: 4 kB / 396.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.1783, allocations: 8.469 kB / 396.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.1785, allocations: 59.91 kB / 396.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.1786, allocations: 11.94 kB / 396.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.1787, allocations: 31.67 kB / 396.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1788, allocations: 12 kB / 396.8 MB, free: 14.44 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.0001848/0.179, allocations: 149.7 kB / 396.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.607e-05/0.179, allocations: 23.72 kB / 396.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.939e-05/0.1791, allocations: 30.17 kB / 397 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1791, allocations: 4 kB / 397 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.1791, allocations: 0 / 397 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1791, allocations: 3.938 kB / 397 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006847/0.1798, allocations: 0.5524 MB / 397.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1798, allocations: 0 / 397.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002227/0.18, allocations: 35.97 kB / 397.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1801, allocations: 4 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/0.1801, allocations: 11.94 kB / 397.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.1801, allocations: 0 / 397.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1801, allocations: 3.984 kB / 397.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005897/0.1807, allocations: 387.1 kB / 397.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-05/0.1808, allocations: 112.6 kB / 398.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.1809, allocations: 12 kB / 398.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.181, allocations: 15.98 kB / 398.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.1811, allocations: 7.984 kB / 398.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.1811, allocations: 11.98 kB / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001757/0.1813, allocations: 186 kB / 398.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1813, allocations: 0 / 398.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003719/0.1817, allocations: 75.98 kB / 398.4 MB, free: 12.73 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.0002393/0.1819, allocations: 159.1 kB / 398.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003705/0.1823, allocations: 167.8 kB / 398.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1823, allocations: 0 / 398.7 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.1825, allocations: 79.34 kB / 398.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.1829, allocations: 48.52 kB / 398.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.1841, allocations: 0.5761 MB / 399.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.1844, allocations: 0.7521 MB / 400.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.1846, allocations: 34.31 kB / 400.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.53e-05/0.1846, allocations: 23.38 kB / 400.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1846, allocations: 0 / 400.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Templates: time 0.006417/0.191, allocations: 2.888 MB / 403.1 MB, free: 7.961 MB / 302.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)