Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001506/0.001506, allocations: 101.7 kB / 16.41 MB, free: 6.461 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.001491/0.001491, allocations: 189.7 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002214/0.002214, allocations: 292.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9964/0.9964, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 95.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5162/0.5181, allocations: 86.97 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005801/0.524, allocations: 3.818 MB / 0.7708 GB, free: 112 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002913/0.5269, allocations: 1.733 MB / 0.7724 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001807/0.5271, allocations: 11.94 kB / 0.7725 GB, free: 14.36 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.5286, allocations: 497.4 kB / 0.7729 GB, free: 13.87 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005258/0.5291, allocations: 222.9 kB / 0.7731 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005429/0.5297, allocations: 211.5 kB / 0.7733 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005315/0.5302, allocations: 482.1 kB / 0.7738 GB, free: 12.97 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005563/0.5308, allocations: 357.2 kB / 0.7741 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002093/0.531, allocations: 203.2 kB / 0.7743 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003794/0.5314, allocations: 203.3 kB / 0.7745 GB, free: 12.22 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.5314, allocations: 31.94 kB / 0.7746 GB, free: 12.19 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005533/0.532, allocations: 251.4 kB / 0.7748 GB, free: 11.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.5321, allocations: 123.7 kB / 0.7749 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.5323, allocations: 171.2 kB / 0.7751 GB, free: 11.66 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005825/0.5329, allocations: 0.5009 MB / 0.7756 GB, free: 11.16 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.5329, allocations: 4 kB / 0.7756 GB, free: 11.15 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5329, allocations: 0 / 0.7756 GB, free: 11.15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.5329, allocations: 0 / 0.7756 GB, free: 11.15 MB / 0.545 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.0009875/0.5339, allocations: 0.6355 MB / 0.7762 GB, free: 10.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.534, allocations: 8.031 kB / 0.7762 GB, free: 10.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008652/0.5349, allocations: 124.4 kB / 0.7763 GB, free: 10.34 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.5353, allocations: 299.7 kB / 0.7766 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.284e-05/0.5354, allocations: 21.03 kB / 0.7766 GB, free: 9.988 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.5354, allocations: 32.31 kB / 0.7767 GB, free: 9.957 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006346/0.536, allocations: 467.9 kB / 0.7771 GB, free: 9.465 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.5361, allocations: 3.938 kB / 0.7771 GB, free: 9.461 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.5361, allocations: 19.97 kB / 0.7771 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.627e-05/0.5362, allocations: 32.55 kB / 0.7772 GB, free: 9.41 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004796/0.5366, allocations: 321.9 kB / 0.7775 GB, free: 9.094 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00231/0.539, allocations: 2.181 MB / 0.7796 GB, free: 6.699 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.5393, allocations: 255.8 kB / 0.7798 GB, free: 6.422 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.5396, allocations: 104.8 kB / 0.7799 GB, free: 6.316 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.5396, allocations: 0 / 0.7799 GB, free: 6.316 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.5396, allocations: 38.5 kB / 0.78 GB, free: 6.27 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.5396, allocations: 0 / 0.78 GB, free: 6.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0005988/0.5402, allocations: 301.7 kB / 0.7803 GB, free: 5.949 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.5403, allocations: 59.41 kB / 0.7803 GB, free: 5.879 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002699/0.5406, allocations: 266.5 kB / 0.7806 GB, free: 5.617 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.5406, allocations: 25.7 kB / 0.7806 GB, free: 5.586 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5407, allocations: 211.7 kB / 0.7808 GB, free: 5.375 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.592e-05/0.5408, allocations: 51.28 kB / 0.7809 GB, free: 5.324 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-05/0.5409, allocations: 49.94 kB / 0.7809 GB, free: 5.266 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.541, allocations: 334.8 kB / 0.7812 GB, free: 4.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.998e-05/0.5412, allocations: 64.44 kB / 0.7813 GB, free: 4.867 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.5413, allocations: 132.1 kB / 0.7814 GB, free: 4.699 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.5416, allocations: 222.9 kB / 0.7816 GB, free: 4.441 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.5416, allocations: 0 / 0.7816 GB, free: 4.441 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000428/0.542, allocations: 266.1 kB / 0.7819 GB, free: 4.172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.542, allocations: 4 kB / 0.7819 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.542, allocations: 11.92 kB / 0.7819 GB, free: 4.156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001647/0.5422, allocations: 24.84 kB / 0.7819 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.5424, allocations: 47.92 kB / 0.782 GB, free: 4.082 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.5435, allocations: 1.418 MB / 0.7833 GB, free: 2.523 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.5437, allocations: 27.69 kB / 0.7834 GB, free: 2.496 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.5437, allocations: 16.16 kB / 0.7834 GB, free: 2.48 MB / 0.545 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.0001568/0.5439, allocations: 176.7 kB / 0.7836 GB, free: 2.301 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.5439, allocations: 23.72 kB / 0.7836 GB, free: 2.277 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.027e-05/0.544, allocations: 29.83 kB / 0.7836 GB, free: 2.246 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.544, allocations: 0 / 0.7836 GB, free: 2.246 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.544, allocations: 4 kB / 0.7836 GB, free: 2.242 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.544, allocations: 3.984 kB / 0.7836 GB, free: 2.238 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008623/0.5449, allocations: 0.6986 MB / 0.7843 GB, free: 1.449 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.5449, allocations: 192 / 0.7843 GB, free: 1.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.56e-05/0.545, allocations: 31.98 kB / 0.7843 GB, free: 1.418 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-05/0.5451, allocations: 36.91 kB / 0.7844 GB, free: 1.379 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.5451, allocations: 4 kB / 0.7844 GB, free: 1.375 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009927/0.5461, allocations: 1.406 MB / 0.7857 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5461, allocations: 4.031 kB / 0.7857 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000313/0.5464, allocations: 316.1 kB / 0.786 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.5465, allocations: 116.8 kB / 0.7862 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/0.5466, allocations: 4 kB / 0.7862 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.5467, allocations: 8 kB / 0.7862 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.577e-05/0.5468, allocations: 27.86 kB / 0.7862 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.5468, allocations: 4 kB / 0.7862 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001769/0.547, allocations: 190 kB / 0.7864 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.547, allocations: 4 kB / 0.7864 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000376/0.5473, allocations: 79.69 kB / 0.7865 GB, free: 15.04 MB / 0.5606 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.0001304/0.5475, allocations: 103.2 kB / 0.7866 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004327/0.5479, allocations: 270.5 kB / 0.7868 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5479, allocations: 3.938 kB / 0.7868 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.5482, allocations: 183.7 kB / 0.787 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000457/0.5486, allocations: 63.84 kB / 0.7871 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009126/0.5495, allocations: 0.5749 MB / 0.7876 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003852/0.5499, allocations: 0.7987 MB / 0.7884 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.587e-05/0.55, allocations: 27.38 kB / 0.7884 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.55, allocations: 0 / 0.7884 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of Templates: time 0.006146/0.5562, allocations: 4.402 MB / 0.7927 GB, free: 8.535 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)