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.008864/0.008864, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001475/0.001475, allocations: 197.1 kB / 16.68 MB, free: 5.977 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.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.508/2.508, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 62.5 kB / 0.9508 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3344, allocations: 140.4 MB / 1.088 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006071/0.3406, allocations: 4.35 MB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002985/0.3436, allocations: 1.862 MB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.3438, allocations: 15.94 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.3455, allocations: 0.596 MB / 1.095 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.3462, allocations: 258.6 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006786/0.3468, allocations: 248.6 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006341/0.3475, allocations: 0.6188 MB / 1.096 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007024/0.3482, allocations: 466.8 kB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002408/0.3485, allocations: 247.2 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004203/0.3489, allocations: 279 kB / 1.097 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.337e-05/0.3489, allocations: 36 kB / 1.097 GB, free: 8.543 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004053/0.3494, allocations: 255.4 kB / 1.097 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3495, allocations: 147.6 kB / 1.097 GB, free: 8.148 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.3497, allocations: 219 kB / 1.097 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006301/0.3504, allocations: 0.6036 MB / 1.098 GB, free: 7.328 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3504, allocations: 4 kB / 1.098 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.196e-06/0.3504, allocations: 4 kB / 1.098 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.305e-06/0.3504, allocations: 3.938 kB / 1.098 GB, free: 7.316 MB / 0.8575 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.00124/0.3517, allocations: 0.7213 MB / 1.099 GB, free: 6.543 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3517, allocations: 8.031 kB / 1.099 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009578/0.3527, allocations: 152.2 kB / 1.099 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005188/0.3532, allocations: 338.5 kB / 1.099 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.3532, allocations: 25.36 kB / 1.099 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.845e-05/0.3533, allocations: 36.38 kB / 1.099 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.3541, allocations: 0.5356 MB / 1.1 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3541, allocations: 0 / 1.1 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.3541, allocations: 12 kB / 1.1 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-05/0.3542, allocations: 36.58 kB / 1.1 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000576/0.3548, allocations: 390.3 kB / 1.1 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.3573, allocations: 2.399 MB / 1.102 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/0.3578, allocations: 256.4 kB / 1.103 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.358, allocations: 116.7 kB / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.358, allocations: 0 / 1.103 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.3581, allocations: 42.56 kB / 1.103 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.3581, allocations: 0 / 1.103 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23): time 0.002168/0.3603, allocations: 1.121 MB / 1.104 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.3603, allocations: 59.41 kB / 1.104 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.3606, allocations: 304.3 kB / 1.104 GB, free: 328 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.309e-05/0.3606, allocations: 33.7 kB / 1.104 GB, free: 288 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.3608, allocations: 223.6 kB / 1.104 GB, free: 60 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.782e-05/0.3609, allocations: 83 kB / 1.105 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.609e-05/0.361, allocations: 65.94 kB / 1.105 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3611, allocations: 342.8 kB / 1.105 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.3613, allocations: 96.61 kB / 1.105 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.3615, allocations: 199.7 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.3619, allocations: 315.5 kB / 1.105 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3619, allocations: 0 / 1.105 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007021/0.3626, allocations: 449.8 kB / 1.106 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3626, allocations: 8 kB / 1.106 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3627, allocations: 4 kB / 1.106 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.363, allocations: 94.66 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.3633, allocations: 63.91 kB / 1.106 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003238/0.3665, allocations: 4.391 MB / 1.11 GB, free: 9.438 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.3668, allocations: 8 kB / 1.11 GB, free: 9.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.3668, allocations: 12 kB / 1.11 GB, free: 9.418 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.0002038/0.367, allocations: 177.8 kB / 1.111 GB, free: 9.234 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.108e-05/0.3671, allocations: 35.77 kB / 1.111 GB, free: 9.195 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.889e-05/0.3672, allocations: 46.3 kB / 1.111 GB, free: 9.152 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3672, allocations: 7.938 kB / 1.111 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3672, allocations: 0 / 1.111 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3672, allocations: 3.984 kB / 1.111 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005123/0.3677, allocations: 393.4 kB / 1.111 GB, free: 8.707 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3677, allocations: 0 / 1.111 GB, free: 8.707 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001872/0.3679, allocations: 43.84 kB / 1.111 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002858/0.3682, allocations: 94.5 kB / 1.111 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.3683, allocations: 4 kB / 1.111 GB, free: 8.559 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.3713, allocations: 4.379 MB / 1.115 GB, free: 3.754 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3713, allocations: 7.969 kB / 1.115 GB, free: 3.746 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007868/0.3721, allocations: 0.5614 MB / 1.116 GB, free: 3.16 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001511/0.3723, allocations: 120.7 kB / 1.116 GB, free: 3.023 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.3723, allocations: 8 kB / 1.116 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.3725, allocations: 7.984 kB / 1.116 GB, free: 3.008 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.816e-05/0.3726, allocations: 16.05 kB / 1.116 GB, free: 2.992 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.3726, allocations: 19.94 kB / 1.116 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002206/0.3729, allocations: 207.1 kB / 1.116 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3729, allocations: 0 / 1.116 GB, free: 2.773 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004624/0.3733, allocations: 99.94 kB / 1.116 GB, free: 2.676 MB / 0.8731 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.0001293/0.3735, allocations: 107.8 kB / 1.117 GB, free: 2.562 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009239/0.3744, allocations: 0.603 MB / 1.117 GB, free: 1.922 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3744, allocations: 0 / 1.117 GB, free: 1.922 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005115/0.3749, allocations: 472.6 kB / 1.118 GB, free: 1.422 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.3755, allocations: 81.98 kB / 1.118 GB, free: 1.348 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.3768, allocations: 0.7048 MB / 1.118 GB, free: 0.6172 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.3773, allocations: 0.8311 MB / 1.119 GB, free: 15.75 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001668/0.3774, allocations: 54.94 kB / 1.119 GB, free: 15.7 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.815e-05/0.3775, allocations: 27.44 kB / 1.119 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of SimCode: time 2e-07/0.3775, allocations: 0 / 1.119 GB, free: 15.67 MB / 0.8887 GB Notification: Performance of Templates: time 0.008621/0.3861, allocations: 4.504 MB / 1.124 GB, free: 11.21 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