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.001946/0.001946, 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.002594/0.002594, allocations: 196.7 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.119/3.119, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1025/0.1025, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.002649/0.00265, allocations: 67.89 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2387, allocations: 49.01 MB / 389.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.005251/0.244, allocations: 1.679 MB / 391.3 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.2455, allocations: 358.7 kB / 391.7 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.2457, allocations: 0 / 391.7 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.428e-05/0.2458, allocations: 15.81 kB / 391.7 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.246, allocations: 23.73 kB / 391.7 MB, free: 4.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000673/0.2467, allocations: 123.6 kB / 391.8 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003704/0.2471, allocations: 155.6 kB / 392 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2473, allocations: 33.59 kB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.2474, allocations: 63.7 kB / 392.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.2476, allocations: 83.55 kB / 392.2 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.291e-05/0.2477, allocations: 16 kB / 392.2 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002298/0.2479, allocations: 79.92 kB / 392.3 MB, free: 3.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.627e-05/0.248, allocations: 39.89 kB / 392.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.2482, allocations: 87.39 kB / 392.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.2487, allocations: 191.4 kB / 392.6 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.2487, allocations: 4 kB / 392.6 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.2487, allocations: 0 / 392.6 MB, free: 3.207 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.2487, allocations: 0 / 392.6 MB, free: 3.207 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.001288/0.25, allocations: 483.1 kB / 393.1 MB, free: 2.684 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.646e-05/0.2501, allocations: 11.89 kB / 393.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.2503, allocations: 54.73 kB / 393.1 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2504, allocations: 24.66 kB / 393.1 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.2509, allocations: 224.1 kB / 393.4 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.251, allocations: 8.562 kB / 393.4 MB, free: 2.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.905e-05/0.2511, allocations: 20.27 kB / 393.4 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005966/0.2517, allocations: 170 kB / 393.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2517, allocations: 8 kB / 393.6 MB, free: 2.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2518, allocations: 3.984 kB / 393.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.2518, allocations: 4 kB / 393.6 MB, free: 2.098 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.2521, allocations: 55.97 kB / 393.6 MB, free: 2.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.2535, allocations: 468.5 kB / 394.1 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004963/0.254, allocations: 126.6 kB / 394.2 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/0.2543, allocations: 72.83 kB / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.2544, allocations: 0 / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006402/0.255, allocations: 150.9 kB / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 2.885e-06/0.2551, allocations: 0 / 394.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001001/0.2561, allocations: 261.2 kB / 394.7 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002057/0.2563, allocations: 170.2 kB / 394.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/0.2566, allocations: 194.6 kB / 395 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.946e-05/0.2567, allocations: 37.7 kB / 395.1 MB, free: 472 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.2569, allocations: 136.3 kB / 395.2 MB, free: 332 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.309e-05/0.257, allocations: 43.36 kB / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.2571, allocations: 61.61 kB / 395.3 MB, free: 220 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002535/0.2574, allocations: 334.8 kB / 395.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.2576, allocations: 52.25 kB / 395.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.258, allocations: 159.1 kB / 395.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006941/0.2587, allocations: 234.8 kB / 396.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.2587, allocations: 3.938 kB / 396.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008407/0.2596, allocations: 245.1 kB / 396.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.2596, allocations: 10.66 kB / 396.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/0.2597, allocations: 7.938 kB / 396.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.064e-05/0.2597, allocations: 4 kB / 396.3 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.2602, allocations: 47.91 kB / 396.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.2602, allocations: 4 kB / 396.4 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.2605, allocations: 28.16 kB / 396.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.2605, allocations: 19.98 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.0003523/0.2609, allocations: 147.4 kB / 396.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.261, allocations: 23.72 kB / 396.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.111e-05/0.2611, allocations: 21.86 kB / 396.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2611, allocations: 0 / 396.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.2612, allocations: 0 / 396.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.2612, allocations: 0 / 396.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.2624, allocations: 0.5218 MB / 397.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.2624, allocations: 4 kB / 397.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.2627, allocations: 27.92 kB / 397.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.2627, allocations: 3.984 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.2628, allocations: 8 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.2628, allocations: 0 / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2628, allocations: 0 / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2639, allocations: 382.5 kB / 397.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.2641, allocations: 96.94 kB / 397.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.2642, allocations: 8 kB / 397.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.2644, allocations: 11.98 kB / 397.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.928e-05/0.2645, allocations: 15.88 kB / 397.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.2646, allocations: 12 kB / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002026/0.2648, allocations: 144.2 kB / 397.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.455e-06/0.2648, allocations: 4.062 kB / 397.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006601/0.2655, allocations: 59.92 kB / 397.9 MB, free: 13.41 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.001823/0.2673, allocations: 0.9475 MB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.2681, allocations: 171.8 kB / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.2682, allocations: 0 / 399 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.2685, allocations: 71.91 kB / 399.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.2692, allocations: 52.22 kB / 399.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.2743, allocations: 2.393 MB / 401.5 MB, free: 9.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.2748, allocations: 0.7285 MB / 402.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001846/0.275, allocations: 21.94 kB / 402.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.2752, allocations: 55.42 kB / 402.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2752, allocations: 0 / 402.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1608/0.436, allocations: 4.342 MB / 406.7 MB, free: 4.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.36/14.8, 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)