Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",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.006029/0.006029, allocations: 99.2 kB / 15.73 MB, free: 6.445 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.001464/0.001465, allocations: 194.4 kB / 16.67 MB, free: 6.348 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 71.88 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2697, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006088/0.2759, allocations: 4.095 MB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002695/0.2786, allocations: 1.593 MB / 1.172 GB, free: 1.594 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.2788, allocations: 11.94 kB / 1.172 GB, free: 1.582 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.2805, allocations: 0.5797 MB / 1.172 GB, free: 1 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0006091/0.2812, allocations: 242.8 kB / 1.173 GB, free: 0.7617 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005365/0.2817, allocations: 215.5 kB / 1.173 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0006478/0.2824, allocations: 0.5413 MB / 1.173 GB, free: 8 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007128/0.2831, allocations: 478 kB / 1.174 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.2834, allocations: 223.3 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003873/0.2837, allocations: 259 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.2838, allocations: 32 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.2841, allocations: 167.7 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.2843, allocations: 147.6 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000188/0.2844, allocations: 195.1 kB / 1.175 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.285, allocations: 0.5253 MB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.285, allocations: 4 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2851, allocations: 0 / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.2851, allocations: 0 / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001135/0.2862, allocations: 0.686 MB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2863, allocations: 12.03 kB / 1.176 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.92e-05/0.2863, allocations: 82.7 kB / 1.176 GB, free: 13.17 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006727/0.287, allocations: 96.62 kB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.2874, allocations: 311.7 kB / 1.176 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-05/0.2875, allocations: 55.27 kB / 1.176 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.307e-05/0.2876, allocations: 40.36 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008183/0.2884, allocations: 0.4968 MB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.2884, allocations: 7.875 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.2885, allocations: 12 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.027e-05/0.2885, allocations: 36.98 kB / 1.177 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007279/0.2893, allocations: 379.7 kB / 1.177 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002495/0.2918, allocations: 2.224 MB / 1.18 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006772/0.2925, allocations: 250.7 kB / 1.18 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.2928, allocations: 148.8 kB / 1.18 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.2929, allocations: 3.984 kB / 1.18 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.2929, allocations: 46.5 kB / 1.18 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 1.482e-06/0.2929, allocations: 0 / 1.18 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.001492/0.2944, allocations: 0.5694 MB / 1.18 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.2944, allocations: 51.41 kB / 1.181 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.2947, allocations: 229 kB / 1.181 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.2947, allocations: 29.7 kB / 1.181 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.2948, allocations: 216.2 kB / 1.181 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.116e-05/0.2949, allocations: 67.38 kB / 1.181 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.295, allocations: 61.64 kB / 1.181 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.2951, allocations: 330.8 kB / 1.181 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.2954, allocations: 96.8 kB / 1.182 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002984/0.2957, allocations: 180.6 kB / 1.182 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004936/0.2962, allocations: 269.2 kB / 1.182 GB, free: 6.535 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2962, allocations: 11.94 kB / 1.182 GB, free: 6.523 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008767/0.2971, allocations: 377.2 kB / 1.182 GB, free: 6.145 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2971, allocations: 8 kB / 1.182 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2971, allocations: 0 / 1.182 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004932/0.2976, allocations: 109.7 kB / 1.182 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.2978, allocations: 55.84 kB / 1.182 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.301, allocations: 3.052 MB / 1.185 GB, free: 2.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.3013, allocations: 31.78 kB / 1.186 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.3013, allocations: 12.08 kB / 1.186 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003233/0.3016, allocations: 228 kB / 1.186 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002607/0.3019, allocations: 175.5 kB / 1.186 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004738/0.3024, allocations: 275.6 kB / 1.186 GB, free: 1.848 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.3024, allocations: 3.938 kB / 1.186 GB, free: 1.844 MB / 0.9356 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007731/0.3032, allocations: 349.9 kB / 1.186 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3032, allocations: 8 kB / 1.187 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-06/0.3032, allocations: 0 / 1.187 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003106/0.3035, allocations: 81.09 kB / 1.187 GB, free: 1.402 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.3037, allocations: 55.91 kB / 1.187 GB, free: 1.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/0.3057, allocations: 1.618 MB / 1.188 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.306, allocations: 31.81 kB / 1.188 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.306, allocations: 12 kB / 1.188 GB, free: 15.55 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.3062, allocations: 196.3 kB / 1.188 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.3062, allocations: 23.86 kB / 1.188 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.441e-05/0.3063, allocations: 30.17 kB / 1.188 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3063, allocations: 0 / 1.188 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3063, allocations: 3.938 kB / 1.189 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3063, allocations: 0 / 1.189 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.3076, allocations: 0.8368 MB / 1.189 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.3077, allocations: 0 / 1.189 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.3078, allocations: 39.92 kB / 1.189 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003735/0.3082, allocations: 105.8 kB / 1.189 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.3082, allocations: 4 kB / 1.189 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.3112, allocations: 3.028 MB / 1.192 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.3112, allocations: 4.156 kB / 1.192 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000766/0.312, allocations: 426.8 kB / 1.193 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.3121, allocations: 112.9 kB / 1.193 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.3121, allocations: 7.984 kB / 1.193 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3123, allocations: 8 kB / 1.193 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.3124, allocations: 19.97 kB / 1.193 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.3124, allocations: 8 kB / 1.193 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001384/0.3125, allocations: 164.5 kB / 1.193 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3126, allocations: 0 / 1.193 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006109/0.3132, allocations: 175.5 kB / 1.193 GB, free: 9.965 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.3142, allocations: 0.942 MB / 1.194 GB, free: 8.984 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001897/0.3161, allocations: 0.7677 MB / 1.195 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3161, allocations: 0 / 1.195 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0007915/0.3169, allocations: 365.7 kB / 1.195 GB, free: 7.797 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.3174, allocations: 71.12 kB / 1.195 GB, free: 7.723 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.3214, allocations: 2.843 MB / 1.198 GB, free: 4.719 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.3218, allocations: 0.8068 MB / 1.199 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001806/0.322, allocations: 58.25 kB / 1.199 GB, free: 3.824 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.3221, allocations: 99.33 kB / 1.199 GB, free: 3.73 MB / 0.9512 GB Notification: Performance of SimCode: time 4.01e-07/0.3222, allocations: 0 / 1.199 GB, free: 3.73 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04414/0.3663, allocations: 7.362 MB / 1.206 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.53, allocations: 10.58 kB / 1.206 GB, free: 12.52 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)