Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,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.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001985/0.001985, allocations: 105.2 kB / 15.99 MB, free: 6.355 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.002086/0.002086, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.351/1.351, allocations: 222.9 MB / 240.6 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.569/2.569, allocations: 469.4 MB / 0.7423 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 64.47 kB / 0.9083 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2988, allocations: 159.1 MB / 1.064 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.0126/0.3114, allocations: 10.86 MB / 1.074 GB, free: 4.492 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.5507/0.8622, allocations: 8.696 MB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.8639, allocations: 57.58 kB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004046/0.8679, allocations: 1.575 MB / 1.084 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004762/0.8727, allocations: 1.391 MB / 1.086 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002063/0.8748, allocations: 0.6235 MB / 1.086 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.003939/0.8787, allocations: 2.277 MB / 1.089 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002362/0.8811, allocations: 1.548 MB / 1.09 GB, free: 9.133 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002106/0.8832, allocations: 0.9969 MB / 1.091 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001879/0.8851, allocations: 1.057 MB / 1.092 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0002873/0.8854, allocations: 137.8 kB / 1.092 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.8876, allocations: 0.8039 MB / 1.093 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008178/0.8884, allocations: 0.5658 MB / 1.094 GB, free: 7.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.8896, allocations: 0.8896 MB / 1.094 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.00333/0.8929, allocations: 2.028 MB / 1.096 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8929, allocations: 0.8906 kB / 1.096 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.164e-06/0.893, allocations: 0.5938 kB / 1.096 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.732e-05/0.893, allocations: 0 / 1.096 GB, free: 6.887 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004671/0.8977, allocations: 2.022 MB / 1.098 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.8978, allocations: 9.281 kB / 1.098 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0116/0.9094, allocations: 2.056 MB / 1.1 GB, free: 5.484 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.9123, allocations: 1.121 MB / 1.102 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.973e-05/0.9124, allocations: 85.97 kB / 1.102 GB, free: 4.805 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003617/0.9127, allocations: 114.3 kB / 1.102 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006225/0.919, allocations: 2.488 MB / 1.104 GB, free: 3.766 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.901e-05/0.9191, allocations: 7.156 kB / 1.104 GB, free: 3.762 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/0.9192, allocations: 55.02 kB / 1.104 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004194/0.9197, allocations: 127.8 kB / 1.104 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007471/0.9271, allocations: 2.539 MB / 1.107 GB, free: 3.094 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0168/0.944, allocations: 10.08 MB / 1.117 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006395/0.9504, allocations: 1.955 MB / 1.119 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/0.9534, allocations: 0.9738 MB / 1.12 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 7.994e-05/0.9536, allocations: 5.531 kB / 1.12 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.9536, allocations: 42.56 kB / 1.12 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=53): time 5.51e-06/0.9536, allocations: 3.984 kB / 1.12 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of matching and sorting (n=81): time 0.03224/0.9859, allocations: 8.706 MB / 1.128 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.9859, allocations: 63.53 kB / 1.128 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.9882, allocations: 1.095 MB / 1.129 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001945/0.9884, allocations: 41.64 kB / 1.129 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005676/0.989, allocations: 0.7403 MB / 1.13 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.9894, allocations: 281.8 kB / 1.13 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004751/0.9899, allocations: 195.7 kB / 1.13 GB, free: 6.465 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.99, allocations: 348.3 kB / 1.131 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002933/0.993, allocations: 1.073 MB / 1.132 GB, free: 5.578 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003103/0.9961, allocations: 1.306 MB / 1.133 GB, free: 4.738 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005848/1.002, allocations: 2.379 MB / 1.135 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.12e-05/1.002, allocations: 2.438 kB / 1.135 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008933/1.011, allocations: 3.277 MB / 1.139 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/1.011, allocations: 8.375 kB / 1.139 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/1.011, allocations: 11.06 kB / 1.139 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/1.014, allocations: 0.7923 MB / 1.139 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/1.016, allocations: 420.4 kB / 1.14 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/1.032, allocations: 15.93 MB / 1.155 GB, free: 2.566 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002586/1.034, allocations: 292.9 kB / 1.156 GB, free: 2.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/1.035, allocations: 49.66 kB / 1.156 GB, free: 2.414 MB / 0.8731 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,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.001152/1.036, allocations: 396.8 kB / 1.156 GB, free: 2.129 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005834/1.037, allocations: 142.2 kB / 1.156 GB, free: 2.059 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009333/1.046, allocations: 3.204 MB / 1.159 GB, free: 216 kB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-05/1.046, allocations: 11.31 kB / 1.159 GB, free: 212 kB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.271e-05/1.046, allocations: 11.94 kB / 1.159 GB, free: 208 kB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/1.046, allocations: 4.172 kB / 1.159 GB, free: 204 kB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/1.058, allocations: 4.908 MB / 1.164 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/1.058, allocations: 2.031 kB / 1.164 GB, free: 13.17 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/1.06, allocations: 352.6 kB / 1.164 GB, free: 13.02 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/1.062, allocations: 0.7126 MB / 1.165 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/1.062, allocations: 28.44 kB / 1.165 GB, free: 12.61 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/1.077, allocations: 15.54 MB / 1.18 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.077, allocations: 4 kB / 1.18 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008323/1.085, allocations: 3.038 MB / 1.183 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/1.086, allocations: 387.1 kB / 1.184 GB, free: 9.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005575/1.087, allocations: 16 kB / 1.184 GB, free: 9.895 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00222/1.089, allocations: 291.5 kB / 1.184 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/1.09, allocations: 84.42 kB / 1.184 GB, free: 9.527 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.09, allocations: 39.97 kB / 1.184 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001336/1.091, allocations: 0.7405 MB / 1.185 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/1.091, allocations: 0 / 1.185 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002114/1.093, allocations: 428 kB / 1.185 GB, free: 8.328 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003191/1.094, allocations: 139.1 kB / 1.185 GB, free: 8.184 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.008867/1.102, allocations: 3.76 MB / 1.189 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.102, allocations: 4 kB / 1.189 GB, free: 4.316 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.005163/1.108, allocations: 2.362 MB / 1.191 GB, free: 1.844 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/1.111, allocations: 0.5247 MB / 1.192 GB, free: 1.336 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008959/1.12, allocations: 4.166 MB / 1.196 GB, free: 13.11 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0014/1.121, allocations: 1.388 MB / 1.197 GB, free: 11.69 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006871/1.122, allocations: 127.3 kB / 1.197 GB, free: 11.56 MB / 0.92 GB Notification: Performance of SimCode: time 6.31e-07/1.122, allocations: 0 / 1.197 GB, free: 11.56 MB / 0.92 GB Notification: Performance of Templates: time 0.07884/1.201, allocations: 74.96 MB / 1.271 GB, free: 0.6758 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches