Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance",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.001183/0.001183, allocations: 102.9 kB / 16.27 MB, free: 5.93 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.001108/0.001108, allocations: 190.5 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7485/0.7485, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 0.4912 GB, free: 7.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3099/0.3112, allocations: 77.93 MB / 0.5673 GB, free: 32.74 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.Resistance): time 0.004312/0.3156, allocations: 3.057 MB / 0.5703 GB, free: 30.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.3175, allocations: 1.322 MB / 0.5716 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.3176, allocations: 4.25 kB / 0.5716 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008744/0.3185, allocations: 328.7 kB / 0.5719 GB, free: 29.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002853/0.3188, allocations: 144.6 kB / 0.572 GB, free: 29.5 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.3191, allocations: 139.1 kB / 0.5722 GB, free: 29.43 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.3194, allocations: 306.5 kB / 0.5724 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004691/0.3199, allocations: 242.1 kB / 0.5727 GB, free: 29.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.32, allocations: 124 kB / 0.5728 GB, free: 29.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.3203, allocations: 136 kB / 0.5729 GB, free: 29.09 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.3204, allocations: 19.06 kB / 0.5729 GB, free: 29.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002773/0.3206, allocations: 168.8 kB / 0.5731 GB, free: 29.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.176e-05/0.3207, allocations: 82.91 kB / 0.5732 GB, free: 29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.3208, allocations: 113.6 kB / 0.5733 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003837/0.3212, allocations: 331.7 kB / 0.5736 GB, free: 28.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3212, allocations: 0.625 kB / 0.5736 GB, free: 28.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3213, allocations: 0.75 kB / 0.5736 GB, free: 28.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.3213, allocations: 6.844 kB / 0.5736 GB, free: 28.82 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006385/0.3219, allocations: 0.5147 MB / 0.5741 GB, free: 28.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.322, allocations: 10.03 kB / 0.5741 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.722e-05/0.322, allocations: 56.34 kB / 0.5742 GB, free: 28.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005595/0.3226, allocations: 75.83 kB / 0.5743 GB, free: 28.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.3228, allocations: 242.7 kB / 0.5745 GB, free: 28.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.3228, allocations: 11.97 kB / 0.5745 GB, free: 28.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.3229, allocations: 21 kB / 0.5745 GB, free: 28.05 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003909/0.3233, allocations: 303.2 kB / 0.5748 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3233, allocations: 2.531 kB / 0.5748 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.3233, allocations: 10.69 kB / 0.5748 GB, free: 27.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.3233, allocations: 20 kB / 0.5748 GB, free: 27.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002843/0.3236, allocations: 194.6 kB / 0.575 GB, free: 27.81 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.3248, allocations: 1.472 MB / 0.5765 GB, free: 26.47 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.325, allocations: 177.4 kB / 0.5766 GB, free: 26.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.171e-05/0.325, allocations: 35.75 kB / 0.5767 GB, free: 26.31 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.3251, allocations: 2.812 kB / 0.5767 GB, free: 26.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.3251, allocations: 32.75 kB / 0.5767 GB, free: 26.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.3251, allocations: 1.844 kB / 0.5767 GB, free: 26.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004053/0.3255, allocations: 222.4 kB / 0.5769 GB, free: 26.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2e-05/0.3255, allocations: 59.23 kB / 0.577 GB, free: 26.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.3257, allocations: 197.3 kB / 0.5772 GB, free: 25.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.947e-06/0.3257, allocations: 29.14 kB / 0.5772 GB, free: 25.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.3258, allocations: 166.2 kB / 0.5773 GB, free: 25.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.3258, allocations: 26.17 kB / 0.5774 GB, free: 25.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.3258, allocations: 34.2 kB / 0.5774 GB, free: 25.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.462e-05/0.3259, allocations: 332.6 kB / 0.5777 GB, free: 25.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.903e-05/0.326, allocations: 33.92 kB / 0.5778 GB, free: 25.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.437e-05/0.326, allocations: 96.94 kB / 0.5778 GB, free: 25.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.3262, allocations: 150.6 kB / 0.578 GB, free: 25.13 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3262, allocations: 1.688 kB / 0.578 GB, free: 25.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002572/0.3264, allocations: 189.5 kB / 0.5782 GB, free: 25.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.3265, allocations: 6.531 kB / 0.5782 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3265, allocations: 3.547 kB / 0.5782 GB, free: 25.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001373/0.3266, allocations: 26.2 kB / 0.5782 GB, free: 25.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.935e-05/0.3267, allocations: 25.78 kB / 0.5782 GB, free: 25.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006765/0.3274, allocations: 1.431 MB / 0.5796 GB, free: 23.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.3275, allocations: 22 kB / 0.5796 GB, free: 23.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3275, allocations: 7.531 kB / 0.5797 GB, free: 23.57 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.133e-05/0.3276, allocations: 147.9 kB / 0.5798 GB, free: 23.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.3277, allocations: 11.22 kB / 0.5798 GB, free: 23.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.3277, allocations: 16.67 kB / 0.5798 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.3277, allocations: 2.188 kB / 0.5798 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.3277, allocations: 0 / 0.5798 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3277, allocations: 1.734 kB / 0.5798 GB, free: 23.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003973/0.3281, allocations: 454.5 kB / 0.5803 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3282, allocations: 0 / 0.5803 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.506e-05/0.3282, allocations: 11.47 kB / 0.5803 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-05/0.3283, allocations: 24.3 kB / 0.5803 GB, free: 23.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.3283, allocations: 6.094 kB / 0.5803 GB, free: 23.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005833/0.3289, allocations: 1.416 MB / 0.5817 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3289, allocations: 0 / 0.5817 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001643/0.3291, allocations: 209.8 kB / 0.5819 GB, free: 21.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.3291, allocations: 98.3 kB / 0.582 GB, free: 21.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.3292, allocations: 1.75 kB / 0.582 GB, free: 21.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.3293, allocations: 5.984 kB / 0.582 GB, free: 21.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.3293, allocations: 10.77 kB / 0.582 GB, free: 21.34 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.3293, allocations: 0 / 0.582 GB, free: 21.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.794e-05/0.3294, allocations: 146.8 kB / 0.5821 GB, free: 21.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3294, allocations: 0.7188 kB / 0.5821 GB, free: 21.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.3297, allocations: 52.91 kB / 0.5822 GB, free: 21.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003001/0.33, allocations: 0.7498 MB / 0.5829 GB, free: 20.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.3303, allocations: 214.2 kB / 0.5831 GB, free: 20.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3303, allocations: 192 / 0.5831 GB, free: 20.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.3305, allocations: 149.6 kB / 0.5833 GB, free: 20.26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.3308, allocations: 45.67 kB / 0.5833 GB, free: 20.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.3324, allocations: 2.03 MB / 0.5853 GB, free: 18.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.3326, allocations: 0.7536 MB / 0.586 GB, free: 17.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.537e-05/0.3327, allocations: 21.42 kB / 0.586 GB, free: 17.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.028e-05/0.3328, allocations: 51.8 kB / 0.5861 GB, free: 17.88 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.3328, allocations: 0 / 0.5861 GB, free: 17.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.3535, allocations: 3.63 MB / 0.5896 GB, free: 16.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.771/9.124, allocations: 1.984 kB / 0.5896 GB, free: 16.29 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance.fmu > IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)