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.006995/0.006995, allocations: 100.6 kB / 15.73 MB, free: 6.043 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.001541/0.001542, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001986/0.001986, allocations: 290 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9248/0.9248, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 99.84 kB / 0.6814 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5092/0.5109, allocations: 86.98 MB / 0.7664 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005313/0.5162, allocations: 3.834 MB / 0.7701 GB, free: 136 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002791/0.5191, allocations: 1.725 MB / 0.7718 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.5193, allocations: 8 kB / 0.7718 GB, free: 14.39 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.5207, allocations: 490.1 kB / 0.7723 GB, free: 13.91 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005522/0.5212, allocations: 226.9 kB / 0.7725 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005666/0.5218, allocations: 214.2 kB / 0.7727 GB, free: 13.48 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.5223, allocations: 470.2 kB / 0.7731 GB, free: 13.02 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005902/0.5229, allocations: 365.2 kB / 0.7735 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002104/0.5231, allocations: 199.2 kB / 0.7737 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.5235, allocations: 219.2 kB / 0.7739 GB, free: 12.25 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.751e-05/0.5236, allocations: 28 kB / 0.7739 GB, free: 12.22 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000442/0.524, allocations: 243.4 kB / 0.7742 GB, free: 11.98 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.5242, allocations: 127.7 kB / 0.7743 GB, free: 11.86 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001858/0.5244, allocations: 167.2 kB / 0.7744 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005842/0.525, allocations: 0.5009 MB / 0.7749 GB, free: 11.2 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.525, allocations: 0 / 0.7749 GB, free: 11.2 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.116e-06/0.525, allocations: 3.984 kB / 0.7749 GB, free: 11.19 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.525, allocations: 0 / 0.7749 GB, free: 11.19 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.001007/0.526, allocations: 0.6355 MB / 0.7755 GB, free: 10.51 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.5261, allocations: 12.03 kB / 0.7756 GB, free: 10.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009058/0.527, allocations: 128.4 kB / 0.7757 GB, free: 10.37 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.5274, allocations: 299.7 kB / 0.776 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.5274, allocations: 21.03 kB / 0.776 GB, free: 10.02 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.5274, allocations: 36.3 kB / 0.776 GB, free: 9.984 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006558/0.5281, allocations: 459.9 kB / 0.7765 GB, free: 9.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.5281, allocations: 0 / 0.7765 GB, free: 9.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.5282, allocations: 12 kB / 0.7765 GB, free: 9.488 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.19e-05/0.5282, allocations: 36.53 kB / 0.7765 GB, free: 9.453 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004717/0.5287, allocations: 321.9 kB / 0.7768 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.5309, allocations: 2.177 MB / 0.7789 GB, free: 6.746 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.5313, allocations: 259.8 kB / 0.7792 GB, free: 6.465 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002322/0.5315, allocations: 104.8 kB / 0.7793 GB, free: 6.359 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.5315, allocations: 0 / 0.7793 GB, free: 6.359 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.5316, allocations: 34.55 kB / 0.7793 GB, free: 6.316 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.5316, allocations: 0 / 0.7793 GB, free: 6.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0005942/0.5322, allocations: 303.5 kB / 0.7796 GB, free: 5.992 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.5322, allocations: 55.34 kB / 0.7797 GB, free: 5.926 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.5325, allocations: 270.5 kB / 0.7799 GB, free: 5.66 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.5325, allocations: 29.7 kB / 0.7799 GB, free: 5.625 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.5327, allocations: 203.9 kB / 0.7801 GB, free: 5.422 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.905e-05/0.5327, allocations: 59.22 kB / 0.7802 GB, free: 5.363 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.148e-05/0.5328, allocations: 45.95 kB / 0.7802 GB, free: 5.309 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5329, allocations: 338.8 kB / 0.7806 GB, free: 4.969 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.209e-05/0.533, allocations: 56.44 kB / 0.7806 GB, free: 4.914 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.5332, allocations: 140.1 kB / 0.7808 GB, free: 4.738 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.5334, allocations: 218.2 kB / 0.781 GB, free: 4.488 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.5335, allocations: 4 kB / 0.781 GB, free: 4.484 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003992/0.5339, allocations: 269.8 kB / 0.7812 GB, free: 4.211 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.5339, allocations: 8 kB / 0.7812 GB, free: 4.203 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.5339, allocations: 0 / 0.7812 GB, free: 4.203 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00017/0.5341, allocations: 24.84 kB / 0.7813 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.5343, allocations: 48.3 kB / 0.7813 GB, free: 4.129 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.5354, allocations: 1.43 MB / 0.7827 GB, free: 2.559 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.5356, allocations: 31.62 kB / 0.7827 GB, free: 2.527 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.5356, allocations: 12 kB / 0.7827 GB, free: 2.516 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.0001672/0.5358, allocations: 170.4 kB / 0.7829 GB, free: 2.34 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.5358, allocations: 23.72 kB / 0.7829 GB, free: 2.316 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.5359, allocations: 29.83 kB / 0.783 GB, free: 2.285 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-06/0.5359, allocations: 0 / 0.783 GB, free: 2.285 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.5359, allocations: 4.062 kB / 0.783 GB, free: 2.281 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.5359, allocations: 0 / 0.783 GB, free: 2.281 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008714/0.5368, allocations: 0.6987 MB / 0.7836 GB, free: 1.492 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.5368, allocations: 8.031 kB / 0.7836 GB, free: 1.484 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.201e-05/0.5369, allocations: 19.98 kB / 0.7837 GB, free: 1.465 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-05/0.537, allocations: 28.78 kB / 0.7837 GB, free: 1.434 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.537, allocations: 8 kB / 0.7837 GB, free: 1.426 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/0.538, allocations: 1.41 MB / 0.7851 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.538, allocations: 0 / 0.7851 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.5383, allocations: 317.2 kB / 0.7854 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/0.5384, allocations: 112.8 kB / 0.7855 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.5385, allocations: 4 kB / 0.7855 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.5386, allocations: 19.98 kB / 0.7855 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.5387, allocations: 19.86 kB / 0.7855 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.5387, allocations: 8 kB / 0.7855 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001677/0.5389, allocations: 190 kB / 0.7857 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5389, allocations: 3.938 kB / 0.7857 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003912/0.5393, allocations: 79.69 kB / 0.7858 GB, free: 15.08 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.000125/0.5394, allocations: 111.2 kB / 0.7859 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004418/0.5399, allocations: 269.8 kB / 0.7862 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.5399, allocations: 0.75 kB / 0.7862 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002028/0.5401, allocations: 186.8 kB / 0.7863 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.5406, allocations: 67.14 kB / 0.7864 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008374/0.5414, allocations: 0.532 MB / 0.7869 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.5418, allocations: 0.7987 MB / 0.7877 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001319/0.5419, allocations: 38.27 kB / 0.7877 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.542, allocations: 19.44 kB / 0.7878 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of SimCode: time 1.432e-06/0.542, allocations: 0 / 0.7878 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of Templates: time 0.005818/0.5478, allocations: 2.742 MB / 0.7904 GB, free: 10.26 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)