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.001142/0.001142, 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.001046/0.001046, allocations: 189.7 kB / 16.62 MB, free: 6.613 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.341/1.341, allocations: 205.1 MB / 222.5 MB, free: 4.551 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.636/1.636, allocations: 292.3 MB / 0.549 GB, free: 12.69 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.0024/0.0024, allocations: 65.97 kB / 0.6718 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2392, allocations: 114.6 MB / 0.7836 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.006829/0.2461, allocations: 3.07 MB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003058/0.2491, allocations: 1.325 MB / 0.7879 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.2496, allocations: 4 kB / 0.7879 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001398/0.251, allocations: 334.7 kB / 0.7882 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006095/0.2516, allocations: 143.2 kB / 0.7884 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005451/0.2522, allocations: 134.4 kB / 0.7885 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005734/0.2527, allocations: 310.9 kB / 0.7888 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005698/0.2533, allocations: 236.5 kB / 0.789 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002758/0.2536, allocations: 127.5 kB / 0.7891 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004521/0.2541, allocations: 143.4 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.635e-05/0.2541, allocations: 16 kB / 0.7893 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000461/0.2546, allocations: 171.6 kB / 0.7895 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.2548, allocations: 79.8 kB / 0.7895 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001673/0.2549, allocations: 107.5 kB / 0.7896 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007167/0.2557, allocations: 327 kB / 0.79 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2557, allocations: 0 / 0.79 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.804e-06/0.2557, allocations: 0 / 0.79 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.2557, allocations: 4 kB / 0.79 GB, free: 6.707 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.001219/0.257, allocations: 0.5224 MB / 0.7905 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.257, allocations: 8.031 kB / 0.7905 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.9e-05/0.2571, allocations: 58.73 kB / 0.7905 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008113/0.2579, allocations: 80.58 kB / 0.7906 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.2583, allocations: 247.9 kB / 0.7908 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.2584, allocations: 12.75 kB / 0.7909 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.2584, allocations: 16.38 kB / 0.7909 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.2591, allocations: 302.8 kB / 0.7912 GB, free: 5.352 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.2591, allocations: 4 kB / 0.7912 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.2592, allocations: 15.98 kB / 0.7912 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.732e-05/0.2592, allocations: 16.36 kB / 0.7912 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004558/0.2597, allocations: 196.9 kB / 0.7914 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.2618, allocations: 1.464 MB / 0.7928 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.2621, allocations: 175.7 kB / 0.793 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.632e-05/0.2622, allocations: 36.84 kB / 0.793 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.2622, allocations: 0 / 0.793 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.2623, allocations: 30.56 kB / 0.793 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.2623, allocations: 0 / 0.793 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0006002/0.2629, allocations: 227.6 kB / 0.7933 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.2629, allocations: 51.41 kB / 0.7933 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.2632, allocations: 208.1 kB / 0.7935 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.2632, allocations: 29.7 kB / 0.7935 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.2634, allocations: 159.6 kB / 0.7937 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.2634, allocations: 27.64 kB / 0.7937 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/0.2635, allocations: 33.7 kB / 0.7937 GB, free: 2.438 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001525/0.2637, allocations: 330.8 kB / 0.7941 GB, free: 2.105 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.2639, allocations: 31.98 kB / 0.7941 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.264, allocations: 109.3 kB / 0.7942 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002871/0.2643, allocations: 148.4 kB / 0.7943 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2643, allocations: 0 / 0.7943 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000472/0.2648, allocations: 186.2 kB / 0.7945 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2648, allocations: 8 kB / 0.7945 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2649, allocations: 4 kB / 0.7945 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.265, allocations: 24.84 kB / 0.7946 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.2652, allocations: 23.94 kB / 0.7946 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.2668, allocations: 1.419 MB / 0.796 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.2669, allocations: 23.94 kB / 0.796 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.267, allocations: 4 kB / 0.796 GB, free: 15.91 MB / 0.6231 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.0001749/0.2671, allocations: 149.7 kB / 0.7961 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.2672, allocations: 19.75 kB / 0.7961 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000117/0.2673, allocations: 21.39 kB / 0.7962 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2673, allocations: 4 kB / 0.7962 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.2674, allocations: 4.062 kB / 0.7962 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.2674, allocations: 4 kB / 0.7962 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008418/0.2682, allocations: 447.1 kB / 0.7966 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2682, allocations: 48 / 0.7966 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-05/0.2683, allocations: 15.92 kB / 0.7966 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.992e-05/0.2684, allocations: 24.84 kB / 0.7966 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2684, allocations: 0 / 0.7966 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.2699, allocations: 1.406 MB / 0.798 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2699, allocations: 160 / 0.798 GB, free: 13.63 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002871/0.2702, allocations: 212.2 kB / 0.7982 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.798e-05/0.2703, allocations: 100.9 kB / 0.7983 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.2703, allocations: 0 / 0.7983 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.2705, allocations: 8 kB / 0.7983 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.2705, allocations: 7.984 kB / 0.7983 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.2705, allocations: 0 / 0.7983 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001691/0.2707, allocations: 154.9 kB / 0.7985 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2707, allocations: 96 / 0.7985 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004929/0.2712, allocations: 59.77 kB / 0.7985 GB, free: 13.06 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.0006059/0.2719, allocations: 0.7487 MB / 0.7993 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004369/0.2723, allocations: 202.6 kB / 0.7995 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2723, allocations: 4 kB / 0.7995 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.2725, allocations: 150.6 kB / 0.7996 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.2731, allocations: 41.41 kB / 0.7996 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.2761, allocations: 2.051 MB / 0.8017 GB, free: 9.68 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.2765, allocations: 0.7397 MB / 0.8024 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001158/0.2766, allocations: 29.53 kB / 0.8024 GB, free: 8.887 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.269e-05/0.2767, allocations: 47.42 kB / 0.8024 GB, free: 8.84 MB / 0.6231 GB Notification: Performance of SimCode: time 4.31e-07/0.2767, allocations: 0 / 0.8024 GB, free: 8.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.3021, allocations: 3.665 MB / 0.806 GB, free: 5.297 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.185/9.488, allocations: 11.88 kB / 0.806 GB, free: 5.285 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)