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.0009889/0.000989, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001194/0.001194, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 223.3 MB / 240 MB, free: 5.219 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.993/2.993, allocations: 462.6 MB / 0.736 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000502/0.0005024, allocations: 12.64 kB / 0.9021 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4135, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005284/0.4189, allocations: 3.828 MB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003174/0.4221, allocations: 1.746 MB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00037/0.4225, allocations: 11.94 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003217/0.4228, allocations: 67.42 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007277/0.4236, allocations: 214.9 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006997/0.4243, allocations: 179.6 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000956/0.4253, allocations: 0.6775 MB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005725/0.4258, allocations: 393.6 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.4262, allocations: 199.2 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005977/0.4268, allocations: 255 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.523e-05/0.4269, allocations: 20 kB / 1.065 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004287/0.4274, allocations: 127.8 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.4276, allocations: 127.6 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.4277, allocations: 101.5 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006613/0.4284, allocations: 459 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4284, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.865e-06/0.4284, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.696e-05/0.4284, allocations: 0 / 1.066 GB, free: 12.88 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.001364/0.4298, allocations: 0.6588 MB / 1.067 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.4299, allocations: 8.031 kB / 1.067 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.4309, allocations: 159.3 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.4314, allocations: 321.3 kB / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.4314, allocations: 28.98 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.387e-05/0.4315, allocations: 28 kB / 1.067 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008493/0.4324, allocations: 0.5314 MB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.4324, allocations: 3.938 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.4324, allocations: 12 kB / 1.068 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.439e-05/0.4325, allocations: 32.64 kB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005924/0.4331, allocations: 382.3 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002915/0.436, allocations: 2.423 MB / 1.071 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000533/0.4366, allocations: 250.5 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.4368, allocations: 108.8 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.4368, allocations: 4 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.4369, allocations: 38.84 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.813e-06/0.4369, allocations: 0 / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.002311/0.4392, allocations: 1.126 MB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.4393, allocations: 55.41 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.4396, allocations: 304.4 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.4396, allocations: 33.64 kB / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.4398, allocations: 231.6 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/0.4399, allocations: 86.69 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.4399, allocations: 8 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4401, allocations: 338.8 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.4402, allocations: 100.6 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.4405, allocations: 191.7 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.4407, allocations: 137.8 kB / 1.074 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4407, allocations: 4 kB / 1.074 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007663/0.4415, allocations: 434.2 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4415, allocations: 9.406 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4415, allocations: 4 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.4419, allocations: 98.67 kB / 1.074 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.4422, allocations: 63.91 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/0.4458, allocations: 4.068 MB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.4461, allocations: 12.06 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.4461, allocations: 12 kB / 1.078 GB, free: 15.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002543/0.4464, allocations: 177.8 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.697e-05/0.4465, allocations: 31.62 kB / 1.078 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.4466, allocations: 42.31 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-06/0.4466, allocations: 0 / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.4466, allocations: 11.95 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4466, allocations: 3.984 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004783/0.4471, allocations: 397.4 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.4471, allocations: 0 / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.4473, allocations: 43.92 kB / 1.079 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/0.4476, allocations: 90.5 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.4476, allocations: 4 kB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002907/0.4505, allocations: 4.068 MB / 1.083 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4505, allocations: 3.938 kB / 1.083 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000811/0.4514, allocations: 0.5564 MB / 1.083 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.4515, allocations: 124.7 kB / 1.084 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.4516, allocations: 4 kB / 1.084 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.4518, allocations: 19.98 kB / 1.084 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.977e-05/0.4518, allocations: 19.98 kB / 1.084 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.4518, allocations: 11.95 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002329/0.4521, allocations: 207.1 kB / 1.084 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4521, allocations: 0 / 1.084 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004816/0.4526, allocations: 96 kB / 1.084 GB, free: 9.277 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000125/0.4527, allocations: 107.2 kB / 1.084 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007976/0.4535, allocations: 0.6057 MB / 1.085 GB, free: 8.52 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4535, allocations: 4.188 kB / 1.085 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004696/0.454, allocations: 471.9 kB / 1.085 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.4545, allocations: 77.61 kB / 1.085 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.4557, allocations: 0.8525 MB / 1.086 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.4561, allocations: 0.8309 MB / 1.087 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002104/0.4563, allocations: 66.91 kB / 1.087 GB, free: 6.137 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.4564, allocations: 23.44 kB / 1.087 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of SimCode: time 2.61e-07/0.4564, allocations: 0 / 1.087 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of Templates: time 0.008003/0.4644, allocations: 4.087 MB / 1.091 GB, free: 2.066 MB / 0.8419 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/jenkins/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