Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.01098/0.01098, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.002682/0.002682, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.418/2.418, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.91 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006234/1.058, allocations: 4.35 MB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003374/1.061, allocations: 1.858 MB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003201/1.062, allocations: 12.19 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.00178/1.064, allocations: 0.591 MB / 1.095 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008291/1.064, allocations: 266 kB / 1.095 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009288/1.065, allocations: 253.6 kB / 1.095 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009444/1.066, allocations: 0.6079 MB / 1.096 GB, free: 388 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/1.067, allocations: 479.3 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004708/1.068, allocations: 249.2 kB / 1.096 GB, free: 72 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006548/1.068, allocations: 269.9 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.09e-05/1.069, allocations: 37.19 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007599/1.069, allocations: 252.1 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002427/1.07, allocations: 154.5 kB / 1.097 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003196/1.07, allocations: 222.8 kB / 1.097 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001118/1.071, allocations: 0.6035 MB / 1.098 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/1.071, allocations: 3.938 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.274e-06/1.071, allocations: 1.312 kB / 1.098 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.309e-05/1.071, allocations: 0 / 1.098 GB, free: 15.46 MB / 0.8731 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.001482/1.073, allocations: 0.74 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/1.073, allocations: 10.3 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/1.074, allocations: 147.2 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005719/1.074, allocations: 343.2 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/1.074, allocations: 26.06 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/1.074, allocations: 30.91 kB / 1.099 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009862/1.075, allocations: 0.5393 MB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/1.075, allocations: 3.938 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.114e-05/1.075, allocations: 18.03 kB / 1.1 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-05/1.076, allocations: 28.58 kB / 1.1 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007246/1.076, allocations: 386.9 kB / 1.1 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003018/1.079, allocations: 2.404 MB / 1.102 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006254/1.08, allocations: 265.3 kB / 1.103 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/1.08, allocations: 111.2 kB / 1.103 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/1.08, allocations: 3.281 kB / 1.103 GB, free: 11.9 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/1.08, allocations: 40.62 kB / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 2.414e-06/1.08, allocations: 0 / 1.103 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002757/1.083, allocations: 1.126 MB / 1.104 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/1.083, allocations: 54.81 kB / 1.104 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003911/1.083, allocations: 303 kB / 1.104 GB, free: 10.87 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/1.083, allocations: 31.17 kB / 1.104 GB, free: 10.84 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000177/1.084, allocations: 239.6 kB / 1.104 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.068e-05/1.084, allocations: 89.12 kB / 1.105 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/1.084, allocations: 66.91 kB / 1.105 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.084, allocations: 337.8 kB / 1.105 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/1.084, allocations: 101.1 kB / 1.105 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/1.085, allocations: 190.6 kB / 1.105 GB, free: 10.02 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004759/1.085, allocations: 318.6 kB / 1.106 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.085, allocations: 0 / 1.106 GB, free: 9.812 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008058/1.086, allocations: 442.6 kB / 1.106 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/1.086, allocations: 7.266 kB / 1.106 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/1.086, allocations: 2.75 kB / 1.106 GB, free: 9.609 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003955/1.086, allocations: 99.69 kB / 1.106 GB, free: 9.566 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/1.087, allocations: 61.09 kB / 1.106 GB, free: 9.562 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/1.09, allocations: 4.4 MB / 1.11 GB, free: 5.223 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/1.091, allocations: 20.12 kB / 1.11 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.423e-05/1.091, allocations: 14.95 kB / 1.11 GB, free: 5.203 MB / 0.8731 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.0002978/1.091, allocations: 176.2 kB / 1.111 GB, free: 5.059 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/1.091, allocations: 35.16 kB / 1.111 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.097e-05/1.091, allocations: 42.2 kB / 1.111 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/1.091, allocations: 2.594 kB / 1.111 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.091, allocations: 1.469 kB / 1.111 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/1.091, allocations: 5.219 kB / 1.111 GB, free: 5.008 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005886/1.092, allocations: 401.1 kB / 1.111 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.092, allocations: 0 / 1.111 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/1.092, allocations: 38.03 kB / 1.111 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003311/1.092, allocations: 91.23 kB / 1.111 GB, free: 4.691 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/1.092, allocations: 5.125 kB / 1.111 GB, free: 4.688 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003382/1.096, allocations: 4.385 MB / 1.115 GB, free: 368 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.096, allocations: 3.984 kB / 1.115 GB, free: 364 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009398/1.097, allocations: 0.5659 MB / 1.116 GB, free: 32 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/1.097, allocations: 128.2 kB / 1.116 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.888e-05/1.097, allocations: 1.312 kB / 1.116 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/1.097, allocations: 12.33 kB / 1.116 GB, free: 15.91 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/1.097, allocations: 18.66 kB / 1.116 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/1.097, allocations: 5.375 kB / 1.116 GB, free: 15.9 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002668/1.098, allocations: 216.9 kB / 1.116 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.098, allocations: 4.062 kB / 1.116 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0006308/1.098, allocations: 99.03 kB / 1.117 GB, free: 15.77 MB / 0.8887 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.0001667/1.098, allocations: 105.3 kB / 1.117 GB, free: 15.68 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001129/1.1, allocations: 0.6029 MB / 1.117 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.1, allocations: 0 / 1.117 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005838/1.1, allocations: 473.1 kB / 1.118 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/1.101, allocations: 81.86 kB / 1.118 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/1.102, allocations: 0.7182 MB / 1.118 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/1.103, allocations: 0.8341 MB / 1.119 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002812/1.103, allocations: 62.39 kB / 1.119 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.003e-05/1.103, allocations: 23.78 kB / 1.119 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of SimCode: time 1.102e-06/1.103, allocations: 0 / 1.119 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of Templates: time 0.0139/1.117, allocations: 4.491 MB / 1.124 GB, free: 13.35 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches