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.001372/0.001371, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001395/0.001395, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.412/1.412, allocations: 222.9 MB / 241 MB, free: 15.16 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.413/2.413, allocations: 390.3 MB / 0.6655 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.89 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7366/0.738, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006414/0.7444, allocations: 4.36 MB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003138/0.7476, allocations: 1.865 MB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004708/0.7481, allocations: 11.62 kB / 1.095 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.7499, allocations: 0.5947 MB / 1.095 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0008221/0.7507, allocations: 261 kB / 1.096 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008244/0.7515, allocations: 254.8 kB / 1.096 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001017/0.7526, allocations: 0.6067 MB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008745/0.7534, allocations: 478 kB / 1.097 GB, free: 160 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005469/0.754, allocations: 252.8 kB / 1.097 GB, free: 48 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007333/0.7547, allocations: 266.2 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.7549, allocations: 36.84 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007001/0.7556, allocations: 253.4 kB / 1.098 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.7559, allocations: 149.7 kB / 1.098 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004336/0.7563, allocations: 219.3 kB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00116/0.7575, allocations: 0.6091 MB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.7575, allocations: 0 / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.592e-06/0.7575, allocations: 5.062 kB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.276e-05/0.7575, allocations: 0.6094 kB / 1.099 GB, free: 15.45 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.001697/0.7592, allocations: 0.7211 MB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.7593, allocations: 9.969 kB / 1.099 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001091/0.7604, allocations: 154.3 kB / 1.099 GB, free: 14.86 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.761, allocations: 331.2 kB / 1.1 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.761, allocations: 27.94 kB / 1.1 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-05/0.7611, allocations: 33.47 kB / 1.1 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009589/0.7621, allocations: 0.5345 MB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.7621, allocations: 1.719 kB / 1.1 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/0.7621, allocations: 12.38 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.752e-05/0.7622, allocations: 36.66 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007144/0.7629, allocations: 387.1 kB / 1.101 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.7659, allocations: 2.4 MB / 1.103 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005759/0.7665, allocations: 265.4 kB / 1.103 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.7667, allocations: 112.2 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.7668, allocations: 1.531 kB / 1.103 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.7668, allocations: 33.27 kB / 1.103 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 2.856e-06/0.7668, allocations: 3.938 kB / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002662/0.7695, allocations: 1.129 MB / 1.105 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.7695, allocations: 54 kB / 1.105 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.7699, allocations: 301.8 kB / 1.105 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.77, allocations: 31.61 kB / 1.105 GB, free: 10.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.7701, allocations: 227 kB / 1.105 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.397e-05/0.7702, allocations: 85.25 kB / 1.105 GB, free: 10.6 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.7703, allocations: 65.3 kB / 1.105 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.7705, allocations: 339.2 kB / 1.106 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.7707, allocations: 104 kB / 1.106 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.7709, allocations: 187.4 kB / 1.106 GB, free: 10.05 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.7713, allocations: 322.7 kB / 1.106 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.7713, allocations: 1.438 kB / 1.106 GB, free: 9.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008127/0.7722, allocations: 441.3 kB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.7722, allocations: 6.578 kB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.7722, allocations: 3.625 kB / 1.107 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.7726, allocations: 100.1 kB / 1.107 GB, free: 9.594 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.7729, allocations: 64.25 kB / 1.107 GB, free: 9.586 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.7765, allocations: 4.388 MB / 1.111 GB, free: 5.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.7769, allocations: 8.5 kB / 1.111 GB, free: 5.254 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.777, allocations: 18.64 kB / 1.111 GB, free: 5.246 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.0003405/0.7773, allocations: 180 kB / 1.111 GB, free: 5.098 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.7774, allocations: 36.34 kB / 1.111 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.7775, allocations: 37.22 kB / 1.111 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.7775, allocations: 3.766 kB / 1.111 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.7776, allocations: 0.9688 kB / 1.111 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.7776, allocations: 2.406 kB / 1.111 GB, free: 5.055 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000765/0.7783, allocations: 396.1 kB / 1.112 GB, free: 4.785 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.7784, allocations: 0.7969 kB / 1.112 GB, free: 4.785 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002262/0.7786, allocations: 44.52 kB / 1.112 GB, free: 4.773 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003914/0.779, allocations: 91.83 kB / 1.112 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.779, allocations: 5.344 kB / 1.112 GB, free: 4.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003297/0.7823, allocations: 4.388 MB / 1.116 GB, free: 408 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.7824, allocations: 3.938 kB / 1.116 GB, free: 404 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009362/0.7833, allocations: 0.5571 MB / 1.117 GB, free: 80 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.7835, allocations: 124.4 kB / 1.117 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.505e-05/0.7836, allocations: 5.703 kB / 1.117 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.7838, allocations: 15.8 kB / 1.117 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.7839, allocations: 14.86 kB / 1.117 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.7839, allocations: 9.219 kB / 1.117 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002497/0.7842, allocations: 209.7 kB / 1.117 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7842, allocations: 0 / 1.117 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005532/0.7847, allocations: 106.9 kB / 1.117 GB, free: 15.81 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.000134/0.7849, allocations: 110 kB / 1.117 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0009165/0.7858, allocations: 0.5994 MB / 1.118 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.7858, allocations: 1.125 kB / 1.118 GB, free: 15.29 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.7864, allocations: 468.3 kB / 1.118 GB, free: 14.91 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005552/0.7869, allocations: 84.28 kB / 1.118 GB, free: 14.88 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.7884, allocations: 0.7533 MB / 1.119 GB, free: 14.43 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.7889, allocations: 0.8305 MB / 1.12 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.789, allocations: 29.12 kB / 1.12 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of SimCode: time 6.91e-07/0.789, allocations: 0.5625 kB / 1.12 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of Templates: time 0.01415/0.8031, allocations: 8.689 MB / 1.128 GB, free: 13.05 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/jenkins1/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