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.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.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.002014/0.002014, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002991/0.002992, allocations: 191.5 kB / 16.14 MB, free: 6.645 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.541/1.541, allocations: 222.9 MB / 239.8 MB, free: 4.57 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.526/2.526, allocations: 390.2 MB / 0.6642 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.89 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8601/0.8615, allocations: 140.4 MB / 0.9489 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007785/0.8693, allocations: 5.489 MB / 0.9543 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005137/0.8745, allocations: 2.636 MB / 0.9569 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007183/0.8753, allocations: 20.16 kB / 0.9569 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.8771, allocations: 0.6299 MB / 0.9575 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001065/0.8782, allocations: 386.6 kB / 0.9579 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000958/0.8791, allocations: 359 kB / 0.9582 GB, free: 1.699 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001363/0.8805, allocations: 1.251 MB / 0.9594 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007373/0.8812, allocations: 457.1 kB / 0.9599 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005133/0.8818, allocations: 321.7 kB / 0.9602 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005171/0.8823, allocations: 415.8 kB / 0.9606 GB, free: 372 kB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.869e-05/0.8824, allocations: 34.44 kB / 0.9606 GB, free: 372 kB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008092/0.8832, allocations: 442 kB / 0.961 GB, free: 132 kB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.8835, allocations: 230.2 kB / 0.9612 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003607/0.8838, allocations: 330.5 kB / 0.9616 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001118/0.885, allocations: 0.9756 MB / 0.9625 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.885, allocations: 0 / 0.9625 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.492e-06/0.885, allocations: 1.156 kB / 0.9625 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.885, allocations: 0 / 0.9625 GB, free: 15.12 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.001793/0.8868, allocations: 0.9695 MB / 0.9635 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.8868, allocations: 13.41 kB / 0.9635 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.8883, allocations: 187.6 kB / 0.9637 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/0.889, allocations: 492.5 kB / 0.9641 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/0.8891, allocations: 33.75 kB / 0.9642 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.8892, allocations: 55.23 kB / 0.9642 GB, free: 13.81 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.8905, allocations: 0.8275 MB / 0.965 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.8905, allocations: 6.125 kB / 0.965 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.361e-05/0.8906, allocations: 23.16 kB / 0.965 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002014/0.8908, allocations: 66.81 kB / 0.9651 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009549/0.8917, allocations: 0.5712 MB / 0.9657 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004771/0.8965, allocations: 4.591 MB / 0.9701 GB, free: 8.594 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004735/0.897, allocations: 296 kB / 0.9704 GB, free: 8.434 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.8974, allocations: 227.3 kB / 0.9706 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.8974, allocations: 2.938 kB / 0.9706 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.8974, allocations: 37.81 kB / 0.9707 GB, free: 8.273 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.414e-06/0.8974, allocations: 3.938 kB / 0.9707 GB, free: 8.27 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005707/0.9032, allocations: 2.631 MB / 0.9733 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.9032, allocations: 55.69 kB / 0.9733 GB, free: 6.492 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000554/0.9038, allocations: 462 kB / 0.9738 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.9038, allocations: 31.33 kB / 0.9738 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002358/0.9041, allocations: 343.5 kB / 0.9741 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.9042, allocations: 140.7 kB / 0.9742 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.9044, allocations: 106.2 kB / 0.9743 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.9045, allocations: 362.7 kB / 0.9747 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000358/0.9049, allocations: 240.2 kB / 0.9749 GB, free: 5.203 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.9054, allocations: 405.9 kB / 0.9753 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008856/0.9063, allocations: 0.6778 MB / 0.976 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.9063, allocations: 1.312 kB / 0.976 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001698/0.908, allocations: 0.9288 MB / 0.9769 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.908, allocations: 6.125 kB / 0.9769 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.908, allocations: 6.625 kB / 0.9769 GB, free: 3.859 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007866/0.9088, allocations: 229.2 kB / 0.9771 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.9093, allocations: 113.3 kB / 0.9772 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00514/0.9145, allocations: 4.933 MB / 0.982 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005965/0.9151, allocations: 32.03 kB / 0.9821 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.684e-05/0.9152, allocations: 24 kB / 0.9821 GB, free: 14.85 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.0004038/0.9156, allocations: 229.5 kB / 0.9823 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.9157, allocations: 55.34 kB / 0.9824 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.9172, allocations: 0.7733 MB / 0.9831 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.9172, allocations: 4 kB / 0.9831 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.9172, allocations: 4 kB / 0.9831 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.9172, allocations: 3.984 kB / 0.9831 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.9197, allocations: 1.498 MB / 0.9846 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.9197, allocations: 0 / 0.9846 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003753/0.9201, allocations: 71.89 kB / 0.9847 GB, free: 12.1 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006732/0.9208, allocations: 202.8 kB / 0.9848 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.329e-05/0.9208, allocations: 16 kB / 0.9849 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004569/0.9254, allocations: 4.873 MB / 0.9896 GB, free: 6.605 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.9254, allocations: 4.031 kB / 0.9896 GB, free: 6.602 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.9272, allocations: 1.139 MB / 0.9907 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003075/0.9275, allocations: 164.4 kB / 0.9909 GB, free: 5.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.9277, allocations: 16.06 kB / 0.9909 GB, free: 5.219 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.928, allocations: 23.97 kB / 0.9909 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.9281, allocations: 39.83 kB / 0.991 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.9282, allocations: 16 kB / 0.991 GB, free: 5.141 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000363/0.9285, allocations: 310.9 kB / 0.9913 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9285, allocations: 0 / 0.9913 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007608/0.9293, allocations: 175.9 kB / 0.9915 GB, free: 4.668 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.0001806/0.9295, allocations: 111.2 kB / 0.9916 GB, free: 4.547 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001662/0.9312, allocations: 1.012 MB / 0.9925 GB, free: 3.496 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.9312, allocations: 3.938 kB / 0.9926 GB, free: 3.492 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000931/0.9321, allocations: 0.6798 MB / 0.9932 GB, free: 2.773 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008907/0.933, allocations: 171.6 kB / 0.9934 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.9354, allocations: 1.503 MB / 0.9948 GB, free: 1.055 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.9359, allocations: 0.9455 MB / 0.9958 GB, free: 84 kB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003835/0.9363, allocations: 109.1 kB / 0.9959 GB, free: 15.97 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.9365, allocations: 39.44 kB / 0.9959 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of SimCode: time 5.91e-07/0.9365, allocations: 0 / 0.9959 GB, free: 15.93 MB / 0.7637 GB Notification: Performance of Templates: time 0.01577/0.9522, allocations: 8.538 MB / 1.004 GB, free: 7.512 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/jenkins/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