Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001474/0.001474, allocations: 108 kB / 15.61 MB, free: 152 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.001767/0.001767, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.506/1.506, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.831/2.831, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001493, allocations: 63.91 kB / 0.8692 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7512/0.7527, allocations: 151.6 MB / 1.017 GB, free: 2.551 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007206/0.76, allocations: 5.476 MB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003842/0.7639, allocations: 2.623 MB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002473/0.7641, allocations: 19.88 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001645/0.7658, allocations: 0.6846 MB / 1.026 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007707/0.7666, allocations: 409.7 kB / 1.026 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008228/0.7674, allocations: 394.9 kB / 1.027 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008741/0.7683, allocations: 0.9474 MB / 1.028 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000611/0.7689, allocations: 468.4 kB / 1.028 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000444/0.7694, allocations: 366.6 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004838/0.7699, allocations: 406.5 kB / 1.029 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.194e-05/0.77, allocations: 48 kB / 1.029 GB, free: 6.715 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006506/0.7706, allocations: 363.2 kB / 1.029 GB, free: 6.359 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002463/0.7709, allocations: 255.3 kB / 1.029 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003267/0.7712, allocations: 342.3 kB / 1.03 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009838/0.7722, allocations: 0.9617 MB / 1.031 GB, free: 4.809 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.7722, allocations: 4 kB / 1.031 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7722, allocations: 0 / 1.031 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.7722, allocations: 0 / 1.031 GB, free: 4.805 MB / 0.7794 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.001575/0.7738, allocations: 0.9698 MB / 1.032 GB, free: 3.785 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.7739, allocations: 12.03 kB / 1.032 GB, free: 3.773 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001313/0.7752, allocations: 191.9 kB / 1.032 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006389/0.7758, allocations: 490.4 kB / 1.032 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.7759, allocations: 41.36 kB / 1.032 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.776, allocations: 44.56 kB / 1.032 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.7772, allocations: 0.8318 MB / 1.033 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.7773, allocations: 11.84 kB / 1.033 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.634e-05/0.7774, allocations: 27.98 kB / 1.033 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001883/0.7776, allocations: 64.89 kB / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008911/0.7785, allocations: 0.5775 MB / 1.034 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.7828, allocations: 4.573 MB / 1.038 GB, free: 12.47 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.7833, allocations: 295.3 kB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.7836, allocations: 229.3 kB / 1.039 GB, free: 11.95 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.7836, allocations: 4.281 kB / 1.039 GB, free: 11.94 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.7836, allocations: 34.84 kB / 1.039 GB, free: 11.9 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 2.074e-06/0.7836, allocations: 0 / 1.039 GB, free: 11.9 MB / 0.795 GB Notification: Performance of matching and sorting (n=40): time 0.005393/0.789, allocations: 2.634 MB / 1.041 GB, free: 9.137 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.7891, allocations: 55.41 kB / 1.041 GB, free: 9.07 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000464/0.7896, allocations: 457.9 kB / 1.042 GB, free: 8.613 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.7896, allocations: 33.7 kB / 1.042 GB, free: 8.574 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000204/0.7898, allocations: 339.7 kB / 1.042 GB, free: 8.234 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.7899, allocations: 149.9 kB / 1.042 GB, free: 8.086 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.7901, allocations: 102.2 kB / 1.042 GB, free: 7.98 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.7902, allocations: 362.8 kB / 1.043 GB, free: 7.617 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.7906, allocations: 236.9 kB / 1.043 GB, free: 7.387 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.791, allocations: 410.5 kB / 1.043 GB, free: 6.906 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/0.7918, allocations: 0.674 MB / 1.044 GB, free: 6.16 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.7918, allocations: 4 kB / 1.044 GB, free: 6.156 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001586/0.7934, allocations: 0.9207 MB / 1.045 GB, free: 5.219 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.7935, allocations: 8 kB / 1.045 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.7935, allocations: 12 kB / 1.045 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007592/0.7942, allocations: 231 kB / 1.045 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005046/0.7948, allocations: 115.8 kB / 1.045 GB, free: 4.852 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004868/0.7996, allocations: 5.339 MB / 1.051 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.8001, allocations: 39.97 kB / 1.051 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.594e-05/0.8002, allocations: 20 kB / 1.051 GB, free: 15.02 MB / 0.8106 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.0002995/0.8005, allocations: 226.2 kB / 1.051 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.123e-05/0.8006, allocations: 59.28 kB / 1.051 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.802, allocations: 0.7697 MB / 1.052 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.802, allocations: 4 kB / 1.052 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.802, allocations: 4 kB / 1.052 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.802, allocations: 0 / 1.052 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.8045, allocations: 1.495 MB / 1.053 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.8045, allocations: 4 kB / 1.053 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003743/0.8049, allocations: 67.88 kB / 1.053 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006928/0.8056, allocations: 210.5 kB / 1.053 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.8056, allocations: 12.05 kB / 1.053 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005391/0.811, allocations: 5.278 MB / 1.059 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.811, allocations: 7.938 kB / 1.059 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/0.8128, allocations: 1.127 MB / 1.06 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.8131, allocations: 164.4 kB / 1.06 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.8132, allocations: 15.92 kB / 1.06 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.8135, allocations: 27.97 kB / 1.06 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.046e-05/0.8136, allocations: 43.89 kB / 1.06 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.8136, allocations: 16 kB / 1.06 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003237/0.814, allocations: 306.9 kB / 1.06 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.814, allocations: 0 / 1.06 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006576/0.8146, allocations: 168 kB / 1.06 GB, free: 4.445 MB / 0.8106 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.0001576/0.8148, allocations: 119.1 kB / 1.06 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001585/0.8164, allocations: 1.067 MB / 1.062 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.8164, allocations: 4 kB / 1.062 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009018/0.8173, allocations: 0.6838 MB / 1.062 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008434/0.8182, allocations: 175.3 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.8201, allocations: 1.266 MB / 1.064 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000677/0.8208, allocations: 0.9455 MB / 1.065 GB, free: 32 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003514/0.8212, allocations: 121 kB / 1.065 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.539e-05/0.8213, allocations: 39.44 kB / 1.065 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of SimCode: time 8.42e-07/0.8213, allocations: 0 / 1.065 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of Templates: time 0.01522/0.8365, allocations: 8.843 MB / 1.073 GB, free: 7.148 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches