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.0116/0.0116, allocations: 100.5 kB / 15.73 MB, free: 5.977 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.001955/0.001955, allocations: 197.2 kB / 16.67 MB, free: 5.914 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.528/1.528, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05896/0.05896, allocations: 10.73 MB / 280.6 MB, free: 1.293 MB / 222.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.001399/0.001399, allocations: 65.2 kB / 390.3 MB, free: 46.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08674, allocations: 49.03 MB / 439.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002456/0.08924, allocations: 1.65 MB / 441 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007561/0.09003, allocations: 374.7 kB / 441.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.973e-05/0.09015, allocations: 4 kB / 441.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.407e-05/0.09024, allocations: 11.81 kB / 441.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001405/0.09039, allocations: 27.73 kB / 441.4 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.09078, allocations: 114.5 kB / 441.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.09097, allocations: 155.6 kB / 441.7 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.09112, allocations: 25.69 kB / 441.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.555e-05/0.0912, allocations: 67.7 kB / 441.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.09131, allocations: 83.53 kB / 441.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.874e-05/0.09134, allocations: 16 kB / 441.9 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.09146, allocations: 79.92 kB / 441.9 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.666e-05/0.0915, allocations: 39.8 kB / 442 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.299e-05/0.09157, allocations: 75.56 kB / 442.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.0918, allocations: 207.3 kB / 442.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.09182, allocations: 0 / 442.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.09183, allocations: 4 kB / 442.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.09184, allocations: 3.938 kB / 442.3 MB, free: 1.383 MB / 318.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.0006234/0.09247, allocations: 483.7 kB / 442.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.09251, allocations: 15.89 kB / 442.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.764e-05/0.09255, allocations: 42.73 kB / 442.8 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.389e-05/0.09261, allocations: 20.75 kB / 442.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002033/0.09282, allocations: 243.7 kB / 443.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.09285, allocations: 8.562 kB / 443.1 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.609e-05/0.09289, allocations: 20.31 kB / 443.1 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.09315, allocations: 173.9 kB / 443.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.09318, allocations: 0 / 443.3 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.0932, allocations: 4 kB / 443.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.09321, allocations: 0 / 443.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.09336, allocations: 63.95 kB / 443.3 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007755/0.09414, allocations: 476.4 kB / 443.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.09441, allocations: 126.7 kB / 443.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.09457, allocations: 72.83 kB / 444 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.09459, allocations: 4 kB / 444 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.09493, allocations: 142.5 kB / 444.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.09494, allocations: 0 / 444.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006164/0.09556, allocations: 261.4 kB / 444.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/0.09576, allocations: 162.2 kB / 444.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.09596, allocations: 198.7 kB / 444.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.09599, allocations: 33.7 kB / 444.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.0961, allocations: 116.5 kB / 444.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.111e-05/0.09616, allocations: 67.17 kB / 444.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.939e-05/0.09626, allocations: 49.7 kB / 445 MB, free: 14.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.09643, allocations: 342.8 kB / 445.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.09654, allocations: 48.25 kB / 445.4 MB, free: 14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.09675, allocations: 173.1 kB / 445.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.09709, allocations: 230.1 kB / 445.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.0971, allocations: 0 / 445.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003885/0.09749, allocations: 245.1 kB / 446 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.09752, allocations: 4 kB / 446 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.09753, allocations: 4.375 kB / 446 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.09756, allocations: 8 kB / 446 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.09778, allocations: 55.84 kB / 446.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.0978, allocations: 4 kB / 446.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.09793, allocations: 31.69 kB / 446.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.09796, allocations: 15.94 kB / 446.1 MB, free: 13.15 MB / 334.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.0001917/0.09816, allocations: 151.5 kB / 446.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.0982, allocations: 15.81 kB / 446.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.098e-05/0.09827, allocations: 25.86 kB / 446.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.09828, allocations: 4 kB / 446.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.09829, allocations: 0 / 446.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.09829, allocations: 0 / 446.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006216/0.09892, allocations: 0.5294 MB / 446.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.09893, allocations: 0 / 446.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001525/0.09909, allocations: 19.98 kB / 446.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.09911, allocations: 4 kB / 446.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.09913, allocations: 15.98 kB / 446.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.09914, allocations: 0 / 446.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.09915, allocations: 0 / 446.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.09968, allocations: 379.8 kB / 447.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.09975, allocations: 96.8 kB / 447.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/0.0998, allocations: 11.98 kB / 447.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.09992, allocations: 12 kB / 447.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.09999, allocations: 19.98 kB / 447.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.1, allocations: 7.984 kB / 447.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.1001, allocations: 148.2 kB / 447.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1001, allocations: 0 / 447.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.1005, allocations: 55.98 kB / 447.6 MB, free: 11.57 MB / 334.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.0009493/0.1015, allocations: 0.9464 MB / 448.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003594/0.1018, allocations: 155.8 kB / 448.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1019, allocations: 0 / 448.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.102, allocations: 80.34 kB / 448.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.1024, allocations: 43.78 kB / 448.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002819/0.1052, allocations: 2.389 MB / 451.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.1056, allocations: 0.7206 MB / 451.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.1057, allocations: 25.94 kB / 452 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.885e-05/0.1058, allocations: 59.36 kB / 452 MB, free: 6.957 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1058, allocations: 0 / 452 MB, free: 6.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02559/0.1314, allocations: 4.515 MB / 456.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.011, allocations: 9.422 kB / 456.5 MB, free: 2.559 MB / 334.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)