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.008085/0.008085, allocations: 97.23 kB / 15.73 MB, free: 6.484 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.001462/0.001462, allocations: 191.6 kB / 16.67 MB, free: 6.391 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.455/1.455, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05949/0.05949, allocations: 10.74 MB / 280.7 MB, free: 10.41 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.001698/0.001698, allocations: 71.17 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2504, allocations: 49.03 MB / 439.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002528/0.253, allocations: 1.663 MB / 441 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006907/0.2537, allocations: 373.4 kB / 441.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.379e-05/0.2538, allocations: 4.5 kB / 441.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.666e-05/0.2538, allocations: 13 kB / 441.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.254, allocations: 25.36 kB / 441.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003866/0.2544, allocations: 114.3 kB / 441.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002616/0.2546, allocations: 158.8 kB / 441.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.2548, allocations: 28.48 kB / 441.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.668e-05/0.2549, allocations: 65.19 kB / 441.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001097/0.255, allocations: 81.33 kB / 441.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.255, allocations: 14.59 kB / 441.9 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.2551, allocations: 77.45 kB / 442 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.584e-05/0.2552, allocations: 47.8 kB / 442 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.505e-05/0.2553, allocations: 68.81 kB / 442.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.2555, allocations: 210.1 kB / 442.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2556, allocations: 0.5156 kB / 442.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2556, allocations: 7.875 kB / 442.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.2556, allocations: 4 kB / 442.3 MB, free: 3.207 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.0005789/0.2562, allocations: 485.8 kB / 442.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2562, allocations: 13.48 kB / 442.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.827e-05/0.2562, allocations: 46.25 kB / 442.8 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.135e-05/0.2563, allocations: 23.12 kB / 442.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.2565, allocations: 244.4 kB / 443.1 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.2565, allocations: 7.281 kB / 443.1 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.2566, allocations: 19.22 kB / 443.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.2568, allocations: 168.7 kB / 443.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2569, allocations: 0 / 443.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.2569, allocations: 4.016 kB / 443.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2569, allocations: 5.688 kB / 443.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.2571, allocations: 69.11 kB / 443.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006811/0.2578, allocations: 467.3 kB / 443.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.258, allocations: 126.3 kB / 443.9 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2581, allocations: 77.67 kB / 444 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.2582, allocations: 2.094 kB / 444 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002863/0.2585, allocations: 137.9 kB / 444.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.784e-06/0.2585, allocations: 0 / 444.1 MB, free: 1.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005232/0.259, allocations: 263.8 kB / 444.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.2591, allocations: 165.7 kB / 444.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.2592, allocations: 197.1 kB / 444.8 MB, free: 1.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.2592, allocations: 34.78 kB / 444.8 MB, free: 1.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.2593, allocations: 120.8 kB / 444.9 MB, free: 1.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.755e-05/0.2594, allocations: 64.73 kB / 445 MB, free: 1.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.2594, allocations: 56.03 kB / 445 MB, free: 1.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.2595, allocations: 334.9 kB / 445.4 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.2596, allocations: 58.39 kB / 445.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.2598, allocations: 162.8 kB / 445.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.26, allocations: 228 kB / 445.8 MB, free: 464 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.26, allocations: 5.469 kB / 445.8 MB, free: 460 kB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003496/0.2604, allocations: 246 kB / 446 MB, free: 344 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2604, allocations: 7.562 kB / 446 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.2604, allocations: 2.906 kB / 446.1 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.2605, allocations: 4.5 kB / 446.1 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.2607, allocations: 50.83 kB / 446.1 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.2607, allocations: 12.47 kB / 446.1 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.2608, allocations: 27.64 kB / 446.1 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.2608, allocations: 13.25 kB / 446.2 MB, free: 308 kB / 318.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.0001406/0.261, allocations: 149.8 kB / 446.3 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.261, allocations: 17.27 kB / 446.3 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.332e-05/0.2611, allocations: 25.06 kB / 446.3 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2611, allocations: 1.406 kB / 446.3 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.2611, allocations: 1.891 kB / 446.3 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.2611, allocations: 4.922 kB / 446.4 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006384/0.2617, allocations: 0.5282 MB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2618, allocations: 1.859 kB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.2619, allocations: 20.91 kB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2619, allocations: 1.5 kB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.262, allocations: 13 kB / 446.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.262, allocations: 2.125 kB / 446.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.262, allocations: 0 / 446.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.2625, allocations: 380 kB / 447.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.503e-05/0.2626, allocations: 95.36 kB / 447.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.605e-05/0.2627, allocations: 14.38 kB / 447.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.2628, allocations: 10.44 kB / 447.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.092e-05/0.2629, allocations: 19.02 kB / 447.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.995e-05/0.2629, allocations: 12.7 kB / 447.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001231/0.263, allocations: 143.7 kB / 447.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.263, allocations: 0 / 447.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.2634, allocations: 55.8 kB / 447.6 MB, free: 15.28 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.0008973/0.2643, allocations: 0.9525 MB / 448.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003999/0.2647, allocations: 157.2 kB / 448.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.2647, allocations: 0 / 448.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.2649, allocations: 80.05 kB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.2652, allocations: 45.95 kB / 448.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.2679, allocations: 2.379 MB / 451.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.2682, allocations: 0.7217 MB / 452 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.773e-05/0.2683, allocations: 25.2 kB / 452 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.4e-05/0.2684, allocations: 53.11 kB / 452 MB, free: 11.91 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2684, allocations: 0 / 452 MB, free: 11.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.2919, allocations: 4.427 MB / 456.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.017, allocations: 10.81 kB / 456.5 MB, free: 9.668 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 & 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)