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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001375/0.001375, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 196.2 kB / 16.79 MB, free: 6.809 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.375/1.375, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.2 MB / 0.6649 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 67.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5873/0.5887, allocations: 140.3 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00453/0.5933, allocations: 4.39 MB / 0.9539 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002264/0.5956, allocations: 1.854 MB / 0.9557 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001669/0.5958, allocations: 15.09 kB / 0.9557 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.597, allocations: 0.5616 MB / 0.9562 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004441/0.5975, allocations: 250.8 kB / 0.9565 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.598, allocations: 223.8 kB / 0.9567 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005848/0.5986, allocations: 0.8415 MB / 0.9575 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.599, allocations: 314.3 kB / 0.9578 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.5992, allocations: 211.9 kB / 0.958 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003596/0.5996, allocations: 270.2 kB / 0.9583 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.668e-05/0.5996, allocations: 25.88 kB / 0.9583 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004576/0.6001, allocations: 319.7 kB / 0.9586 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.6002, allocations: 137.5 kB / 0.9587 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.6004, allocations: 210.5 kB / 0.9589 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.6008, allocations: 475.1 kB / 0.9594 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.6008, allocations: 1.281 kB / 0.9594 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.42e-07/0.6009, allocations: 0 / 0.9594 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.6009, allocations: 0 / 0.9594 GB, free: 2.02 MB / 0.7169 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.001122/0.602, allocations: 0.7268 MB / 0.9601 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.602, allocations: 9.906 kB / 0.9601 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009779/0.603, allocations: 144.9 kB / 0.9602 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.6034, allocations: 338.3 kB / 0.9606 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.6034, allocations: 26.19 kB / 0.9606 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.999e-05/0.6035, allocations: 34.53 kB / 0.9606 GB, free: 1 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006852/0.6042, allocations: 0.5358 MB / 0.9612 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.6042, allocations: 1.344 kB / 0.9612 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.6042, allocations: 20.39 kB / 0.9612 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.703e-05/0.6043, allocations: 31.67 kB / 0.9612 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005382/0.6048, allocations: 386.2 kB / 0.9616 GB, free: 440 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.6072, allocations: 2.401 MB / 0.9639 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005136/0.6077, allocations: 263.4 kB / 0.9642 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.6079, allocations: 106.7 kB / 0.9643 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.6079, allocations: 6.031 kB / 0.9643 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.608, allocations: 36.88 kB / 0.9643 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.608, allocations: 0 / 0.9643 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23): time 0.002213/0.6102, allocations: 1.127 MB / 0.9654 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.6102, allocations: 58.12 kB / 0.9655 GB, free: 13 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.6106, allocations: 303.3 kB / 0.9658 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.6106, allocations: 31.52 kB / 0.9658 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.6108, allocations: 232.9 kB / 0.966 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.811e-05/0.6108, allocations: 77.91 kB / 0.9661 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.6109, allocations: 61.97 kB / 0.9661 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.6111, allocations: 338.2 kB / 0.9665 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.6113, allocations: 112.7 kB / 0.9666 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002301/0.6115, allocations: 200 kB / 0.9668 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.6119, allocations: 320.6 kB / 0.9671 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.6119, allocations: 0.9688 kB / 0.9671 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007676/0.6127, allocations: 444.2 kB / 0.9675 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.6127, allocations: 6.312 kB / 0.9675 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.6128, allocations: 1.969 kB / 0.9675 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.6131, allocations: 103.8 kB / 0.9676 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003097/0.6134, allocations: 60.22 kB / 0.9677 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.6166, allocations: 4.067 MB / 0.9716 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.6169, allocations: 8.375 kB / 0.9716 GB, free: 7.156 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.6169, allocations: 22.19 kB / 0.9717 GB, free: 7.145 MB / 0.7325 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.0002255/0.6171, allocations: 195.2 kB / 0.9718 GB, free: 6.973 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-05/0.6172, allocations: 28.12 kB / 0.9719 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.299e-05/0.6173, allocations: 36.91 kB / 0.9719 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.6173, allocations: 2.75 kB / 0.9719 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.6173, allocations: 1.438 kB / 0.9719 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.6173, allocations: 0 / 0.9719 GB, free: 6.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.6178, allocations: 405.5 kB / 0.9723 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.6178, allocations: 0 / 0.9723 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.618, allocations: 34.91 kB / 0.9723 GB, free: 6.578 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003101/0.6183, allocations: 95.16 kB / 0.9724 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.6184, allocations: 9.344 kB / 0.9724 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004166/0.6225, allocations: 4.056 MB / 0.9764 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6226, allocations: 0 / 0.9764 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.6236, allocations: 0.5578 MB / 0.9769 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.6239, allocations: 133 kB / 0.9771 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.6239, allocations: 1 kB / 0.9771 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.6242, allocations: 10.19 kB / 0.9771 GB, free: 1.852 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.6243, allocations: 24.16 kB / 0.9771 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.6243, allocations: 8.906 kB / 0.9771 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002992/0.6246, allocations: 214.8 kB / 0.9773 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.974e-06/0.6246, allocations: 0 / 0.9773 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007513/0.6254, allocations: 99.62 kB / 0.9774 GB, free: 1.676 MB / 0.7325 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.0002077/0.6256, allocations: 102.2 kB / 0.9775 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00122/0.6268, allocations: 0.6097 MB / 0.9781 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.6268, allocations: 0 / 0.9781 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007367/0.6276, allocations: 478.9 kB / 0.9786 GB, free: 0.6836 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008586/0.6285, allocations: 78.91 kB / 0.9786 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.6305, allocations: 0.8994 MB / 0.9795 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005953/0.6311, allocations: 0.8303 MB / 0.9803 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.6313, allocations: 25.84 kB / 0.9803 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of SimCode: time 3.086e-06/0.6313, allocations: 0 / 0.9803 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of Templates: time 0.01354/0.6448, allocations: 8.669 MB / 0.9888 GB, free: 8.301 MB / 0.7481 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