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.001247/0.001247, allocations: 109.4 kB / 15.69 MB, free: 128 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.00135/0.001349, allocations: 186.6 kB / 16.62 MB, free: 6.582 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.448/1.448, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.686/1.686, allocations: 292.3 MB / 0.549 GB, free: 12.73 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.001357/0.001358, allocations: 73.38 kB / 0.6718 GB, free: 26.14 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2357, allocations: 114.6 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005465/0.2412, allocations: 3.821 MB / 0.7874 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002546/0.2437, allocations: 1.73 MB / 0.789 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.2439, allocations: 8 kB / 0.7891 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.2453, allocations: 498 kB / 0.7895 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004677/0.2457, allocations: 226.9 kB / 0.7897 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.2462, allocations: 203.5 kB / 0.7899 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004631/0.2467, allocations: 474.4 kB / 0.7904 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005203/0.2472, allocations: 369.4 kB / 0.7907 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.2474, allocations: 191.4 kB / 0.7909 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.2477, allocations: 211.2 kB / 0.7911 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.2478, allocations: 28 kB / 0.7912 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.2481, allocations: 243.4 kB / 0.7914 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.2483, allocations: 127.7 kB / 0.7915 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.2484, allocations: 179.1 kB / 0.7917 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004839/0.2489, allocations: 0.4984 MB / 0.7922 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2489, allocations: 0 / 0.7922 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2489, allocations: 0 / 0.7922 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.2489, allocations: 0 / 0.7922 GB, free: 4.48 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.0009418/0.2499, allocations: 0.6276 MB / 0.7928 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.2499, allocations: 15.97 kB / 0.7928 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.876e-05/0.25, allocations: 70.72 kB / 0.7929 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008485/0.2509, allocations: 140.3 kB / 0.793 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000346/0.2512, allocations: 291.6 kB / 0.7933 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.2513, allocations: 25.03 kB / 0.7933 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.2513, allocations: 28.36 kB / 0.7933 GB, free: 3.199 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.2519, allocations: 467.7 kB / 0.7938 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2519, allocations: 0 / 0.7938 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.252, allocations: 15.98 kB / 0.7938 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.252, allocations: 36.47 kB / 0.7938 GB, free: 2.652 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004488/0.2525, allocations: 321.9 kB / 0.7941 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.2544, allocations: 2.173 MB / 0.7963 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.2548, allocations: 251.8 kB / 0.7965 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.255, allocations: 111.9 kB / 0.7966 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 9.908e-06/0.255, allocations: 4 kB / 0.7966 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.2551, allocations: 34.55 kB / 0.7966 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.2551, allocations: 0 / 0.7966 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of matching and sorting (n=14): time 0.0005406/0.2556, allocations: 303.2 kB / 0.7969 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.2557, allocations: 51.41 kB / 0.797 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.2559, allocations: 270.5 kB / 0.7972 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.256, allocations: 33.7 kB / 0.7973 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.2561, allocations: 207.7 kB / 0.7975 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.2561, allocations: 43.36 kB / 0.7975 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.2562, allocations: 49.94 kB / 0.7976 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2563, allocations: 338.8 kB / 0.7979 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.94e-05/0.2564, allocations: 56.44 kB / 0.7979 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.2565, allocations: 149.4 kB / 0.7981 GB, free: 13.93 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.2568, allocations: 211 kB / 0.7983 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.2568, allocations: 4 kB / 0.7983 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003841/0.2572, allocations: 272.9 kB / 0.7985 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2572, allocations: 8 kB / 0.7985 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2572, allocations: 0 / 0.7985 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.2574, allocations: 28.84 kB / 0.7986 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.2576, allocations: 44.3 kB / 0.7986 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.2586, allocations: 1.426 MB / 0.8 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/0.2588, allocations: 27.69 kB / 0.8 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.2588, allocations: 19.97 kB / 0.8001 GB, free: 11.72 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.0001468/0.259, allocations: 169.7 kB / 0.8002 GB, free: 11.54 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.708e-05/0.259, allocations: 27.66 kB / 0.8002 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.2591, allocations: 25.84 kB / 0.8003 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.2591, allocations: 3.984 kB / 0.8003 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.2591, allocations: 4.125 kB / 0.8003 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2591, allocations: 7.938 kB / 0.8003 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008057/0.2599, allocations: 0.6987 MB / 0.801 GB, free: 10.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.2599, allocations: 8.031 kB / 0.801 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.196e-05/0.26, allocations: 23.98 kB / 0.801 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.762e-05/0.2601, allocations: 28.72 kB / 0.801 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.2601, allocations: 8 kB / 0.801 GB, free: 10.62 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009223/0.261, allocations: 1.41 MB / 0.8024 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.2611, allocations: 0 / 0.8024 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.2614, allocations: 321.2 kB / 0.8027 GB, free: 8.719 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.092e-05/0.2615, allocations: 112.8 kB / 0.8028 GB, free: 8.59 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.2615, allocations: 8 kB / 0.8028 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.2617, allocations: 15.98 kB / 0.8028 GB, free: 8.566 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.2617, allocations: 15.92 kB / 0.8029 GB, free: 8.551 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.2617, allocations: 8 kB / 0.8029 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001629/0.2619, allocations: 190 kB / 0.803 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.2619, allocations: 0 / 0.803 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000372/0.2623, allocations: 79.75 kB / 0.8031 GB, free: 8.281 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.000564/0.2629, allocations: 0.8506 MB / 0.804 GB, free: 7.379 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004256/0.2633, allocations: 270.4 kB / 0.8042 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2633, allocations: 0.75 kB / 0.8042 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.2635, allocations: 186.5 kB / 0.8044 GB, free: 6.906 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004578/0.264, allocations: 62.14 kB / 0.8044 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002764/0.2668, allocations: 2.71 MB / 0.8071 GB, free: 3.945 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.2671, allocations: 0.7948 MB / 0.8079 GB, free: 3.121 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000134/0.2673, allocations: 46.25 kB / 0.8079 GB, free: 3.078 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.2674, allocations: 83.41 kB / 0.808 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of SimCode: time 3.81e-07/0.2674, allocations: 4 kB / 0.808 GB, free: 2.992 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.2947, allocations: 5.298 MB / 0.8132 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.107/9.401, allocations: 11.61 kB / 0.8132 GB, free: 13.8 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)