Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_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.001486/0.001486, 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.00199/0.00199, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.563/1.563, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.734/1.734, allocations: 292.3 MB / 0.5489 GB, free: 12.83 MB / 462.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.001734/0.001734, allocations: 76.83 kB / 0.6716 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2871, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005608/0.2927, allocations: 3.065 MB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002313/0.295, allocations: 1.325 MB / 0.7878 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002679/0.2953, allocations: 4 kB / 0.7878 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.2964, allocations: 337.6 kB / 0.7881 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.2968, allocations: 147.2 kB / 0.7882 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003836/0.2972, allocations: 135.7 kB / 0.7884 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.2975, allocations: 306.9 kB / 0.7886 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.2979, allocations: 232.5 kB / 0.7889 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.2981, allocations: 123.5 kB / 0.789 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.2984, allocations: 139.5 kB / 0.7891 GB, free: 7.57 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.2984, allocations: 16 kB / 0.7891 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003366/0.2987, allocations: 171.6 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.985e-05/0.2988, allocations: 83.78 kB / 0.7894 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.299, allocations: 111.5 kB / 0.7895 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004032/0.2994, allocations: 319.1 kB / 0.7898 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.2994, allocations: 3.984 kB / 0.7898 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2994, allocations: 0 / 0.7898 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.878e-06/0.2994, allocations: 0 / 0.7898 GB, free: 6.879 MB / 0.6075 GB 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.0008126/0.3002, allocations: 0.5147 MB / 0.7903 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3003, allocations: 15.97 kB / 0.7903 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.232e-05/0.3004, allocations: 54.73 kB / 0.7904 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000559/0.3009, allocations: 76.58 kB / 0.7904 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.3012, allocations: 243.9 kB / 0.7907 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.3013, allocations: 16.75 kB / 0.7907 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.3013, allocations: 24.36 kB / 0.7907 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004411/0.3017, allocations: 306.8 kB / 0.791 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.3018, allocations: 0 / 0.791 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.3018, allocations: 8 kB / 0.791 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.3018, allocations: 20.3 kB / 0.791 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/0.3021, allocations: 197 kB / 0.7912 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.3036, allocations: 1.468 MB / 0.7927 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.3039, allocations: 187.6 kB / 0.7928 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.662e-05/0.3039, allocations: 28.84 kB / 0.7929 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.3039, allocations: 4 kB / 0.7929 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.304, allocations: 30.56 kB / 0.7929 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.304, allocations: 0 / 0.7929 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004888/0.3045, allocations: 227.5 kB / 0.7931 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.3045, allocations: 51.41 kB / 0.7932 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3047, allocations: 200.1 kB / 0.7933 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.3048, allocations: 29.7 kB / 0.7934 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.3049, allocations: 163.8 kB / 0.7935 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.3049, allocations: 27.64 kB / 0.7936 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/0.305, allocations: 33.72 kB / 0.7936 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3051, allocations: 334.8 kB / 0.7939 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.3052, allocations: 35.98 kB / 0.7939 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.3053, allocations: 99.28 kB / 0.794 GB, free: 2.109 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.3055, allocations: 144.4 kB / 0.7942 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3055, allocations: 8 kB / 0.7942 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003082/0.3058, allocations: 182.2 kB / 0.7944 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3059, allocations: 7.984 kB / 0.7944 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3059, allocations: 4 kB / 0.7944 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/0.306, allocations: 29.12 kB / 0.7944 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3062, allocations: 27.94 kB / 0.7944 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.3073, allocations: 1.423 MB / 0.7958 GB, free: 104 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.3074, allocations: 15.78 kB / 0.7958 GB, free: 88 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.3074, allocations: 8 kB / 0.7958 GB, free: 80 kB / 0.6075 GB 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 0.000151/0.3076, allocations: 149.8 kB / 0.796 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.3077, allocations: 19.81 kB / 0.796 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.3077, allocations: 21.39 kB / 0.796 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.3077, allocations: 0 / 0.796 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3077, allocations: 0 / 0.796 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3077, allocations: 0 / 0.796 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000518/0.3082, allocations: 455.2 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3082, allocations: 7.938 kB / 0.7965 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.727e-05/0.3083, allocations: 8 kB / 0.7965 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.826e-05/0.3084, allocations: 28.78 kB / 0.7965 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.3084, allocations: 0 / 0.7965 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.3095, allocations: 1.41 MB / 0.7979 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3095, allocations: 3.938 kB / 0.7979 GB, free: 13.79 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/0.3097, allocations: 216.2 kB / 0.7981 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.074e-05/0.3098, allocations: 92.91 kB / 0.7982 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.3098, allocations: 8 kB / 0.7982 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.31, allocations: 0 / 0.7982 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.31, allocations: 4 kB / 0.7982 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.31, allocations: 4 kB / 0.7982 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001346/0.3101, allocations: 147 kB / 0.7983 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3102, allocations: 0 / 0.7983 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000337/0.3105, allocations: 51.84 kB / 0.7984 GB, free: 13.23 MB / 0.6231 GB 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.0005211/0.311, allocations: 0.756 MB / 0.7991 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004234/0.3115, allocations: 210.8 kB / 0.7993 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3115, allocations: 8 kB / 0.7993 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.3116, allocations: 146.6 kB / 0.7995 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.312, allocations: 40.03 kB / 0.7995 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.3142, allocations: 2.048 MB / 0.8015 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.3146, allocations: 0.7475 MB / 0.8022 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001003/0.3147, allocations: 25.92 kB / 0.8023 GB, free: 9.039 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.3148, allocations: 51.42 kB / 0.8023 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of SimCode: time 9.11e-07/0.3148, allocations: 0 / 0.8023 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.3442, allocations: 3.624 MB / 0.8058 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.282/9.627, allocations: 14.62 kB / 0.8059 GB, free: 5.461 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)