Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001831/0.001831, allocations: 108.9 kB / 16.37 MB, free: 6.465 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.00213/0.00213, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.632/2.632, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 62.44 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3786, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007628/0.3863, allocations: 5.461 MB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004903/0.3912, allocations: 2.642 MB / 1.035 GB, free: 9.965 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005204/0.3918, allocations: 23.88 kB / 1.035 GB, free: 9.941 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.3937, allocations: 0.669 MB / 1.035 GB, free: 9.27 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.395, allocations: 409.7 kB / 1.036 GB, free: 8.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.3962, allocations: 402.2 kB / 1.036 GB, free: 8.477 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00107/0.3972, allocations: 0.9474 MB / 1.037 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006568/0.3979, allocations: 474.5 kB / 1.037 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004658/0.3984, allocations: 362.6 kB / 1.038 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000491/0.3989, allocations: 402.4 kB / 1.038 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.747e-05/0.399, allocations: 48 kB / 1.038 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006928/0.3997, allocations: 371.2 kB / 1.039 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.3999, allocations: 243.4 kB / 1.039 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.4002, allocations: 342.2 kB / 1.039 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000998/0.4012, allocations: 0.9773 MB / 1.04 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4012, allocations: 3.938 kB / 1.04 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4012, allocations: 4 kB / 1.04 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.4013, allocations: 0 / 1.04 GB, free: 4.332 MB / 0.8106 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.001523/0.4028, allocations: 0.9582 MB / 1.041 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4028, allocations: 11.97 kB / 1.041 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/0.4042, allocations: 195.9 kB / 1.041 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008184/0.405, allocations: 0.5179 MB / 1.042 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.789e-05/0.405, allocations: 33.38 kB / 1.042 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.4052, allocations: 64.45 kB / 1.042 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4063, allocations: 0.8318 MB / 1.043 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.4063, allocations: 4 kB / 1.043 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-05/0.4064, allocations: 27.94 kB / 1.043 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/0.4066, allocations: 64.89 kB / 1.043 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008207/0.4074, allocations: 0.5736 MB / 1.043 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004223/0.4116, allocations: 4.573 MB / 1.048 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/0.4121, allocations: 291.3 kB / 1.048 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.4124, allocations: 233.2 kB / 1.048 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.4124, allocations: 4.281 kB / 1.048 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.4125, allocations: 34.84 kB / 1.048 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=33): time 1.613e-06/0.4125, allocations: 0 / 1.048 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of matching and sorting (n=40): time 0.005345/0.4178, allocations: 2.627 MB / 1.051 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.4179, allocations: 55.41 kB / 1.051 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004932/0.4184, allocations: 461.9 kB / 1.051 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.4184, allocations: 33.7 kB / 1.051 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002289/0.4187, allocations: 335.7 kB / 1.052 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.4188, allocations: 145.9 kB / 1.052 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.4189, allocations: 110.1 kB / 1.052 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.4191, allocations: 362.8 kB / 1.052 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.4194, allocations: 241 kB / 1.053 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.4199, allocations: 410.4 kB / 1.053 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.4207, allocations: 0.6779 MB / 1.054 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.4207, allocations: 0 / 1.054 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00155/0.4223, allocations: 0.9251 MB / 1.055 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.4223, allocations: 8 kB / 1.055 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4223, allocations: 4 kB / 1.055 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007448/0.4231, allocations: 222.6 kB / 1.055 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.4236, allocations: 111.8 kB / 1.055 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.4286, allocations: 5.34 MB / 1.06 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.4291, allocations: 27.97 kB / 1.06 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.4291, allocations: 24 kB / 1.06 GB, free: 14.55 MB / 0.8419 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.0003522/0.4295, allocations: 229.7 kB / 1.06 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-05/0.4296, allocations: 63.22 kB / 1.06 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.4309, allocations: 0.7773 MB / 1.061 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.431, allocations: 4 kB / 1.061 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.431, allocations: 4 kB / 1.061 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.431, allocations: 0 / 1.061 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.4333, allocations: 1.491 MB / 1.063 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4333, allocations: 4.219 kB / 1.063 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.4337, allocations: 75.88 kB / 1.063 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006271/0.4343, allocations: 202.4 kB / 1.063 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.4344, allocations: 8.188 kB / 1.063 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004568/0.4389, allocations: 5.278 MB / 1.068 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.439, allocations: 144 / 1.068 GB, free: 5.879 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.4407, allocations: 1.139 MB / 1.069 GB, free: 4.691 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.441, allocations: 168.5 kB / 1.069 GB, free: 4.508 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.983e-05/0.4411, allocations: 19.92 kB / 1.069 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.4415, allocations: 23.97 kB / 1.069 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.4416, allocations: 31.95 kB / 1.069 GB, free: 4.434 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/0.4416, allocations: 12 kB / 1.069 GB, free: 4.422 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003386/0.442, allocations: 310.9 kB / 1.07 GB, free: 4.121 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.442, allocations: 7.875 kB / 1.07 GB, free: 4.113 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006871/0.4427, allocations: 168 kB / 1.07 GB, free: 3.949 MB / 0.8419 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.0001615/0.4428, allocations: 111.2 kB / 1.07 GB, free: 3.832 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001608/0.4444, allocations: 1.016 MB / 1.071 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4445, allocations: 0 / 1.071 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000928/0.4454, allocations: 0.676 MB / 1.072 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008846/0.4463, allocations: 181.2 kB / 1.072 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.4484, allocations: 1.241 MB / 1.073 GB, free: 0.5938 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5257/0.9741, allocations: 0.9458 MB / 1.074 GB, free: 52.27 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0005131/0.9746, allocations: 112 kB / 1.074 GB, free: 52.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.9748, allocations: 37.12 kB / 1.074 GB, free: 52.26 MB / 0.8419 GB Notification: Performance of SimCode: time 1.032e-06/0.9748, allocations: 0 / 1.074 GB, free: 52.26 MB / 0.8419 GB Notification: Performance of Templates: time 0.02282/0.9976, allocations: 8.844 MB / 1.083 GB, free: 52.04 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches