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.001281/0.001281, allocations: 109.3 kB / 16.41 MB, free: 5.996 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.001243/0.001243, allocations: 188.4 kB / 17.34 MB, free: 5.602 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.463/1.463, allocations: 222.9 MB / 241 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.002614/0.002614, allocations: 293 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 1.025/1.025, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 99.83 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4878, allocations: 86.98 MB / 0.767 GB, free: 4.066 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005976/0.4938, allocations: 3.826 MB / 0.7708 GB, free: 232 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002949/0.4967, allocations: 1.733 MB / 0.7725 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.4969, allocations: 11.94 kB / 0.7725 GB, free: 14.47 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.4983, allocations: 0.4942 MB / 0.773 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004908/0.4988, allocations: 210.9 kB / 0.7732 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.4994, allocations: 221.4 kB / 0.7734 GB, free: 13.55 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005691/0.4999, allocations: 482.1 kB / 0.7738 GB, free: 13.08 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005284/0.5005, allocations: 297 kB / 0.7741 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.5007, allocations: 199.3 kB / 0.7743 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/0.5011, allocations: 215.2 kB / 0.7745 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.587e-05/0.5011, allocations: 28 kB / 0.7745 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003953/0.5015, allocations: 243.5 kB / 0.7748 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.5017, allocations: 139.5 kB / 0.7749 GB, free: 11.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.5019, allocations: 167.2 kB / 0.7751 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006622/0.5025, allocations: 0.5042 MB / 0.7756 GB, free: 11.32 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.5025, allocations: 0 / 0.7756 GB, free: 11.32 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.5025, allocations: 0 / 0.7756 GB, free: 11.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.5025, allocations: 0 / 0.7756 GB, free: 11.32 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.001087/0.5036, allocations: 0.6427 MB / 0.7762 GB, free: 10.62 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.5037, allocations: 8.031 kB / 0.7762 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000911/0.5046, allocations: 136.6 kB / 0.7763 GB, free: 10.48 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004539/0.505, allocations: 299.8 kB / 0.7766 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.5051, allocations: 21.03 kB / 0.7766 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.029e-05/0.5051, allocations: 28.36 kB / 0.7767 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000703/0.5058, allocations: 467.9 kB / 0.7771 GB, free: 9.613 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.5058, allocations: 3.938 kB / 0.7771 GB, free: 9.609 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.5059, allocations: 12 kB / 0.7771 GB, free: 9.598 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.423e-05/0.5059, allocations: 36.53 kB / 0.7771 GB, free: 9.562 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.5064, allocations: 318 kB / 0.7775 GB, free: 9.25 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002439/0.5089, allocations: 2.181 MB / 0.7796 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.5093, allocations: 239.8 kB / 0.7798 GB, free: 6.594 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.5095, allocations: 96.8 kB / 0.7799 GB, free: 6.496 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.5095, allocations: 4 kB / 0.7799 GB, free: 6.492 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.5096, allocations: 34.55 kB / 0.7799 GB, free: 6.449 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.5096, allocations: 0 / 0.7799 GB, free: 6.449 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.0006347/0.5102, allocations: 307.6 kB / 0.7802 GB, free: 6.121 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.5102, allocations: 55.41 kB / 0.7803 GB, free: 6.055 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.5106, allocations: 270.5 kB / 0.7805 GB, free: 5.789 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.5106, allocations: 25.7 kB / 0.7806 GB, free: 5.758 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.5107, allocations: 212.3 kB / 0.7808 GB, free: 5.547 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.577e-05/0.5108, allocations: 51.59 kB / 0.7808 GB, free: 5.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.153e-05/0.5109, allocations: 49.89 kB / 0.7809 GB, free: 5.438 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001673/0.511, allocations: 334.8 kB / 0.7812 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.5112, allocations: 60.44 kB / 0.7812 GB, free: 5.043 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.5113, allocations: 148 kB / 0.7814 GB, free: 4.859 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002994/0.5116, allocations: 222.9 kB / 0.7816 GB, free: 4.602 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.5116, allocations: 0 / 0.7816 GB, free: 4.602 MB / 0.545 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004428/0.5121, allocations: 266.3 kB / 0.7819 GB, free: 4.332 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.5121, allocations: 4 kB / 0.7819 GB, free: 4.328 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.5121, allocations: 4 kB / 0.7819 GB, free: 4.324 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001832/0.5123, allocations: 28.84 kB / 0.7819 GB, free: 4.293 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.5125, allocations: 47.92 kB / 0.7819 GB, free: 4.246 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.5138, allocations: 1.418 MB / 0.7833 GB, free: 2.688 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/0.514, allocations: 35.8 kB / 0.7834 GB, free: 2.652 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.514, allocations: 12.16 kB / 0.7834 GB, free: 2.641 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.0001938/0.5142, allocations: 172.1 kB / 0.7835 GB, free: 2.465 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.256e-05/0.5143, allocations: 23.86 kB / 0.7836 GB, free: 2.441 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.5143, allocations: 21.84 kB / 0.7836 GB, free: 2.418 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.5143, allocations: 7.938 kB / 0.7836 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.5143, allocations: 3.938 kB / 0.7836 GB, free: 2.406 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5143, allocations: 3.984 kB / 0.7836 GB, free: 2.402 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.5153, allocations: 0.7025 MB / 0.7843 GB, free: 1.609 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.5153, allocations: 0 / 0.7843 GB, free: 1.609 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.919e-05/0.5154, allocations: 27.92 kB / 0.7843 GB, free: 1.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-05/0.5155, allocations: 32.97 kB / 0.7843 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.5155, allocations: 0 / 0.7843 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.5167, allocations: 1.418 MB / 0.7857 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.5167, allocations: 4.031 kB / 0.7857 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003745/0.5171, allocations: 320.8 kB / 0.786 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.5172, allocations: 116.9 kB / 0.7861 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.5172, allocations: 4 kB / 0.7861 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.5174, allocations: 11.98 kB / 0.7862 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.5174, allocations: 19.92 kB / 0.7862 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.5174, allocations: 4 kB / 0.7862 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001973/0.5176, allocations: 189.9 kB / 0.7864 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5176, allocations: 4 kB / 0.7864 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003933/0.518, allocations: 79.84 kB / 0.7864 GB, free: 15.2 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.0001394/0.5182, allocations: 111.2 kB / 0.7865 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004807/0.5186, allocations: 258.5 kB / 0.7868 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.5187, allocations: 3.938 kB / 0.7868 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.5189, allocations: 183.5 kB / 0.787 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.5193, allocations: 67.27 kB / 0.787 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.5203, allocations: 0.5377 MB / 0.7876 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.5208, allocations: 0.7948 MB / 0.7883 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001305/0.5209, allocations: 46.25 kB / 0.7884 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.72e-05/0.521, allocations: 19.44 kB / 0.7884 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.521, allocations: 0 / 0.7884 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.00699/0.528, allocations: 2.76 MB / 0.7911 GB, free: 10.37 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)