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: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007911, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009311/0.0009311, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.361/1.361, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.664/1.664, allocations: 292.7 MB / 0.5499 GB, free: 14.55 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.0004942/0.0004942, allocations: 13.53 kB / 0.6737 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2406, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.0042/0.2449, allocations: 3.343 MB / 0.7906 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002613/0.2475, allocations: 1.607 MB / 0.7921 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.2477, allocations: 11.94 kB / 0.7921 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002603/0.248, allocations: 55.56 kB / 0.7922 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005161/0.2485, allocations: 183 kB / 0.7924 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.2491, allocations: 151 kB / 0.7925 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.2496, allocations: 0.5296 MB / 0.793 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000433/0.2501, allocations: 293.1 kB / 0.7933 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001771/0.2503, allocations: 159.4 kB / 0.7935 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003677/0.2506, allocations: 195.3 kB / 0.7936 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.2507, allocations: 12 kB / 0.7936 GB, free: 5.383 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.251, allocations: 123.8 kB / 0.7938 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.2511, allocations: 99.75 kB / 0.7939 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.488e-05/0.2512, allocations: 85.52 kB / 0.7939 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.2516, allocations: 383.2 kB / 0.7943 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2516, allocations: 4 kB / 0.7943 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.305e-06/0.2516, allocations: 4 kB / 0.7943 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.2516, allocations: 0 / 0.7943 GB, free: 4.691 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.0009127/0.2525, allocations: 0.5613 MB / 0.7949 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.2526, allocations: 12.03 kB / 0.7949 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008545/0.2535, allocations: 147.4 kB / 0.795 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004034/0.2539, allocations: 278.4 kB / 0.7953 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.131e-05/0.2539, allocations: 24.64 kB / 0.7953 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.254, allocations: 28 kB / 0.7953 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007225/0.2547, allocations: 455.6 kB / 0.7958 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.2547, allocations: 3.938 kB / 0.7958 GB, free: 3.074 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.2548, allocations: 12 kB / 0.7958 GB, free: 3.062 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-05/0.2548, allocations: 32.53 kB / 0.7958 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.2553, allocations: 329.9 kB / 0.7961 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.2575, allocations: 2.185 MB / 0.7983 GB, free: 316 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004087/0.2579, allocations: 251.8 kB / 0.7985 GB, free: 36 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.2582, allocations: 120.7 kB / 0.7986 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.2582, allocations: 4 kB / 0.7986 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.2583, allocations: 38.55 kB / 0.7987 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=14): time 2.404e-06/0.2583, allocations: 0 / 0.7987 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of matching and sorting (n=14): time 0.0005844/0.2589, allocations: 291.3 kB / 0.7989 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.2589, allocations: 59.36 kB / 0.799 GB, free: 15.48 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.2592, allocations: 270.5 kB / 0.7993 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.2592, allocations: 33.7 kB / 0.7993 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.2594, allocations: 199.8 kB / 0.7995 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.352e-05/0.2594, allocations: 51.3 kB / 0.7995 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-06/0.2594, allocations: 4.094 kB / 0.7995 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2596, allocations: 338.8 kB / 0.7998 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.934e-05/0.2597, allocations: 52.44 kB / 0.7999 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.2598, allocations: 148.3 kB / 0.8 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.26, allocations: 83.91 kB / 0.8001 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.26, allocations: 0 / 0.8001 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003953/0.2604, allocations: 258 kB / 0.8004 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.2604, allocations: 7.984 kB / 0.8004 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.2604, allocations: 4 kB / 0.8004 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.2606, allocations: 32.73 kB / 0.8004 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2608, allocations: 48.3 kB / 0.8005 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.2618, allocations: 1.323 MB / 0.8017 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/0.262, allocations: 31.84 kB / 0.8018 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.262, allocations: 8 kB / 0.8018 GB, free: 12.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001728/0.2622, allocations: 173.7 kB / 0.802 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.545e-05/0.2623, allocations: 23.72 kB / 0.802 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.682e-05/0.2623, allocations: 29.83 kB / 0.802 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.2623, allocations: 3.953 kB / 0.802 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2623, allocations: 0 / 0.802 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2623, allocations: 4 kB / 0.802 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008615/0.2632, allocations: 0.7025 MB / 0.8027 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2632, allocations: 4.188 kB / 0.8027 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.2633, allocations: 23.94 kB / 0.8027 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-05/0.2634, allocations: 24.84 kB / 0.8027 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.2634, allocations: 4 kB / 0.8027 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001039/0.2645, allocations: 1.319 MB / 0.804 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2645, allocations: 4.031 kB / 0.804 GB, free: 9.859 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000372/0.2649, allocations: 313.2 kB / 0.8043 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.425e-05/0.265, allocations: 116.8 kB / 0.8045 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.265, allocations: 0 / 0.8045 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.2651, allocations: 12 kB / 0.8045 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/0.2652, allocations: 23.88 kB / 0.8045 GB, free: 9.348 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.2652, allocations: 8 kB / 0.8045 GB, free: 9.34 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001852/0.2654, allocations: 190 kB / 0.8047 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2654, allocations: 0 / 0.8047 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003943/0.2658, allocations: 71.94 kB / 0.8047 GB, free: 9.086 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001326/0.2659, allocations: 117.4 kB / 0.8049 GB, free: 8.961 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005172/0.2665, allocations: 262.4 kB / 0.8051 GB, free: 8.691 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.2665, allocations: 8 kB / 0.8051 GB, free: 8.684 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.2667, allocations: 183.6 kB / 0.8053 GB, free: 8.492 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.2671, allocations: 60.52 kB / 0.8053 GB, free: 8.434 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009105/0.2681, allocations: 0.6331 MB / 0.806 GB, free: 7.762 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.2685, allocations: 0.7913 MB / 0.8067 GB, free: 6.941 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001428/0.2686, allocations: 50.23 kB / 0.8068 GB, free: 6.891 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.721e-05/0.2687, allocations: 23.44 kB / 0.8068 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of SimCode: time 2.91e-07/0.2687, allocations: 0 / 0.8068 GB, free: 6.867 MB / 0.6231 GB Notification: Performance of Templates: time 0.00603/0.2747, allocations: 2.48 MB / 0.8092 GB, free: 4.414 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile Environment - environmentSimulation: (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 & ./Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) Environment - environmentSimulation: