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: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",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.0009868/0.0009872, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009389/0.0009388, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.713/1.713, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05837/0.05837, allocations: 10.74 MB / 281.1 MB, free: 10.58 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.0005676/0.0005676, allocations: 18.95 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1647, allocations: 49.99 MB / 391.7 MB, free: 5.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.001849/0.1666, allocations: 1.359 MB / 393 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000659/0.1673, allocations: 347.1 kB / 393.4 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.337e-05/0.1673, allocations: 0 / 393.4 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.727e-05/0.1674, allocations: 15.81 kB / 393.4 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.1675, allocations: 15.92 kB / 393.4 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.1678, allocations: 87.73 kB / 393.5 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.168, allocations: 95.77 kB / 393.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1681, allocations: 25.67 kB / 393.6 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.352e-05/0.1682, allocations: 55.75 kB / 393.7 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.1683, allocations: 75.66 kB / 393.7 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.1683, allocations: 8 kB / 393.7 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.1685, allocations: 59.94 kB / 393.8 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.079e-05/0.1685, allocations: 39.88 kB / 393.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.987e-05/0.1686, allocations: 53.58 kB / 393.9 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.1687, allocations: 135.7 kB / 394 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1688, allocations: 0 / 394 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1688, allocations: 3.938 kB / 394 MB, free: 3.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.1688, allocations: 0 / 394 MB, free: 3.348 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.000638/0.1694, allocations: 455.2 kB / 394.5 MB, free: 2.852 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.1695, allocations: 8.031 kB / 394.5 MB, free: 2.844 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.773e-05/0.1695, allocations: 42.55 kB / 394.5 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.1696, allocations: 23.77 kB / 394.5 MB, free: 2.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.1699, allocations: 242.5 kB / 394.8 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.1699, allocations: 8.188 kB / 394.8 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.1699, allocations: 12 kB / 394.8 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003092/0.1703, allocations: 175.5 kB / 395 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1703, allocations: 0 / 395 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1703, allocations: 4 kB / 395 MB, free: 2.277 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1703, allocations: 4 kB / 395 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001631/0.1705, allocations: 68.52 kB / 395.1 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007954/0.1713, allocations: 473.3 kB / 395.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.1716, allocations: 122.7 kB / 395.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.1716, allocations: 4 kB / 395.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.1719, allocations: 147.5 kB / 395.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.1719, allocations: 0 / 395.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005473/0.1725, allocations: 265.3 kB / 396 MB, free: 1.141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.1726, allocations: 162.2 kB / 396.2 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.1728, allocations: 198.6 kB / 396.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.1728, allocations: 37.7 kB / 396.4 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.728e-05/0.1729, allocations: 124.3 kB / 396.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.173, allocations: 63.23 kB / 396.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.173, allocations: 4 kB / 396.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.1732, allocations: 330.8 kB / 396.9 MB, free: 176 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.1733, allocations: 52.25 kB / 397 MB, free: 120 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1735, allocations: 163.1 kB / 397.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.1737, allocations: 83.81 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1737, allocations: 4 kB / 397.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000391/0.1741, allocations: 241.1 kB / 397.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.1741, allocations: 14.59 kB / 397.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1741, allocations: 384 / 397.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.1741, allocations: 12 kB / 397.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.1744, allocations: 51.91 kB / 397.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.1744, allocations: 7.938 kB / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1745, allocations: 19.84 kB / 397.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/0.1745, allocations: 19.98 kB / 397.6 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,$PRE.cplxP_dig_TU.y_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,$PRE.cplxP_dig_FE.y_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,$PRE.cplxP_dig_BE.y_pre1,cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.cplxP_dig_BE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_FE.y,$PRE.cplxP_dig_TU.y,cplxP_dig_TU.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.1748, allocations: 159.6 kB / 397.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.1748, allocations: 19.81 kB / 397.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.971e-05/0.1749, allocations: 21.86 kB / 397.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1749, allocations: 4 kB / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1749, allocations: 0 / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1749, allocations: 0 / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006561/0.1756, allocations: 0.5328 MB / 398.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1756, allocations: 8 kB / 398.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.1758, allocations: 19.98 kB / 398.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.1758, allocations: 4 kB / 398.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1758, allocations: 3.984 kB / 398.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.1758, allocations: 4 kB / 398.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1758, allocations: 0 / 398.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005644/0.1764, allocations: 387.6 kB / 398.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.214e-05/0.1764, allocations: 96.89 kB / 398.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/0.1765, allocations: 8 kB / 398.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.1766, allocations: 11.98 kB / 398.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.1767, allocations: 15.98 kB / 398.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.1767, allocations: 8 kB / 398.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001228/0.1768, allocations: 140.5 kB / 399 MB, free: 13.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1768, allocations: 4.062 kB / 399 MB, free: 13.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1772, allocations: 51.98 kB / 399.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000949/0.1781, allocations: 0.9498 MB / 400 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00036/0.1785, allocations: 159.8 kB / 400.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1785, allocations: 0 / 400.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.1787, allocations: 76.64 kB / 400.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.179, allocations: 43.59 kB / 400.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00265/0.1816, allocations: 2.966 MB / 403.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.182, allocations: 0.7248 MB / 404 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.17e-05/0.1821, allocations: 33.86 kB / 404 MB, free: 8.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.963e-05/0.1822, allocations: 55.42 kB / 404.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1822, allocations: 0 / 404.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.2005, allocations: 3.922 MB / 408 MB, free: 4.934 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.2008, allocations: 225.7 kB / 408.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/1.957, allocations: 3.797 kB / 408.2 MB, free: 4.684 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) Environment - environmentSimulation: