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.001043/0.001043, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001057/0.001056, allocations: 193.1 kB / 16.14 MB, free: 6.727 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.425/1.425, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05742/0.05742, allocations: 10.75 MB / 280.1 MB, free: 10.71 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.001311/0.001311, allocations: 67.91 kB / 340 MB, free: 23.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0796/0.08092, allocations: 49.01 MB / 389 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002637/0.08359, allocations: 1.721 MB / 390.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000729/0.08433, allocations: 386.8 kB / 391.1 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.854e-05/0.08439, allocations: 3.938 kB / 391.1 MB, free: 4.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.306e-05/0.08445, allocations: 7.922 kB / 391.1 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.08456, allocations: 11.88 kB / 391.1 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.08487, allocations: 107.6 kB / 391.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.08506, allocations: 143.7 kB / 391.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.08519, allocations: 25.67 kB / 391.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.357e-05/0.08526, allocations: 63.7 kB / 391.4 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.08537, allocations: 79.53 kB / 391.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.0854, allocations: 8 kB / 391.5 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.08553, allocations: 75.92 kB / 391.6 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.08558, allocations: 39.78 kB / 391.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.602e-05/0.08566, allocations: 71.58 kB / 391.7 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002264/0.0859, allocations: 187.4 kB / 391.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.08591, allocations: 0 / 391.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.08592, allocations: 7.938 kB / 391.9 MB, free: 3.664 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.08593, allocations: 0 / 391.9 MB, free: 3.664 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.0006949/0.08663, allocations: 483.2 kB / 392.4 MB, free: 3.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.08668, allocations: 8.031 kB / 392.4 MB, free: 3.133 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.849e-05/0.08674, allocations: 42.73 kB / 392.4 MB, free: 3.082 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.771e-05/0.0868, allocations: 24.66 kB / 392.4 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.08706, allocations: 235.8 kB / 392.7 MB, free: 2.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.08708, allocations: 12.56 kB / 392.7 MB, free: 2.777 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.08712, allocations: 16.28 kB / 392.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.08743, allocations: 171.1 kB / 392.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.08745, allocations: 0 / 392.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.08747, allocations: 4 kB / 392.9 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.08748, allocations: 4 kB / 392.9 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.08765, allocations: 71.89 kB / 392.9 MB, free: 2.496 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007203/0.08838, allocations: 460.5 kB / 393.4 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.08862, allocations: 130.6 kB / 393.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.08875, allocations: 72.77 kB / 393.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.08877, allocations: 0 / 393.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003005/0.08908, allocations: 147.3 kB / 393.7 MB, free: 1.629 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.08909, allocations: 0 / 393.7 MB, free: 1.629 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004967/0.08959, allocations: 265.2 kB / 394 MB, free: 1.363 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/0.08969, allocations: 162.2 kB / 394.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.08986, allocations: 198.6 kB / 394.3 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.0899, allocations: 41.64 kB / 394.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.08999, allocations: 124.3 kB / 394.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.09004, allocations: 51.34 kB / 394.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.528e-05/0.09012, allocations: 61.61 kB / 394.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.09025, allocations: 334.8 kB / 394.9 MB, free: 344 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.09037, allocations: 48.27 kB / 395 MB, free: 292 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.09056, allocations: 175.1 kB / 395.2 MB, free: 64 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.0909, allocations: 227 kB / 395.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.09092, allocations: 4 kB / 395.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003652/0.09129, allocations: 249.2 kB / 395.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.09131, allocations: 10.84 kB / 395.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.09133, allocations: 4 kB / 395.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.09135, allocations: 4 kB / 395.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.09156, allocations: 51.91 kB / 395.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.09158, allocations: 7.938 kB / 395.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.09169, allocations: 19.84 kB / 395.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.09172, allocations: 12 kB / 395.7 MB, free: 15.44 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.0001683/0.09189, allocations: 159.7 kB / 395.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.09193, allocations: 19.72 kB / 395.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.09198, allocations: 25.86 kB / 395.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.09199, allocations: 4 kB / 395.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.092, allocations: 0 / 395.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.09201, allocations: 0 / 395.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.0926, allocations: 0.525 MB / 396.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.09262, allocations: 4 kB / 396.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.09277, allocations: 23.98 kB / 396.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.09278, allocations: 0 / 396.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.09281, allocations: 11.92 kB / 396.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.09282, allocations: 4 kB / 396.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.09282, allocations: 0 / 396.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000507/0.09333, allocations: 375.1 kB / 396.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.809e-05/0.09339, allocations: 96.92 kB / 397 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.09344, allocations: 19.92 kB / 397 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.09355, allocations: 4 kB / 397 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.09362, allocations: 27.86 kB / 397 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.09364, allocations: 4 kB / 397 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.09375, allocations: 140.5 kB / 397.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09376, allocations: 0 / 397.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.09407, allocations: 59.98 kB / 397.2 MB, free: 13.86 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.0008214/0.09489, allocations: 0.9502 MB / 398.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.09521, allocations: 159.8 kB / 398.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.09522, allocations: 4.25 kB / 398.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.09535, allocations: 71.91 kB / 398.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.09569, allocations: 47.62 kB / 398.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.09819, allocations: 2.433 MB / 400.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.09847, allocations: 0.7284 MB / 401.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.71e-05/0.09856, allocations: 29.88 kB / 401.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.592e-05/0.09864, allocations: 51.42 kB / 401.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09865, allocations: 0 / 401.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0138/0.1125, allocations: 4.098 MB / 405.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/0.1127, allocations: 237 kB / 406 MB, free: 4.945 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/1.932, allocations: 64 / 406 MB, free: 4.945 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/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)