Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 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.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="Buildings_8_Buildings_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.001216/0.001216, 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.001306/0.001306, allocations: 192.7 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.547/1.547, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.74/1.74, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001486/0.001486, allocations: 70.41 kB / 0.6716 GB, free: 26.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2375, allocations: 114.5 MB / 0.7835 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005705/0.2432, allocations: 3.826 MB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.2461, allocations: 1.723 MB / 0.7889 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.2462, allocations: 8 kB / 0.7889 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.2475, allocations: 0.4902 MB / 0.7894 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005251/0.2481, allocations: 226.9 kB / 0.7896 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.2486, allocations: 206.4 kB / 0.7898 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004574/0.2491, allocations: 478.4 kB / 0.7902 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005499/0.2497, allocations: 365.3 kB / 0.7906 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.2499, allocations: 187.4 kB / 0.7908 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/0.2502, allocations: 219.2 kB / 0.791 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.2503, allocations: 28 kB / 0.791 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004069/0.2507, allocations: 243.4 kB / 0.7912 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.2508, allocations: 123.7 kB / 0.7914 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001635/0.251, allocations: 179.1 kB / 0.7915 GB, free: 5.113 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005114/0.2515, allocations: 498.5 kB / 0.792 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2515, allocations: 0 / 0.792 GB, free: 4.625 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2515, allocations: 4 kB / 0.792 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.2515, allocations: 0 / 0.792 GB, free: 4.621 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009658/0.2525, allocations: 0.6276 MB / 0.7926 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.2526, allocations: 8.031 kB / 0.7926 GB, free: 3.938 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.725e-05/0.2527, allocations: 70.72 kB / 0.7927 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008991/0.2536, allocations: 144.3 kB / 0.7928 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.2539, allocations: 287.6 kB / 0.7931 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.254, allocations: 21.03 kB / 0.7931 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.809e-05/0.254, allocations: 28.36 kB / 0.7932 GB, free: 3.352 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.2547, allocations: 463.7 kB / 0.7936 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.2547, allocations: 3.938 kB / 0.7936 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.2547, allocations: 15.98 kB / 0.7936 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.715e-05/0.2548, allocations: 32.55 kB / 0.7936 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.2553, allocations: 321.9 kB / 0.794 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.2574, allocations: 2.181 MB / 0.7961 GB, free: 104 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.2577, allocations: 255.8 kB / 0.7963 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.258, allocations: 108.7 kB / 0.7964 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.258, allocations: 4 kB / 0.7964 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.258, allocations: 42.5 kB / 0.7965 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.2581, allocations: 0 / 0.7965 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of matching and sorting (n=14): time 0.0005453/0.2586, allocations: 295.3 kB / 0.7968 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.2586, allocations: 51.41 kB / 0.7968 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.2589, allocations: 270.5 kB / 0.7971 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.2589, allocations: 33.7 kB / 0.7971 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2591, allocations: 215.7 kB / 0.7973 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.2591, allocations: 47.36 kB / 0.7973 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.105e-05/0.2592, allocations: 45.94 kB / 0.7974 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2593, allocations: 334.8 kB / 0.7977 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2595, allocations: 56.5 kB / 0.7978 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.2596, allocations: 145.2 kB / 0.7979 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.2599, allocations: 218.1 kB / 0.7981 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2599, allocations: 4 kB / 0.7981 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004013/0.2603, allocations: 269.8 kB / 0.7984 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.2604, allocations: 8 kB / 0.7984 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.2604, allocations: 0 / 0.7984 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001522/0.2605, allocations: 33.22 kB / 0.7984 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.2607, allocations: 47.91 kB / 0.7985 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001069/0.2618, allocations: 1.426 MB / 0.7998 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.262, allocations: 27.69 kB / 0.7999 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.429e-05/0.262, allocations: 8 kB / 0.7999 GB, free: 11.86 MB / 0.6231 GB 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.000148/0.2621, allocations: 173.7 kB / 0.8 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.665e-05/0.2622, allocations: 23.72 kB / 0.8001 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.795e-05/0.2622, allocations: 29.83 kB / 0.8001 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2623, allocations: 4 kB / 0.8001 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.2623, allocations: 0 / 0.8001 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2623, allocations: 0 / 0.8001 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008505/0.2631, allocations: 0.7102 MB / 0.8008 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2631, allocations: 4 kB / 0.8008 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.291e-05/0.2632, allocations: 16 kB / 0.8008 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.79e-05/0.2633, allocations: 28.97 kB / 0.8008 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.2633, allocations: 11.98 kB / 0.8009 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000958/0.2643, allocations: 1.414 MB / 0.8022 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2643, allocations: 0 / 0.8022 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.2646, allocations: 323.3 kB / 0.8025 GB, free: 8.863 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.2647, allocations: 116.7 kB / 0.8027 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.2648, allocations: 8 kB / 0.8027 GB, free: 8.723 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.2649, allocations: 8 kB / 0.8027 GB, free: 8.715 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.265, allocations: 23.86 kB / 0.8027 GB, free: 8.691 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.265, allocations: 8 kB / 0.8027 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001718/0.2652, allocations: 190 kB / 0.8029 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2652, allocations: 0 / 0.8029 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003924/0.2656, allocations: 79.75 kB / 0.803 GB, free: 8.422 MB / 0.6231 GB 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.0005845/0.2662, allocations: 0.853 MB / 0.8038 GB, free: 7.52 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00043/0.2666, allocations: 274.5 kB / 0.804 GB, free: 7.238 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2666, allocations: 0 / 0.804 GB, free: 7.238 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.2668, allocations: 179.7 kB / 0.8042 GB, free: 7.051 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.2673, allocations: 70.88 kB / 0.8043 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.2705, allocations: 2.733 MB / 0.807 GB, free: 4.07 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.271, allocations: 0.7946 MB / 0.8077 GB, free: 3.246 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001529/0.2712, allocations: 42.27 kB / 0.8078 GB, free: 3.203 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.2713, allocations: 83.41 kB / 0.8079 GB, free: 3.121 MB / 0.6231 GB Notification: Performance of SimCode: time 4.51e-07/0.2713, allocations: 0 / 0.8079 GB, free: 3.121 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.2975, allocations: 5.272 MB / 0.813 GB, free: 13.96 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.329/9.626, allocations: 8.984 kB / 0.813 GB, free: 13.95 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_DC_Loads_Examples_Resistor.fmu > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)