Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.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.001112/0.001112, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 173 kB / 16.92 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.712/2.712, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005342/0.0005342, allocations: 5.812 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3177, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005108/0.3229, allocations: 4.006 MB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003083/0.326, allocations: 1.819 MB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003163/0.3264, allocations: 11.94 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000283/0.3267, allocations: 75.42 kB / 1.065 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007166/0.3274, allocations: 254.9 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006973/0.3281, allocations: 231.5 kB / 1.066 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009183/0.329, allocations: 0.8374 MB / 1.066 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006011/0.3296, allocations: 443.4 kB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003184/0.33, allocations: 195.2 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.3305, allocations: 259 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.997e-05/0.3306, allocations: 20 kB / 1.067 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005403/0.3312, allocations: 315.3 kB / 1.068 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.3313, allocations: 131.6 kB / 1.068 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.3316, allocations: 220.7 kB / 1.068 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005754/0.3322, allocations: 463.1 kB / 1.068 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3322, allocations: 4 kB / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3322, allocations: 0 / 1.068 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.3322, allocations: 0 / 1.068 GB, free: 11.64 MB / 0.8262 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.001228/0.3334, allocations: 0.6667 MB / 1.069 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3335, allocations: 8.031 kB / 1.069 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001069/0.3346, allocations: 156.2 kB / 1.069 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.335, allocations: 318.6 kB / 1.069 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.346e-05/0.3351, allocations: 29.38 kB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.437e-05/0.3351, allocations: 28.38 kB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008585/0.336, allocations: 0.5356 MB / 1.07 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.336, allocations: 3.938 kB / 1.07 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/0.3361, allocations: 20 kB / 1.07 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-05/0.3361, allocations: 24.64 kB / 1.07 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005962/0.3367, allocations: 386.3 kB / 1.07 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.3394, allocations: 2.423 MB / 1.073 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005313/0.3399, allocations: 258.5 kB / 1.073 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.3401, allocations: 110.3 kB / 1.073 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.3401, allocations: 4 kB / 1.073 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.3402, allocations: 46.48 kB / 1.073 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.204e-06/0.3402, allocations: 0 / 1.073 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002224/0.3424, allocations: 1.117 MB / 1.074 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.3425, allocations: 59.41 kB / 1.074 GB, free: 5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.3428, allocations: 308.3 kB / 1.075 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.3428, allocations: 29.7 kB / 1.075 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.343, allocations: 227.6 kB / 1.075 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.97e-05/0.343, allocations: 78.84 kB / 1.075 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.985e-05/0.3431, allocations: 37.7 kB / 1.075 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.3432, allocations: 338.8 kB / 1.075 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.3434, allocations: 100.6 kB / 1.075 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.3436, allocations: 195.7 kB / 1.076 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.3441, allocations: 316.1 kB / 1.076 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3441, allocations: 4 kB / 1.076 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007514/0.3448, allocations: 445.9 kB / 1.076 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3449, allocations: 8 kB / 1.076 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3449, allocations: 0 / 1.076 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003609/0.3452, allocations: 102.6 kB / 1.076 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.3455, allocations: 63.91 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003052/0.3486, allocations: 4.072 MB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3489, allocations: 11.98 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.3489, allocations: 16 kB / 1.081 GB, free: 14.16 MB / 0.8419 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.0002145/0.3491, allocations: 185.8 kB / 1.081 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.484e-05/0.3492, allocations: 31.62 kB / 1.081 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.582e-05/0.3493, allocations: 42.31 kB / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3493, allocations: 4 kB / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.3493, allocations: 0 / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.3493, allocations: 0 / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004731/0.3498, allocations: 397.3 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3498, allocations: 4 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.35, allocations: 47.84 kB / 1.081 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003112/0.3503, allocations: 86.5 kB / 1.081 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3504, allocations: 8 kB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002901/0.3533, allocations: 4.068 MB / 1.085 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3533, allocations: 0 / 1.085 GB, free: 8.832 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008305/0.3541, allocations: 0.5664 MB / 1.086 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.3543, allocations: 128.7 kB / 1.086 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.3543, allocations: 8 kB / 1.086 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.3545, allocations: 11.98 kB / 1.086 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.3546, allocations: 20.05 kB / 1.086 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.3546, allocations: 4 kB / 1.086 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002111/0.3548, allocations: 215.1 kB / 1.086 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3548, allocations: 0 / 1.086 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004739/0.3553, allocations: 92 kB / 1.086 GB, free: 7.758 MB / 0.8419 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.0001566/0.3555, allocations: 107.2 kB / 1.086 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0009673/0.3564, allocations: 0.6013 MB / 1.087 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3565, allocations: 0.6875 kB / 1.087 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.357, allocations: 479.9 kB / 1.087 GB, free: 6.496 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.3575, allocations: 73.05 kB / 1.087 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.3588, allocations: 0.948 MB / 1.088 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.3593, allocations: 0.8347 MB / 1.089 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.275e-05/0.3594, allocations: 27.44 kB / 1.089 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.3594, allocations: 0 / 1.089 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of Templates: time 0.01188/0.3713, allocations: 8.614 MB / 1.098 GB, free: 11.95 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches