Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",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.001067/0.001067, allocations: 103 kB / 16.27 MB, free: 5.961 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.001179/0.001179, allocations: 189.8 kB / 17.2 MB, free: 5.59 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.276/1.276, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7187/0.7187, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.89 kB / 0.4912 GB, free: 7.328 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2998, allocations: 77.93 MB / 0.5673 GB, free: 32.72 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Loads.Examples.Resistor): time 0.004587/0.3045, allocations: 3.81 MB / 0.571 GB, free: 30.15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.3067, allocations: 1.74 MB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/0.307, allocations: 10.75 kB / 0.5727 GB, free: 28.95 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.3082, allocations: 490 kB / 0.5732 GB, free: 28.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004884/0.3087, allocations: 214.8 kB / 0.5734 GB, free: 28.54 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005859/0.3093, allocations: 209.6 kB / 0.5736 GB, free: 28.44 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.3098, allocations: 478.6 kB / 0.574 GB, free: 28.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000583/0.3104, allocations: 369.8 kB / 0.5744 GB, free: 28.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.3107, allocations: 188.3 kB / 0.5746 GB, free: 28.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003585/0.311, allocations: 219.6 kB / 0.5748 GB, free: 27.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.208e-05/0.3111, allocations: 28.81 kB / 0.5748 GB, free: 27.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000495/0.3116, allocations: 237.3 kB / 0.575 GB, free: 27.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.3118, allocations: 135.7 kB / 0.5752 GB, free: 27.78 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.3119, allocations: 171 kB / 0.5753 GB, free: 27.68 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.3127, allocations: 0.4935 MB / 0.5758 GB, free: 27.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3127, allocations: 0 / 0.5758 GB, free: 27.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.3127, allocations: 0.6562 kB / 0.5758 GB, free: 27.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.3127, allocations: 5.781 kB / 0.5758 GB, free: 27.51 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009875/0.3137, allocations: 0.6324 MB / 0.5764 GB, free: 26.99 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.3138, allocations: 11.17 kB / 0.5764 GB, free: 26.99 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/0.3139, allocations: 65.94 kB / 0.5765 GB, free: 26.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009577/0.3148, allocations: 136.1 kB / 0.5766 GB, free: 26.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.3152, allocations: 292.1 kB / 0.5769 GB, free: 26.65 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.3152, allocations: 21.69 kB / 0.5769 GB, free: 26.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.3153, allocations: 28.41 kB / 0.577 GB, free: 26.63 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.3159, allocations: 464.1 kB / 0.5774 GB, free: 26.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.3159, allocations: 5.25 kB / 0.5774 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/0.316, allocations: 11.91 kB / 0.5774 GB, free: 26.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.46e-05/0.316, allocations: 32.06 kB / 0.5775 GB, free: 26.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.3164, allocations: 321.2 kB / 0.5778 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.3181, allocations: 2.191 MB / 0.5799 GB, free: 24.34 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003402/0.3185, allocations: 258.6 kB / 0.5801 GB, free: 24.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.3187, allocations: 110 kB / 0.5803 GB, free: 24.13 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.3187, allocations: 2.094 kB / 0.5803 GB, free: 24.13 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.661e-05/0.3188, allocations: 41.25 kB / 0.5803 GB, free: 24.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.3188, allocations: 0 / 0.5803 GB, free: 24.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005583/0.3193, allocations: 293.8 kB / 0.5806 GB, free: 23.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.474e-05/0.3194, allocations: 53.38 kB / 0.5806 GB, free: 23.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.3196, allocations: 272.6 kB / 0.5809 GB, free: 23.67 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.3196, allocations: 32.06 kB / 0.5809 GB, free: 23.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3198, allocations: 207.9 kB / 0.5811 GB, free: 23.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.3198, allocations: 55.17 kB / 0.5812 GB, free: 23.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.3199, allocations: 53.25 kB / 0.5812 GB, free: 23.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.3199, allocations: 335 kB / 0.5815 GB, free: 23.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.198e-05/0.32, allocations: 54.88 kB / 0.5816 GB, free: 23.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.3202, allocations: 149.9 kB / 0.5817 GB, free: 22.91 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002062/0.3204, allocations: 216.5 kB / 0.5819 GB, free: 22.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3204, allocations: 0 / 0.5819 GB, free: 22.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003822/0.3208, allocations: 264.8 kB / 0.5822 GB, free: 22.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.3208, allocations: 8.031 kB / 0.5822 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3208, allocations: 6.125 kB / 0.5822 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001487/0.321, allocations: 27.62 kB / 0.5822 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.3211, allocations: 48.42 kB / 0.5823 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007079/0.3219, allocations: 1.422 MB / 0.5837 GB, free: 21.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.322, allocations: 29.44 kB / 0.5837 GB, free: 21.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.3221, allocations: 9 kB / 0.5837 GB, free: 21.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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 0.000126/0.3222, allocations: 170.7 kB / 0.5839 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.3222, allocations: 24.12 kB / 0.5839 GB, free: 20.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.3223, allocations: 28.2 kB / 0.5839 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3223, allocations: 2.5 kB / 0.5839 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3223, allocations: 0 / 0.5839 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3223, allocations: 2.188 kB / 0.5839 GB, free: 20.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00068/0.323, allocations: 0.7017 MB / 0.5846 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.323, allocations: 2.344 kB / 0.5846 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.962e-05/0.3231, allocations: 26.39 kB / 0.5846 GB, free: 20.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-05/0.3232, allocations: 30.69 kB / 0.5847 GB, free: 20.28 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.3232, allocations: 6.438 kB / 0.5847 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006067/0.3238, allocations: 1.425 MB / 0.5861 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3238, allocations: 5.906 kB / 0.5861 GB, free: 18.81 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.3241, allocations: 315.6 kB / 0.5864 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.355e-05/0.3242, allocations: 117.2 kB / 0.5865 GB, free: 18.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.3242, allocations: 2.25 kB / 0.5865 GB, free: 18.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.3244, allocations: 14.67 kB / 0.5865 GB, free: 18.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.787e-05/0.3244, allocations: 14.77 kB / 0.5865 GB, free: 18.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.3244, allocations: 4.688 kB / 0.5865 GB, free: 18.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.3245, allocations: 192.6 kB / 0.5867 GB, free: 18.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3245, allocations: 0 / 0.5867 GB, free: 18.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000407/0.325, allocations: 88.25 kB / 0.5868 GB, free: 18.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0004334/0.3254, allocations: 0.8479 MB / 0.5876 GB, free: 17.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004009/0.3258, allocations: 274.2 kB / 0.5879 GB, free: 17.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3258, allocations: 9.5 kB / 0.5879 GB, free: 17.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.326, allocations: 183 kB / 0.5881 GB, free: 17.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.3265, allocations: 62.83 kB / 0.5881 GB, free: 17.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.3287, allocations: 2.711 MB / 0.5908 GB, free: 14.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.3289, allocations: 0.8009 MB / 0.5915 GB, free: 14.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001393/0.3291, allocations: 40.55 kB / 0.5916 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.141e-05/0.3292, allocations: 83.62 kB / 0.5917 GB, free: 14.04 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3292, allocations: 0 / 0.5917 GB, free: 14.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.3508, allocations: 5.265 MB / 0.5968 GB, free: 11.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.071/9.422, allocations: 1.688 kB / 0.5968 GB, free: 11.48 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor_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_Loads_Examples_Resistor.fmu > IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)