Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.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.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001105/0.001105, allocations: 194.5 kB / 16.25 MB, free: 6.621 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.408/1.408, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05513/0.05513, allocations: 10.74 MB / 280.2 MB, free: 10.67 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.002183/0.002183, allocations: 59.91 kB / 340 MB, free: 23.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1502/0.1524, allocations: 49.02 MB / 389.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003107/0.1555, allocations: 1.724 MB / 390.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008872/0.1565, allocations: 370.8 kB / 391.1 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.1566, allocations: 3.938 kB / 391.1 MB, free: 4.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.84e-05/0.1567, allocations: 3.938 kB / 391.2 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.1568, allocations: 11.86 kB / 391.2 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004759/0.1573, allocations: 95.84 kB / 391.3 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000214/0.1575, allocations: 163.5 kB / 391.4 MB, free: 4.215 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1577, allocations: 25.67 kB / 391.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.223e-05/0.1578, allocations: 63.72 kB / 391.5 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.1579, allocations: 83.53 kB / 391.6 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.926e-05/0.1579, allocations: 16 kB / 391.6 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.1581, allocations: 79.94 kB / 391.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.736e-05/0.1581, allocations: 43.83 kB / 391.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.084e-05/0.1582, allocations: 79.52 kB / 391.8 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.1585, allocations: 199.4 kB / 392 MB, free: 3.637 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.1585, allocations: 0 / 392 MB, free: 3.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1585, allocations: 0 / 392 MB, free: 3.637 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.1585, allocations: 0 / 392 MB, free: 3.637 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0007734/0.1593, allocations: 491 kB / 392.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1593, allocations: 12.03 kB / 392.5 MB, free: 3.094 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.1594, allocations: 20.66 kB / 392.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.1597, allocations: 232 kB / 392.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.1597, allocations: 16.5 kB / 392.7 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.1597, allocations: 16.36 kB / 392.8 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.16, allocations: 171.3 kB / 392.9 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1601, allocations: 3.984 kB / 392.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.1601, allocations: 7.984 kB / 392.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.1601, allocations: 0 / 392.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.1603, allocations: 63.97 kB / 393 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007651/0.161, allocations: 468.5 kB / 393.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002476/0.1613, allocations: 130.6 kB / 393.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1614, allocations: 72.83 kB / 393.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.1614, allocations: 4 kB / 393.7 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.1617, allocations: 142.7 kB / 393.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.944e-06/0.1617, allocations: 0 / 393.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005254/0.1623, allocations: 265.2 kB / 394.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.1624, allocations: 166.2 kB / 394.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.1625, allocations: 194.6 kB / 394.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.1626, allocations: 33.7 kB / 394.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.1627, allocations: 132.3 kB / 394.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.1627, allocations: 55.34 kB / 394.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.248e-05/0.1628, allocations: 57.61 kB / 394.7 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1629, allocations: 334.8 kB / 395 MB, free: 360 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.163, allocations: 52.25 kB / 395.1 MB, free: 304 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.1632, allocations: 155.1 kB / 395.2 MB, free: 96 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003418/0.1635, allocations: 246.8 kB / 395.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1636, allocations: 0 / 395.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003814/0.1639, allocations: 249.4 kB / 395.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.164, allocations: 4 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.164, allocations: 4 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.164, allocations: 4 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.1642, allocations: 47.91 kB / 395.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1642, allocations: 4 kB / 395.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1644, allocations: 23.84 kB / 395.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.1644, allocations: 12 kB / 395.8 MB, free: 15.46 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,$PRE.cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_TU.y,$PRE.cplxP_dig_TU.y,cplxP_dig_FE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001928/0.1646, allocations: 168.4 kB / 396 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.1646, allocations: 19.84 kB / 396 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.096e-05/0.1647, allocations: 21.86 kB / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.1647, allocations: 4 kB / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1647, allocations: 0 / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1647, allocations: 0 / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005694/0.1653, allocations: 0.5255 MB / 396.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.1653, allocations: 0 / 396.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.1655, allocations: 27.92 kB / 396.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1655, allocations: 0 / 396.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.1655, allocations: 11.98 kB / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1655, allocations: 0 / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1655, allocations: 0 / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005164/0.166, allocations: 382.5 kB / 396.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.842e-05/0.1661, allocations: 88.95 kB / 397 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.349e-05/0.1662, allocations: 11.98 kB / 397 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.1663, allocations: 12 kB / 397.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.1663, allocations: 19.86 kB / 397.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1664, allocations: 12 kB / 397.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001195/0.1665, allocations: 144.2 kB / 397.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1665, allocations: 0 / 397.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.1668, allocations: 55.98 kB / 397.3 MB, free: 13.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cplxP.y,cplxP.dy) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1) * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0002001/0.167, allocations: 135.5 kB / 397.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003649/0.1674, allocations: 179.5 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1674, allocations: 0 / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.1676, allocations: 76.64 kB / 397.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.1679, allocations: 39.69 kB / 397.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006661/0.1686, allocations: 392.6 kB / 398.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.1689, allocations: 0.7207 MB / 398.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.216e-05/0.169, allocations: 29.88 kB / 398.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/0.169, allocations: 19.44 kB / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.169, allocations: 0 / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Templates: time 0.005765/0.1748, allocations: 2.348 MB / 401.2 MB, free: 9.898 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)