Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007291/0.007291, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001798/0.001798, allocations: 198.2 kB / 16.79 MB, free: 5.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.392/1.392, allocations: 222.9 MB / 240.5 MB, free: 4.539 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.541/2.541, allocations: 390.2 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001578/0.001578, allocations: 71.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7521/0.7537, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006148/0.7599, allocations: 5.485 MB / 0.955 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004006/0.764, allocations: 2.633 MB / 0.9575 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000465/0.7645, allocations: 19.53 kB / 0.9575 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.766, allocations: 0.6339 MB / 0.9582 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009061/0.7669, allocations: 387.1 kB / 0.9585 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008904/0.7678, allocations: 358.2 kB / 0.9589 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001074/0.7689, allocations: 1.255 MB / 0.9601 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007252/0.7696, allocations: 456.7 kB / 0.9605 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.7701, allocations: 326.3 kB / 0.9608 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004832/0.7706, allocations: 407.6 kB / 0.9612 GB, free: 416 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.566e-05/0.7707, allocations: 33.88 kB / 0.9613 GB, free: 416 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007807/0.7715, allocations: 442.3 kB / 0.9617 GB, free: 176 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002306/0.7717, allocations: 238 kB / 0.9619 GB, free: 24 kB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0004207/0.7722, allocations: 323.2 kB / 0.9622 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008955/0.7731, allocations: 0.7477 MB / 0.963 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.7731, allocations: 1.094 kB / 0.963 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of FrontEnd: time 7.91e-07/0.7731, allocations: 0 / 0.963 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.246e-05/0.7731, allocations: 0 / 0.963 GB, free: 15.32 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001738/0.7749, allocations: 0.9666 MB / 0.9639 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.7749, allocations: 8.719 kB / 0.9639 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001479/0.7764, allocations: 198.5 kB / 0.9641 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007629/0.7772, allocations: 485.8 kB / 0.9646 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.7772, allocations: 37.77 kB / 0.9646 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.7774, allocations: 55.19 kB / 0.9646 GB, free: 14 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.7786, allocations: 0.8315 MB / 0.9655 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.518e-05/0.7787, allocations: 2.25 kB / 0.9655 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.949e-05/0.7787, allocations: 31.11 kB / 0.9655 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002084/0.7789, allocations: 70.77 kB / 0.9656 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009403/0.7799, allocations: 0.5718 MB / 0.9661 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.7846, allocations: 4.579 MB / 0.9706 GB, free: 8.789 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.7851, allocations: 296.6 kB / 0.9709 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003109/0.7854, allocations: 225.7 kB / 0.9711 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.7855, allocations: 8.156 kB / 0.9711 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.7855, allocations: 33.56 kB / 0.9711 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.245e-06/0.7855, allocations: 3.938 kB / 0.9711 GB, free: 8.465 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.006113/0.7916, allocations: 2.632 MB / 0.9737 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.7917, allocations: 55.34 kB / 0.9738 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.7923, allocations: 461.5 kB / 0.9742 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.222e-05/0.7923, allocations: 31.89 kB / 0.9742 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.7926, allocations: 339.8 kB / 0.9745 GB, free: 6.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.7927, allocations: 143.6 kB / 0.9747 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.7929, allocations: 109.8 kB / 0.9748 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.793, allocations: 360.1 kB / 0.9751 GB, free: 5.516 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.7934, allocations: 235.1 kB / 0.9754 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005138/0.7939, allocations: 410.2 kB / 0.9757 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009378/0.7949, allocations: 0.6776 MB / 0.9764 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.7949, allocations: 1.156 kB / 0.9764 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001844/0.7967, allocations: 0.9252 MB / 0.9773 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.7968, allocations: 6.875 kB / 0.9773 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.7968, allocations: 8.844 kB / 0.9773 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008759/0.7977, allocations: 222.5 kB / 0.9775 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005203/0.7982, allocations: 113.4 kB / 0.9776 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005046/0.8033, allocations: 4.941 MB / 0.9825 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006035/0.8039, allocations: 27.97 kB / 0.9825 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.8039, allocations: 24 kB / 0.9825 GB, free: 15.05 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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 {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003692/0.8043, allocations: 225.5 kB / 0.9827 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.8044, allocations: 59.48 kB / 0.9828 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.8061, allocations: 0.7811 MB / 0.9836 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.8061, allocations: 4 kB / 0.9836 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.8061, allocations: 0 / 0.9836 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.8061, allocations: 11.98 kB / 0.9836 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.8086, allocations: 1.486 MB / 0.985 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.8087, allocations: 4.172 kB / 0.985 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004061/0.8091, allocations: 71.89 kB / 0.9851 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007146/0.8098, allocations: 202.6 kB / 0.9853 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.453e-05/0.8098, allocations: 8 kB / 0.9853 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00476/0.8146, allocations: 4.873 MB / 0.9901 GB, free: 6.809 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.8147, allocations: 7.938 kB / 0.9901 GB, free: 6.801 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.8166, allocations: 1.143 MB / 0.9912 GB, free: 5.609 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.8169, allocations: 168.4 kB / 0.9913 GB, free: 5.426 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.876e-05/0.8169, allocations: 11.94 kB / 0.9914 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/0.8173, allocations: 27.97 kB / 0.9914 GB, free: 5.387 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.8174, allocations: 35.89 kB / 0.9914 GB, free: 5.352 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.8175, allocations: 16 kB / 0.9914 GB, free: 5.336 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003699/0.8178, allocations: 306.9 kB / 0.9917 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8178, allocations: 4.062 kB / 0.9917 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007666/0.8186, allocations: 167.9 kB / 0.9919 GB, free: 4.871 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,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.0001925/0.8188, allocations: 119.2 kB / 0.992 GB, free: 4.742 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001705/0.8205, allocations: 1.012 MB / 0.993 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.8205, allocations: 0 / 0.993 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.8216, allocations: 0.6876 MB / 0.9937 GB, free: 2.965 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009624/0.8225, allocations: 164.9 kB / 0.9938 GB, free: 2.809 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.825, allocations: 1.558 MB / 0.9953 GB, free: 1.195 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005786/0.8256, allocations: 0.9416 MB / 0.9963 GB, free: 232 kB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.8257, allocations: 39.44 kB / 0.9963 GB, free: 196 kB / 0.7481 GB Notification: Performance of SimCode: time 5.51e-07/0.8257, allocations: 3.938 kB / 0.9963 GB, free: 192 kB / 0.7481 GB Notification: Performance of Templates: time 0.01997/0.8457, allocations: 14.76 MB / 1.011 GB, free: 1.469 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches