Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001204/0.001204, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002446/0.002446, allocations: 285.8 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9767/0.9767, allocations: 169.2 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 87.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4204, allocations: 86.98 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006757/0.4272, allocations: 4.352 MB / 0.7713 GB, free: 15.55 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003583/0.4308, allocations: 1.854 MB / 0.7731 GB, free: 13.69 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004262/0.4313, allocations: 8 kB / 0.7731 GB, free: 13.68 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.4333, allocations: 0.603 MB / 0.7737 GB, free: 13.08 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008707/0.4342, allocations: 266.6 kB / 0.7739 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008439/0.435, allocations: 247.4 kB / 0.7742 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.4361, allocations: 0.611 MB / 0.7748 GB, free: 11.96 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008945/0.437, allocations: 466.8 kB / 0.7752 GB, free: 11.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.4375, allocations: 251.1 kB / 0.7755 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000699/0.4382, allocations: 271 kB / 0.7757 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.4383, allocations: 36 kB / 0.7757 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006075/0.4389, allocations: 247.5 kB / 0.776 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.4392, allocations: 159.5 kB / 0.7761 GB, free: 10.56 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000327/0.4395, allocations: 219 kB / 0.7763 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009926/0.4405, allocations: 0.6021 MB / 0.7769 GB, free: 9.742 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4405, allocations: 0 / 0.7769 GB, free: 9.742 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4405, allocations: 0 / 0.7769 GB, free: 9.742 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.092e-05/0.4405, allocations: 4 kB / 0.7769 GB, free: 9.738 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.00182/0.4424, allocations: 0.7252 MB / 0.7776 GB, free: 8.961 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.4424, allocations: 8.031 kB / 0.7777 GB, free: 8.953 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001224/0.4437, allocations: 148.2 kB / 0.7778 GB, free: 8.809 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/0.4443, allocations: 346.4 kB / 0.7781 GB, free: 8.434 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.4443, allocations: 21.38 kB / 0.7781 GB, free: 8.414 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.112e-05/0.4444, allocations: 36.38 kB / 0.7782 GB, free: 8.379 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009479/0.4454, allocations: 0.5317 MB / 0.7787 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4454, allocations: 0 / 0.7787 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.4454, allocations: 19.98 kB / 0.7787 GB, free: 7.797 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-05/0.4455, allocations: 36.62 kB / 0.7788 GB, free: 7.762 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006937/0.4462, allocations: 386.3 kB / 0.7791 GB, free: 7.383 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.4489, allocations: 2.395 MB / 0.7815 GB, free: 4.766 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.4494, allocations: 273.2 kB / 0.7817 GB, free: 4.492 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.4496, allocations: 109.2 kB / 0.7818 GB, free: 4.383 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.4496, allocations: 3.938 kB / 0.7818 GB, free: 4.379 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.4497, allocations: 42.52 kB / 0.7819 GB, free: 4.328 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.593e-06/0.4497, allocations: 0 / 0.7819 GB, free: 4.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002169/0.4518, allocations: 1.125 MB / 0.783 GB, free: 3.105 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.4519, allocations: 59.41 kB / 0.783 GB, free: 3.035 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002963/0.4522, allocations: 292.5 kB / 0.7833 GB, free: 2.742 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.4522, allocations: 33.7 kB / 0.7833 GB, free: 2.703 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.4524, allocations: 231.6 kB / 0.7836 GB, free: 2.473 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.119e-05/0.4525, allocations: 86.73 kB / 0.7836 GB, free: 2.387 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.4526, allocations: 62.03 kB / 0.7837 GB, free: 2.316 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4527, allocations: 338.8 kB / 0.784 GB, free: 1.977 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.4529, allocations: 104.5 kB / 0.7841 GB, free: 1.875 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000212/0.4531, allocations: 191.8 kB / 0.7843 GB, free: 1.648 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003815/0.4535, allocations: 311.3 kB / 0.7846 GB, free: 1.312 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4535, allocations: 7.922 kB / 0.7846 GB, free: 1.305 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007294/0.4542, allocations: 437.8 kB / 0.785 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.4542, allocations: 8.344 kB / 0.785 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.4543, allocations: 7.938 kB / 0.785 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003497/0.4546, allocations: 102.4 kB / 0.7851 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.4549, allocations: 63.91 kB / 0.7852 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.4582, allocations: 4.383 MB / 0.7895 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.4585, allocations: 12.19 kB / 0.7895 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.4585, allocations: 16 kB / 0.7895 GB, free: 11.84 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002061/0.4587, allocations: 185.7 kB / 0.7897 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.17e-05/0.4588, allocations: 35.56 kB / 0.7897 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.596e-05/0.4589, allocations: 38.31 kB / 0.7898 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.4589, allocations: 4 kB / 0.7898 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.4589, allocations: 4 kB / 0.7898 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.4589, allocations: 0 / 0.7898 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004437/0.4594, allocations: 397.4 kB / 0.7901 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.4594, allocations: 0 / 0.7901 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.4596, allocations: 35.92 kB / 0.7902 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000303/0.4599, allocations: 98.42 kB / 0.7903 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4599, allocations: 8 kB / 0.7903 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/0.463, allocations: 4.383 MB / 0.7946 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.463, allocations: 0 / 0.7946 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.4638, allocations: 0.5582 MB / 0.7951 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.4639, allocations: 128.7 kB / 0.7952 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.464, allocations: 4 kB / 0.7952 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.4642, allocations: 8 kB / 0.7952 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.4642, allocations: 19.97 kB / 0.7953 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.4643, allocations: 8 kB / 0.7953 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000191/0.4645, allocations: 215 kB / 0.7955 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4645, allocations: 4.062 kB / 0.7955 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000444/0.4649, allocations: 99.94 kB / 0.7956 GB, free: 5.102 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001197/0.465, allocations: 107.2 kB / 0.7957 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008038/0.4658, allocations: 0.6093 MB / 0.7963 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4659, allocations: 0 / 0.7963 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004813/0.4663, allocations: 464.3 kB / 0.7967 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.4668, allocations: 74.61 kB / 0.7968 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.468, allocations: 0.7545 MB / 0.7975 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.4685, allocations: 0.835 MB / 0.7983 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.4686, allocations: 27.44 kB / 0.7984 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of SimCode: time 1.744e-06/0.4686, allocations: 0 / 0.7984 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of Templates: time 0.01131/0.4799, allocations: 8.704 MB / 0.8069 GB, free: 9.41 MB / 0.5762 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)