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.001544/0.001543, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.585/1.585, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05723/0.05723, allocations: 10.74 MB / 280.5 MB, free: 10.49 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.00152/0.00152, allocations: 71.89 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08139/0.08292, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002867/0.08584, allocations: 1.663 MB / 391.3 MB, free: 4.465 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006891/0.08655, allocations: 374.7 kB / 391.7 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.67e-05/0.08662, allocations: 4 kB / 391.7 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.572e-05/0.08667, allocations: 11.81 kB / 391.7 MB, free: 4.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.08679, allocations: 19.73 kB / 391.7 MB, free: 4.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000356/0.08716, allocations: 119.6 kB / 391.8 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.08738, allocations: 159.6 kB / 392 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.08754, allocations: 25.67 kB / 392 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.947e-05/0.08763, allocations: 67.7 kB / 392.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.08776, allocations: 79.55 kB / 392.2 MB, free: 3.621 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.0878, allocations: 16 kB / 392.2 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.08794, allocations: 79.92 kB / 392.3 MB, free: 3.527 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.088, allocations: 43.83 kB / 392.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.0881, allocations: 75.52 kB / 392.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.0884, allocations: 211.3 kB / 392.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.08841, allocations: 0 / 392.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.08842, allocations: 0 / 392.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.08844, allocations: 0 / 392.6 MB, free: 3.203 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.0008161/0.08926, allocations: 483.1 kB / 393.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.08931, allocations: 11.89 kB / 393.1 MB, free: 2.668 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.872e-05/0.08938, allocations: 42.73 kB / 393.1 MB, free: 2.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.08945, allocations: 24.66 kB / 393.1 MB, free: 2.594 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.08969, allocations: 232.1 kB / 393.4 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.08972, allocations: 12.55 kB / 393.4 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.08976, allocations: 20.22 kB / 393.4 MB, free: 2.297 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002766/0.09004, allocations: 170 kB / 393.6 MB, free: 2.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.09006, allocations: 0 / 393.6 MB, free: 2.109 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.09009, allocations: 4 kB / 393.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.0901, allocations: 4 kB / 393.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.09027, allocations: 63.89 kB / 393.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007274/0.09101, allocations: 460.6 kB / 394.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.09125, allocations: 134.6 kB / 394.2 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.09139, allocations: 68.83 kB / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.09141, allocations: 0 / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002826/0.0917, allocations: 150.7 kB / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.09171, allocations: 0 / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.000532/0.09225, allocations: 261.2 kB / 394.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.164e-05/0.09235, allocations: 170.2 kB / 394.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.09252, allocations: 198.6 kB / 395 MB, free: 0.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.09256, allocations: 37.7 kB / 395.1 MB, free: 468 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.234e-05/0.09265, allocations: 124.3 kB / 395.2 MB, free: 340 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.09269, allocations: 51.36 kB / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/0.09277, allocations: 61.59 kB / 395.3 MB, free: 220 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.0929, allocations: 330.8 kB / 395.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.09301, allocations: 52.25 kB / 395.7 MB, free: 15.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.09319, allocations: 163.1 kB / 395.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.09351, allocations: 234.8 kB / 396.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.09352, allocations: 4 kB / 396.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003659/0.09389, allocations: 241.4 kB / 396.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.09392, allocations: 10.66 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.09393, allocations: 4 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.09396, allocations: 11.92 kB / 396.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.09418, allocations: 47.92 kB / 396.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.0942, allocations: 4 kB / 396.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.09432, allocations: 27.77 kB / 396.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.09434, allocations: 15.94 kB / 396.4 MB, free: 14.98 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.0001704/0.09452, allocations: 151.6 kB / 396.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.672e-05/0.09456, allocations: 27.7 kB / 396.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.817e-05/0.09462, allocations: 21.88 kB / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.09462, allocations: 0 / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.09463, allocations: 4 kB / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.09464, allocations: 3.984 kB / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005593/0.09521, allocations: 0.5218 MB / 397.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.09522, allocations: 4 kB / 397.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.09538, allocations: 23.92 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.09539, allocations: 0 / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.09542, allocations: 8 kB / 397.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.09542, allocations: 0 / 397.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.09543, allocations: 4 kB / 397.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005072/0.09594, allocations: 378.5 kB / 397.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.09601, allocations: 96.91 kB / 397.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.09606, allocations: 12 kB / 397.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.09617, allocations: 7.984 kB / 397.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.084e-05/0.09624, allocations: 23.88 kB / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.09627, allocations: 7.984 kB / 397.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000102/0.09637, allocations: 152.2 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09638, allocations: 0 / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.09669, allocations: 52 kB / 397.9 MB, free: 13.4 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.0007905/0.09749, allocations: 0.9437 MB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.09784, allocations: 180.2 kB / 399 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.09785, allocations: 0 / 399 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.09799, allocations: 71.97 kB / 399.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.09832, allocations: 40.23 kB / 399.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.1007, allocations: 2.4 MB / 401.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.101, allocations: 0.7207 MB / 402.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.157e-05/0.1011, allocations: 25.94 kB / 402.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.31e-05/0.1012, allocations: 51.42 kB / 402.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1012, allocations: 0 / 402.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.1251, allocations: 4.345 MB / 406.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.567/7.692, allocations: 8.312 kB / 406.7 MB, free: 4.508 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)