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.004732/0.004732, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001107/0.001107, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002022/0.002023, allocations: 282 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9498/0.9498, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 87.86 kB / 0.6814 GB, free: 15.53 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1563, allocations: 86.98 MB / 0.7664 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.004893/0.1612, allocations: 3.828 MB / 0.7701 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1637, allocations: 1.722 MB / 0.7718 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.1639, allocations: 11.94 kB / 0.7718 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001304/0.1652, allocations: 0.4896 MB / 0.7723 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004054/0.1656, allocations: 230.8 kB / 0.7725 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004428/0.1661, allocations: 211.5 kB / 0.7727 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004512/0.1665, allocations: 474.2 kB / 0.7731 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000515/0.167, allocations: 365.1 kB / 0.7735 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.1673, allocations: 199.2 kB / 0.7737 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.1676, allocations: 211.2 kB / 0.7739 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.867e-05/0.1677, allocations: 28 kB / 0.7739 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003961/0.1681, allocations: 251.4 kB / 0.7742 GB, free: 476 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.1682, allocations: 119.7 kB / 0.7743 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.1684, allocations: 171.2 kB / 0.7744 GB, free: 184 kB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.3416/0.51, allocations: 0.4934 MB / 0.7749 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.5101, allocations: 0 / 0.7749 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.374e-06/0.5101, allocations: 2.719 kB / 0.7749 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.5101, allocations: 0 / 0.7749 GB, free: 9.551 MB / 0.5606 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.001/0.5111, allocations: 0.6442 MB / 0.7755 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.5112, allocations: 9.375 kB / 0.7756 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000912/0.5121, allocations: 138.5 kB / 0.7757 GB, free: 9.055 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.5124, allocations: 290.1 kB / 0.776 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.5125, allocations: 23.84 kB / 0.776 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.5125, allocations: 26.22 kB / 0.776 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.5132, allocations: 468.3 kB / 0.7765 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.5133, allocations: 5.469 kB / 0.7765 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.5133, allocations: 15.09 kB / 0.7765 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.497e-05/0.5134, allocations: 27.2 kB / 0.7765 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004996/0.5139, allocations: 321.4 kB / 0.7768 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.5158, allocations: 2.183 MB / 0.7789 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.5162, allocations: 258.4 kB / 0.7792 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.5164, allocations: 108.7 kB / 0.7793 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.5164, allocations: 1.125 kB / 0.7793 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.5164, allocations: 38.75 kB / 0.7793 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 1.843e-06/0.5165, allocations: 4.969 kB / 0.7793 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0005526/0.517, allocations: 305.1 kB / 0.7796 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.346e-05/0.517, allocations: 53.5 kB / 0.7797 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.5173, allocations: 270.1 kB / 0.7799 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.421e-05/0.5173, allocations: 29.33 kB / 0.78 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.402e-05/0.5174, allocations: 205.4 kB / 0.7802 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.5175, allocations: 60.08 kB / 0.7802 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.5175, allocations: 50.38 kB / 0.7803 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.5176, allocations: 336.7 kB / 0.7806 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.5177, allocations: 55.83 kB / 0.7806 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.5178, allocations: 142.6 kB / 0.7808 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.5181, allocations: 221.2 kB / 0.781 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5181, allocations: 0.6875 kB / 0.781 GB, free: 5.781 MB / 0.5606 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003909/0.5185, allocations: 268.3 kB / 0.7812 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.5185, allocations: 6.594 kB / 0.7812 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.5185, allocations: 4.203 kB / 0.7812 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.5187, allocations: 30.22 kB / 0.7813 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.5189, allocations: 45.94 kB / 0.7813 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.5199, allocations: 1.425 MB / 0.7827 GB, free: 20.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.5201, allocations: 27.69 kB / 0.7827 GB, free: 20.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.5201, allocations: 12.03 kB / 0.7828 GB, free: 20.34 MB / 0.5762 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.0001774/0.5203, allocations: 161.2 kB / 0.7829 GB, free: 20.22 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.5203, allocations: 28.27 kB / 0.7829 GB, free: 20.21 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.337e-05/0.5204, allocations: 31.14 kB / 0.783 GB, free: 20.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.5204, allocations: 1.812 kB / 0.783 GB, free: 20.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.5204, allocations: 2.562 kB / 0.783 GB, free: 20.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.5204, allocations: 11.83 kB / 0.783 GB, free: 20.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007794/0.5212, allocations: 0.6965 MB / 0.7837 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5212, allocations: 5.531 kB / 0.7837 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.332e-05/0.5213, allocations: 27.28 kB / 0.7837 GB, free: 19.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-05/0.5214, allocations: 26.66 kB / 0.7837 GB, free: 19.76 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.5214, allocations: 10.44 kB / 0.7837 GB, free: 19.76 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008632/0.5223, allocations: 1.411 MB / 0.7851 GB, free: 18.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5223, allocations: 4.812 kB / 0.7851 GB, free: 18.41 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.5226, allocations: 322 kB / 0.7854 GB, free: 18.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.076e-05/0.5227, allocations: 110.3 kB / 0.7855 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.018e-05/0.5227, allocations: 7.719 kB / 0.7855 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.5229, allocations: 12.33 kB / 0.7855 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/0.5229, allocations: 18.66 kB / 0.7856 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.5229, allocations: 4.688 kB / 0.7856 GB, free: 18.09 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001746/0.5231, allocations: 194 kB / 0.7857 GB, free: 18.01 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5231, allocations: 0 / 0.7857 GB, free: 18.01 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003834/0.5235, allocations: 80.81 kB / 0.7858 GB, free: 17.99 MB / 0.5762 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.0001096/0.5236, allocations: 111 kB / 0.7859 GB, free: 17.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004298/0.5241, allocations: 269.7 kB / 0.7862 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5241, allocations: 0.8438 kB / 0.7862 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.5243, allocations: 182.6 kB / 0.7864 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.5247, allocations: 58.22 kB / 0.7864 GB, free: 17.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007403/0.5255, allocations: 0.5507 MB / 0.787 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.5258, allocations: 0.7938 MB / 0.7877 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001218/0.526, allocations: 42.52 kB / 0.7878 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.526, allocations: 19.47 kB / 0.7878 GB, free: 16.67 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/0.526, allocations: 3.938 kB / 0.7878 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of Templates: time 0.005705/0.5317, allocations: 2.732 MB / 0.7905 GB, free: 16.51 MB / 0.5762 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)