Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001346/0.001346, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.413/1.413, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.605/2.605, allocations: 437.1 MB / 0.7111 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 60.09 kB / 0.8699 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3707, allocations: 151.6 MB / 1.018 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009435/0.3802, allocations: 6.732 MB / 1.025 GB, free: 3.812 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005975/0.3862, allocations: 3.043 MB / 1.028 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007611/0.387, allocations: 23.88 kB / 1.028 GB, free: 0.7344 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.002666/0.3898, allocations: 0.9485 MB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.001637/0.3914, allocations: 0.5051 MB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001246/0.3927, allocations: 419.1 kB / 1.029 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001701/0.3944, allocations: 1.228 MB / 1.031 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.3955, allocations: 0.6625 MB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007975/0.3963, allocations: 474.2 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007152/0.397, allocations: 0.5137 MB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.3971, allocations: 64 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008507/0.398, allocations: 383.2 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003324/0.3983, allocations: 311.2 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004948/0.3988, allocations: 449.7 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.4003, allocations: 1.195 MB / 1.035 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.4003, allocations: 3.938 kB / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4003, allocations: 4 kB / 1.035 GB, free: 9.598 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.444e-05/0.4004, allocations: 0 / 1.035 GB, free: 9.598 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002036/0.4024, allocations: 1.157 MB / 1.036 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.4025, allocations: 20.86 kB / 1.036 GB, free: 8.371 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/0.4041, allocations: 231.6 kB / 1.036 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008699/0.4049, allocations: 0.5452 MB / 1.036 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.405, allocations: 49.67 kB / 1.036 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.4051, allocations: 64.36 kB / 1.037 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.4067, allocations: 1.089 MB / 1.038 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.4068, allocations: 4 kB / 1.038 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.508e-05/0.4068, allocations: 27.98 kB / 1.038 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/0.407, allocations: 85.25 kB / 1.038 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.4082, allocations: 0.7581 MB / 1.038 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006047/0.4143, allocations: 5.901 MB / 1.044 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.4153, allocations: 0.5507 MB / 1.045 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004588/0.4158, allocations: 326 kB / 1.045 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.4159, allocations: 4.438 kB / 1.045 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.4159, allocations: 42.94 kB / 1.045 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.595e-06/0.4159, allocations: 0 / 1.045 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48): time 0.004117/0.42, allocations: 1.99 MB / 1.047 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.4201, allocations: 55.84 kB / 1.047 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/0.4208, allocations: 0.5509 MB / 1.048 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.079e-05/0.4209, allocations: 37.7 kB / 1.048 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.4212, allocations: 410.9 kB / 1.048 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.4214, allocations: 169.6 kB / 1.048 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.4216, allocations: 138.5 kB / 1.048 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001937/0.4218, allocations: 370.7 kB / 1.049 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000425/0.4222, allocations: 277.8 kB / 1.049 GB, free: 9.992 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.4228, allocations: 493 kB / 1.049 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.4239, allocations: 0.8132 MB / 1.05 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.4239, allocations: 4 kB / 1.05 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001907/0.4259, allocations: 1.079 MB / 1.051 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4259, allocations: 8 kB / 1.051 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.466e-05/0.4259, allocations: 8.844 kB / 1.051 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008571/0.4268, allocations: 283.2 kB / 1.052 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004915/0.4273, allocations: 127.7 kB / 1.052 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007326/0.4346, allocations: 7.142 MB / 1.059 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007086/0.4354, allocations: 40.03 kB / 1.059 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.559e-05/0.4354, allocations: 32 kB / 1.059 GB, free: 15.21 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (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.0004173/0.4359, allocations: 249.5 kB / 1.059 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.436, allocations: 71.23 kB / 1.059 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001638/0.4376, allocations: 0.8923 MB / 1.06 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4377, allocations: 4 kB / 1.06 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.4377, allocations: 4 kB / 1.06 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.4377, allocations: 3.984 kB / 1.06 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/0.4404, allocations: 1.713 MB / 1.062 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.4405, allocations: 4 kB / 1.062 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.4408, allocations: 72.02 kB / 1.062 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007754/0.4415, allocations: 263.2 kB / 1.062 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.4416, allocations: 12 kB / 1.062 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007201/0.4488, allocations: 7.131 MB / 1.069 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.904e-06/0.4488, allocations: 4 kB / 1.069 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.4506, allocations: 0.9796 MB / 1.07 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003326/0.451, allocations: 192.1 kB / 1.07 GB, free: 2.871 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.399e-05/0.4511, allocations: 15.98 kB / 1.07 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/0.4515, allocations: 36.05 kB / 1.07 GB, free: 2.82 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.4516, allocations: 39.94 kB / 1.07 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.414e-05/0.4516, allocations: 16 kB / 1.07 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000485/0.4521, allocations: 387 kB / 1.071 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.4e-07/0.4521, allocations: 3.938 kB / 1.071 GB, free: 2.391 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008578/0.453, allocations: 224 kB / 1.071 GB, free: 2.172 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001756/0.4532, allocations: 116.4 kB / 1.071 GB, free: 2.051 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002224/0.4554, allocations: 1.334 MB / 1.072 GB, free: 0.6641 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4554, allocations: 4.125 kB / 1.072 GB, free: 0.6602 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.4774/0.9328, allocations: 0.8819 MB / 1.073 GB, free: 59.9 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.9343, allocations: 216.3 kB / 1.073 GB, free: 59.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.9369, allocations: 1.403 MB / 1.075 GB, free: 59.37 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006279/0.9376, allocations: 1.009 MB / 1.076 GB, free: 58.67 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.9378, allocations: 45.75 kB / 1.076 GB, free: 58.67 MB / 0.8419 GB Notification: Performance of SimCode: time 9.71e-07/0.9378, allocations: 0 / 1.076 GB, free: 58.67 MB / 0.8419 GB Notification: Performance of Templates: time 0.03332/0.9711, allocations: 20.64 MB / 1.096 GB, free: 55.38 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches