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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.707/1.707, allocations: 292.3 MB / 308.1 MB, free: 4.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 190.2 kB / 376.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205 MB / 0.6354 GB, free: 9.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 100.8 kB / 0.748 GB, free: 61.04 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001032/0.001032, allocations: 56.06 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2456, allocations: 114.5 MB / 0.9822 GB, free: 10.42 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006409/0.2521, allocations: 3.868 MB / 0.986 GB, free: 6.531 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.003008/0.2551, allocations: 1.738 MB / 0.9877 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003075/0.2554, allocations: 8 kB / 0.9877 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.2568, allocations: 474.4 kB / 0.9881 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0006097/0.2575, allocations: 215 kB / 0.9883 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005438/0.258, allocations: 187.6 kB / 0.9885 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0007551/0.2588, allocations: 0.6622 MB / 0.9892 GB, free: 3.25 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004063/0.2592, allocations: 237.2 kB / 0.9894 GB, free: 3.02 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.2595, allocations: 163.4 kB / 0.9896 GB, free: 2.859 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.2598, allocations: 223.2 kB / 0.9898 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.16e-05/0.2599, allocations: 20 kB / 0.9898 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004902/0.2604, allocations: 311.3 kB / 0.9901 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.2605, allocations: 115.7 kB / 0.9902 GB, free: 2.203 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.2607, allocations: 163.1 kB / 0.9904 GB, free: 2.043 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0005953/0.2613, allocations: 0.5103 MB / 0.9908 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2613, allocations: 0 / 0.9908 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2613, allocations: 0 / 0.9908 GB, free: 1.531 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.2613, allocations: 0 / 0.9908 GB, free: 1.531 MB / 0.7136 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.001076/0.2624, allocations: 0.6355 MB / 0.9915 GB, free: 0.8438 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.2624, allocations: 12.03 kB / 0.9915 GB, free: 0.832 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008454/0.2633, allocations: 132.3 kB / 0.9916 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.2637, allocations: 287.7 kB / 0.9919 GB, free: 392 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.2637, allocations: 25.02 kB / 0.9919 GB, free: 368 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.397e-05/0.2638, allocations: 28.38 kB / 0.9919 GB, free: 340 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.2644, allocations: 463.9 kB / 0.9924 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.2644, allocations: 7.984 kB / 0.9924 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.2645, allocations: 12 kB / 0.9924 GB, free: 15.82 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.332e-05/0.2645, allocations: 32.48 kB / 0.9924 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.265, allocations: 317.9 kB / 0.9927 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.2671, allocations: 2.193 MB / 0.9949 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.2675, allocations: 247.8 kB / 0.9951 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.2677, allocations: 112.8 kB / 0.9952 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.2678, allocations: 0 / 0.9952 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.2678, allocations: 38.66 kB / 0.9952 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.2678, allocations: 3.938 kB / 0.9953 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14): time 0.0005968/0.2684, allocations: 299.6 kB / 0.9955 GB, free: 12.32 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.2685, allocations: 59.34 kB / 0.9956 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002698/0.2687, allocations: 270.5 kB / 0.9959 GB, free: 11.98 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.2688, allocations: 29.7 kB / 0.9959 GB, free: 11.94 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.2689, allocations: 203.8 kB / 0.9961 GB, free: 11.74 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.091e-05/0.2689, allocations: 51.3 kB / 0.9961 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.109e-05/0.269, allocations: 45.84 kB / 0.9962 GB, free: 11.63 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.2691, allocations: 342.8 kB / 0.9965 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.812e-05/0.2692, allocations: 52.44 kB / 0.9965 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.2694, allocations: 140.1 kB / 0.9967 GB, free: 11.06 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.2697, allocations: 218.9 kB / 0.9969 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2697, allocations: 0 / 0.9969 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003838/0.2701, allocations: 268.8 kB / 0.9971 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.2701, allocations: 8 kB / 0.9972 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2701, allocations: 4 kB / 0.9972 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.2703, allocations: 24.84 kB / 0.9972 GB, free: 10.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.2705, allocations: 51.91 kB / 0.9972 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009487/0.2714, allocations: 1.319 MB / 0.9985 GB, free: 9 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.2716, allocations: 27.75 kB / 0.9985 GB, free: 8.973 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.2716, allocations: 16.16 kB / 0.9986 GB, free: 8.957 MB / 0.7292 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.0001416/0.2718, allocations: 161.8 kB / 0.9987 GB, free: 8.789 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.2718, allocations: 27.66 kB / 0.9987 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.876e-05/0.2719, allocations: 37.77 kB / 0.9988 GB, free: 8.727 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2719, allocations: 0 / 0.9988 GB, free: 8.727 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.2719, allocations: 4 kB / 0.9988 GB, free: 8.723 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2719, allocations: 3.984 kB / 0.9988 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008269/0.2727, allocations: 0.7063 MB / 0.9995 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.2727, allocations: 0 / 0.9995 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.26e-05/0.2728, allocations: 24.17 kB / 0.9995 GB, free: 7.898 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.423e-05/0.2729, allocations: 28.84 kB / 0.9995 GB, free: 7.867 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.2729, allocations: 0 / 0.9995 GB, free: 7.867 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008604/0.2738, allocations: 1.315 MB / 1.001 GB, free: 6.422 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2738, allocations: 4.031 kB / 1.001 GB, free: 6.418 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006105/0.2744, allocations: 0.952 MB / 1.002 GB, free: 5.387 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 9.882e-05/0.2745, allocations: 116.8 kB / 1.002 GB, free: 5.254 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.2746, allocations: 4 kB / 1.002 GB, free: 5.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.2747, allocations: 15.98 kB / 1.002 GB, free: 5.234 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.2748, allocations: 23.91 kB / 1.002 GB, free: 5.211 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.2748, allocations: 11.94 kB / 1.002 GB, free: 5.199 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001755/0.275, allocations: 190 kB / 1.002 GB, free: 5.012 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.51e-07/0.275, allocations: 0 / 1.002 GB, free: 5.012 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004698/0.2754, allocations: 75.78 kB / 1.002 GB, free: 4.938 MB / 0.7292 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.0001481/0.2756, allocations: 103.2 kB / 1.002 GB, free: 4.824 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004523/0.2761, allocations: 266.5 kB / 1.003 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2761, allocations: 0 / 1.003 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002045/0.2763, allocations: 183.5 kB / 1.003 GB, free: 4.359 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.2768, allocations: 65.72 kB / 1.003 GB, free: 4.301 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.2778, allocations: 0.8109 MB / 1.004 GB, free: 3.43 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.2781, allocations: 0.7989 MB / 1.004 GB, free: 2.605 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001352/0.2783, allocations: 42.27 kB / 1.004 GB, free: 2.566 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.2783, allocations: 19.44 kB / 1.004 GB, free: 2.547 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/0.2783, allocations: 4 kB / 1.004 GB, free: 2.543 MB / 0.7292 GB Notification: Performance of Templates: time 0.005611/0.284, allocations: 2.664 MB / 1.007 GB, free: 15.9 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (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)