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.001141/0.001141, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001183/0.001183, allocations: 187 kB / 17.34 MB, free: 5.762 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.382/1.382, 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.002164/0.002164, allocations: 289.1 kB / 291.5 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9378/0.9378, allocations: 169.2 MB / 0.499 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001804, allocations: 99.84 kB / 0.6821 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4424/0.4442, 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.005574/0.4499, allocations: 4.335 MB / 0.7713 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002851/0.4527, allocations: 1.858 MB / 0.7731 GB, free: 13.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/0.453, allocations: 11.94 kB / 0.7731 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.4546, allocations: 0.5992 MB / 0.7737 GB, free: 13.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006223/0.4552, allocations: 262.6 kB / 0.7739 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006304/0.4559, allocations: 257.5 kB / 0.7742 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006272/0.4565, allocations: 0.611 MB / 0.7748 GB, free: 11.97 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006499/0.4572, allocations: 466.8 kB / 0.7752 GB, free: 11.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.4574, allocations: 247.1 kB / 0.7755 GB, free: 11.27 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.4579, allocations: 271 kB / 0.7757 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.4579, allocations: 40 kB / 0.7758 GB, free: 10.97 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004136/0.4583, allocations: 251.4 kB / 0.776 GB, free: 10.72 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.4585, allocations: 147.6 kB / 0.7761 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001993/0.4587, allocations: 219 kB / 0.7763 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006471/0.4594, allocations: 0.6138 MB / 0.7769 GB, free: 9.75 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4594, allocations: 3.984 kB / 0.7769 GB, free: 9.746 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.764e-06/0.4594, allocations: 0 / 0.7769 GB, free: 9.746 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.4594, allocations: 0 / 0.7769 GB, free: 9.746 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.001217/0.4606, allocations: 0.7252 MB / 0.7777 GB, free: 8.969 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.4607, allocations: 8.031 kB / 0.7777 GB, free: 8.961 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00097/0.4616, allocations: 152.2 kB / 0.7778 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004195/0.4621, allocations: 338.5 kB / 0.7781 GB, free: 8.445 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.4621, allocations: 33.36 kB / 0.7782 GB, free: 8.414 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.755e-05/0.4622, allocations: 28.38 kB / 0.7782 GB, free: 8.387 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007514/0.4629, allocations: 0.5318 MB / 0.7787 GB, free: 7.824 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.463, allocations: 7.938 kB / 0.7787 GB, free: 7.816 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.463, allocations: 16 kB / 0.7787 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-05/0.4631, allocations: 32.62 kB / 0.7788 GB, free: 7.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000551/0.4636, allocations: 382.3 kB / 0.7791 GB, free: 7.395 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.466, allocations: 2.403 MB / 0.7815 GB, free: 4.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.4666, allocations: 264.8 kB / 0.7817 GB, free: 4.504 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.4667, allocations: 109.1 kB / 0.7818 GB, free: 4.395 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.4668, allocations: 4 kB / 0.7818 GB, free: 4.391 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.4668, allocations: 38.52 kB / 0.7819 GB, free: 4.344 MB / 0.545 GB Notification: Performance of pre-optimization done (n=20): time 1.983e-06/0.4668, allocations: 3.938 kB / 0.7819 GB, free: 4.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=23): time 0.002135/0.469, allocations: 1.135 MB / 0.783 GB, free: 3.109 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.469, allocations: 55.41 kB / 0.783 GB, free: 3.043 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.4693, allocations: 300.5 kB / 0.7833 GB, free: 2.742 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4693, allocations: 29.7 kB / 0.7833 GB, free: 2.707 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.4695, allocations: 235.6 kB / 0.7836 GB, free: 2.473 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.4695, allocations: 82.75 kB / 0.7837 GB, free: 2.391 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-05/0.4696, allocations: 58.03 kB / 0.7837 GB, free: 2.324 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.4697, allocations: 338.8 kB / 0.784 GB, free: 1.984 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.4699, allocations: 104.6 kB / 0.7841 GB, free: 1.883 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.4701, allocations: 187.8 kB / 0.7843 GB, free: 1.66 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/0.4705, allocations: 319.2 kB / 0.7846 GB, free: 1.316 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4705, allocations: 0 / 0.7846 GB, free: 1.316 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007153/0.4712, allocations: 441.7 kB / 0.785 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.4713, allocations: 4 kB / 0.785 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4713, allocations: 12.28 kB / 0.7851 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003564/0.4716, allocations: 98.48 kB / 0.7851 GB, free: 0.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.4719, allocations: 59.91 kB / 0.7852 GB, free: 0.6914 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.475, allocations: 4.391 MB / 0.7895 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.4752, allocations: 16.16 kB / 0.7895 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.4753, allocations: 12 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.0002094/0.4755, allocations: 184.1 kB / 0.7897 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.509e-05/0.4756, allocations: 35.56 kB / 0.7897 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.961e-05/0.4756, allocations: 42.31 kB / 0.7898 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4757, allocations: 0 / 0.7898 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.4757, allocations: 4 kB / 0.7898 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4757, allocations: 4 kB / 0.7898 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004314/0.4761, allocations: 397.4 kB / 0.7902 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4761, allocations: 0 / 0.7902 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.4763, allocations: 43.84 kB / 0.7902 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003063/0.4766, allocations: 90.5 kB / 0.7903 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.4767, allocations: 4 kB / 0.7903 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002923/0.4796, allocations: 4.395 MB / 0.7946 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4796, allocations: 0 / 0.7946 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008157/0.4804, allocations: 0.5522 MB / 0.7951 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.4806, allocations: 124.7 kB / 0.7952 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.4806, allocations: 4 kB / 0.7952 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.4809, allocations: 12 kB / 0.7952 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.4809, allocations: 19.97 kB / 0.7953 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.4809, allocations: 4 kB / 0.7953 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002082/0.4811, allocations: 215.1 kB / 0.7955 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4812, allocations: 4.062 kB / 0.7955 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004689/0.4816, allocations: 103.9 kB / 0.7956 GB, free: 5.105 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.0001281/0.4818, allocations: 105.4 kB / 0.7957 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008085/0.4826, allocations: 0.6075 MB / 0.7963 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4826, allocations: 0 / 0.7963 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004642/0.4831, allocations: 472 kB / 0.7967 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004859/0.4836, allocations: 76.91 kB / 0.7968 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.4847, allocations: 0.7449 MB / 0.7975 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.4851, allocations: 0.8389 MB / 0.7983 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.478e-05/0.4852, allocations: 27.44 kB / 0.7984 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.4852, allocations: 3.938 kB / 0.7984 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of Templates: time 0.01029/0.4955, allocations: 8.697 MB / 0.8069 GB, free: 9.418 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)