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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001337/0.001337, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001385/0.001385, allocations: 191.4 kB / 16.14 MB, free: 6.734 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.888/2.888, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.39 kB / 0.8984 GB, free: 37.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2962, allocations: 157.4 MB / 1.052 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005899/0.3021, allocations: 4.395 MB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002755/0.3049, allocations: 1.854 MB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.3051, allocations: 11.94 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.3067, allocations: 0.5716 MB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005299/0.3072, allocations: 242.9 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006089/0.3079, allocations: 231.5 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007709/0.3086, allocations: 0.8374 MB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004778/0.3091, allocations: 310.9 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002688/0.3094, allocations: 211.1 kB / 1.061 GB, free: 164 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004479/0.3099, allocations: 271 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.577e-05/0.3099, allocations: 28 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005186/0.3105, allocations: 315.3 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.3106, allocations: 139.6 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.3108, allocations: 214.9 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006436/0.3115, allocations: 0.6077 MB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3115, allocations: 0 / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.81e-07/0.3115, allocations: 0 / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.3115, allocations: 0 / 1.062 GB, free: 14.6 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.001244/0.3127, allocations: 0.7301 MB / 1.063 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3128, allocations: 12.03 kB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009969/0.3138, allocations: 140.3 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.3143, allocations: 334.5 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.3143, allocations: 21.38 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.3144, allocations: 40.38 kB / 1.063 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007311/0.3151, allocations: 0.5317 MB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3151, allocations: 7.922 kB / 1.064 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.3152, allocations: 16 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.867e-05/0.3152, allocations: 32.64 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005601/0.3158, allocations: 386.3 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002501/0.3183, allocations: 2.407 MB / 1.067 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.3188, allocations: 258.5 kB / 1.067 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.319, allocations: 112.8 kB / 1.067 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.3191, allocations: 4 kB / 1.067 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3191, allocations: 34.56 kB / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 2.755e-06/0.3191, allocations: 3.938 kB / 1.067 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23): time 0.00225/0.3214, allocations: 1.128 MB / 1.068 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.3214, allocations: 51.41 kB / 1.068 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/0.3217, allocations: 308.3 kB / 1.068 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.3217, allocations: 33.7 kB / 1.068 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.3219, allocations: 227.6 kB / 1.069 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.968e-05/0.322, allocations: 82.84 kB / 1.069 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.3221, allocations: 61.94 kB / 1.069 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3222, allocations: 342.8 kB / 1.069 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.3224, allocations: 104.6 kB / 1.069 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.3226, allocations: 187.7 kB / 1.069 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003869/0.323, allocations: 332.1 kB / 1.07 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.323, allocations: 4 kB / 1.07 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007256/0.3237, allocations: 441.8 kB / 1.07 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.3237, allocations: 9.094 kB / 1.07 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.3238, allocations: 0 / 1.07 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003685/0.3241, allocations: 94.69 kB / 1.07 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.3244, allocations: 67.91 kB / 1.07 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/0.3276, allocations: 4.068 MB / 1.074 GB, free: 1.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.3278, allocations: 12 kB / 1.074 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.3278, allocations: 12.16 kB / 1.074 GB, free: 1.035 MB / 0.8262 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.0001998/0.328, allocations: 179.2 kB / 1.074 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.3281, allocations: 35.62 kB / 1.075 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.726e-05/0.3282, allocations: 42.31 kB / 1.075 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3282, allocations: 4 kB / 1.075 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3282, allocations: 0 / 1.075 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3282, allocations: 0 / 1.075 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000439/0.3287, allocations: 409.3 kB / 1.075 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.3287, allocations: 0 / 1.075 GB, free: 332 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.3289, allocations: 39.91 kB / 1.075 GB, free: 292 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002983/0.3292, allocations: 90.5 kB / 1.075 GB, free: 192 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.684e-05/0.3292, allocations: 8 kB / 1.075 GB, free: 184 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/0.3321, allocations: 4.068 MB / 1.079 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3321, allocations: 0 / 1.079 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.333, allocations: 0.556 MB / 1.08 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.3331, allocations: 124.8 kB / 1.08 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.3331, allocations: 4 kB / 1.08 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.3334, allocations: 15.98 kB / 1.08 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.3334, allocations: 16.05 kB / 1.08 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.3334, allocations: 8 kB / 1.08 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000208/0.3337, allocations: 211.1 kB / 1.08 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3337, allocations: 0 / 1.08 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004522/0.3341, allocations: 100 kB / 1.08 GB, free: 10.64 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.0001189/0.3342, allocations: 103.2 kB / 1.08 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008011/0.3351, allocations: 0.6073 MB / 1.081 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3351, allocations: 0 / 1.081 GB, free: 9.891 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.3356, allocations: 472.6 kB / 1.081 GB, free: 9.391 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.3361, allocations: 82.44 kB / 1.081 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.3373, allocations: 0.857 MB / 1.082 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.3378, allocations: 0.8387 MB / 1.083 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002058/0.338, allocations: 58.94 kB / 1.083 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.874e-05/0.3381, allocations: 27.44 kB / 1.083 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3381, allocations: 0 / 1.083 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of Templates: time 0.008197/0.3463, allocations: 4.261 MB / 1.087 GB, free: 3.258 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