Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.47/1.47, allocations: 249.3 MB / 261.8 MB, free: 5.992 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001263/0.001263, allocations: 166.7 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008478/0.0008475, allocations: 96.02 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.671e-05, allocations: 7.984 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1785, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6099/0.7885, allocations: 154.9 MB / 1.043 GB, free: 13.43 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.7888, allocations: 92.5 kB / 1.043 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.0842/0.873, allocations: 36.78 MB / 1.079 GB, free: 14.41 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.813e-06/0.873, allocations: 0 / 1.079 GB, free: 14.41 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.463e-05/0.8731, allocations: 23.98 kB / 1.079 GB, free: 14.39 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001257/0.8744, allocations: 0.8541 MB / 1.08 GB, free: 13.53 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.8744, allocations: 12.03 kB / 1.08 GB, free: 13.52 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001514/0.8759, allocations: 218.7 kB / 1.08 GB, free: 13.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009809/0.8769, allocations: 0.5311 MB / 1.081 GB, free: 12.79 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.877, allocations: 50.84 kB / 1.081 GB, free: 12.76 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.8e-05/0.8771, allocations: 58.12 kB / 1.081 GB, free: 12.72 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.8785, allocations: 1.088 MB / 1.082 GB, free: 11.74 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.8786, allocations: 4 kB / 1.082 GB, free: 11.74 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.948e-05/0.8787, allocations: 34.06 kB / 1.082 GB, free: 11.72 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.222e-05/0.8788, allocations: 56.53 kB / 1.082 GB, free: 11.67 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.8797, allocations: 0.6692 MB / 1.083 GB, free: 11.21 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004991/0.8847, allocations: 5.783 MB / 1.088 GB, free: 5.309 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/0.8855, allocations: 0.5882 MB / 1.089 GB, free: 4.676 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006433/0.8862, allocations: 392.7 kB / 1.089 GB, free: 4.289 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.8862, allocations: 8 kB / 1.089 GB, free: 4.281 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.8863, allocations: 35.25 kB / 1.089 GB, free: 4.238 MB / 0.698 GB Notification: Performance of pre-optimization done (n=41): time 2.475e-06/0.8863, allocations: 0 / 1.089 GB, free: 4.238 MB / 0.698 GB Notification: Performance of matching and sorting (n=42): time 0.002276/0.8886, allocations: 1.215 MB / 1.09 GB, free: 3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.8886, allocations: 63.34 kB / 1.09 GB, free: 2.926 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.889, allocations: 388.6 kB / 1.091 GB, free: 2.543 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.8891, allocations: 33.7 kB / 1.091 GB, free: 2.504 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.8893, allocations: 375.2 kB / 1.091 GB, free: 2.129 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.8894, allocations: 145.9 kB / 1.091 GB, free: 1.984 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.8894, allocations: 16 kB / 1.091 GB, free: 1.969 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.8896, allocations: 358.8 kB / 1.092 GB, free: 1.609 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003393/0.8899, allocations: 237 kB / 1.092 GB, free: 1.379 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004347/0.8904, allocations: 421.4 kB / 1.092 GB, free: 0.8789 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004032/0.8908, allocations: 300.5 kB / 1.093 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.8908, allocations: 0 / 1.093 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001729/0.8925, allocations: 1.015 MB / 1.094 GB, free: 15.55 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.8926, allocations: 13.67 kB / 1.094 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.8926, allocations: 4 kB / 1.094 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009487/0.8936, allocations: 319.4 kB / 1.094 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002832/0.8939, allocations: 87.89 kB / 1.094 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006625/0.9005, allocations: 7.09 MB / 1.101 GB, free: 7.477 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/0.9009, allocations: 36.22 kB / 1.101 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.163e-05/0.901, allocations: 24 kB / 1.101 GB, free: 7.418 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 8,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001373/0.9011, allocations: 138.2 kB / 1.101 GB, free: 7.277 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.9012, allocations: 63.34 kB / 1.101 GB, free: 7.215 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/0.9028, allocations: 0.8886 MB / 1.102 GB, free: 6.309 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.9029, allocations: 4 kB / 1.102 GB, free: 6.305 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.9029, allocations: 7.938 kB / 1.102 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.9029, allocations: 3.984 kB / 1.102 GB, free: 6.293 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002717/0.9056, allocations: 1.863 MB / 1.104 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.9056, allocations: 4 kB / 1.104 GB, free: 4.312 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.9058, allocations: 43.91 kB / 1.104 GB, free: 4.27 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007886/0.9066, allocations: 279.4 kB / 1.104 GB, free: 3.984 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.9066, allocations: 19.98 kB / 1.104 GB, free: 3.965 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005728/0.9124, allocations: 6.805 MB / 1.111 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.9124, allocations: 4.031 kB / 1.111 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.914, allocations: 1.013 MB / 1.112 GB, free: 11.49 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.9143, allocations: 172.4 kB / 1.112 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.9143, allocations: 8 kB / 1.112 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.9146, allocations: 24.03 kB / 1.112 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.9147, allocations: 35.95 kB / 1.112 GB, free: 11.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.9147, allocations: 12 kB / 1.112 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0003351/0.9151, allocations: 301.6 kB / 1.112 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2e-07/0.9151, allocations: 0 / 1.112 GB, free: 10.93 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000791/0.9159, allocations: 200 kB / 1.113 GB, free: 10.74 MB / 0.7292 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001487/0.916, allocations: 111.2 kB / 1.113 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001603/0.9177, allocations: 1.144 MB / 1.114 GB, free: 9.418 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.9177, allocations: 0 / 1.114 GB, free: 9.418 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.9187, allocations: 0.8148 MB / 1.115 GB, free: 8.551 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007794/0.9195, allocations: 177.6 kB / 1.115 GB, free: 8.383 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.9209, allocations: 0.8818 MB / 1.116 GB, free: 7.461 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.9215, allocations: 1 MB / 1.117 GB, free: 6.434 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002801/0.9217, allocations: 105.2 kB / 1.117 GB, free: 6.328 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.9218, allocations: 31.44 kB / 1.117 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of SimCode: time 3.21e-07/0.9218, allocations: 0 / 1.117 GB, free: 6.297 MB / 0.7292 GB Notification: Performance of Templates: time 0.01406/0.9359, allocations: 8.748 MB / 1.125 GB, free: 13.61 MB / 0.7448 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches