Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.329/2.329, allocations: 387.1 MB / 399.7 MB, free: 9.523 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009931/0.000993, allocations: 176.4 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 221.3 MB / 0.7872 GB, free: 12.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 99.83 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.483e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2458, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.851/1.097, allocations: 172.8 MB / 1.381 GB, free: 18.9 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.097, allocations: 94.78 kB / 1.381 GB, free: 18.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.08679/1.184, allocations: 40.18 MB / 1.42 GB, free: 8.434 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.453e-06/1.184, allocations: 0 / 1.42 GB, free: 8.434 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.445e-05/1.184, allocations: 27.75 kB / 1.42 GB, free: 8.41 MB / 0.8386 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.001472/1.186, allocations: 0.8694 MB / 1.421 GB, free: 7.551 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/1.186, allocations: 12.03 kB / 1.421 GB, free: 7.539 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/1.187, allocations: 214.8 kB / 1.422 GB, free: 7.328 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/1.188, allocations: 0.5335 MB / 1.422 GB, free: 6.828 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.881e-05/1.188, allocations: 44.34 kB / 1.422 GB, free: 6.801 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/1.188, allocations: 65.77 kB / 1.422 GB, free: 6.758 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/1.19, allocations: 1.075 MB / 1.423 GB, free: 5.805 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.126e-05/1.19, allocations: 11.84 kB / 1.423 GB, free: 5.793 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.917e-05/1.19, allocations: 34.08 kB / 1.423 GB, free: 5.781 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-05/1.19, allocations: 60.72 kB / 1.423 GB, free: 5.727 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/1.191, allocations: 0.6701 MB / 1.424 GB, free: 5.266 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005701/1.197, allocations: 5.772 MB / 1.43 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008749/1.198, allocations: 0.5814 MB / 1.43 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007031/1.198, allocations: 396.1 kB / 1.431 GB, free: 14.9 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/1.198, allocations: 4 kB / 1.431 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/1.199, allocations: 46.09 kB / 1.431 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=41): time 4.368e-06/1.199, allocations: 4 kB / 1.431 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=42): time 0.00256/1.201, allocations: 1.204 MB / 1.432 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/1.201, allocations: 63.28 kB / 1.432 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004539/1.202, allocations: 389.3 kB / 1.432 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/1.202, allocations: 33.45 kB / 1.432 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/1.202, allocations: 384.8 kB / 1.433 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/1.202, allocations: 145 kB / 1.433 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/1.202, allocations: 13.81 kB / 1.433 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001775/1.202, allocations: 359.2 kB / 1.433 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/1.203, allocations: 233.9 kB / 1.433 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/1.203, allocations: 424.4 kB / 1.434 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/1.204, allocations: 312 kB / 1.434 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/1.204, allocations: 0 / 1.434 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001838/1.206, allocations: 1.006 MB / 1.435 GB, free: 11.18 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/1.206, allocations: 13.05 kB / 1.435 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/1.206, allocations: 4.75 kB / 1.435 GB, free: 11.17 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/1.207, allocations: 321 kB / 1.435 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/1.207, allocations: 87.39 kB / 1.435 GB, free: 10.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007/1.214, allocations: 7.092 MB / 1.442 GB, free: 3.953 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/1.215, allocations: 27.36 kB / 1.442 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/1.215, allocations: 23.25 kB / 1.442 GB, free: 3.914 MB / 0.8542 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.0001542/1.215, allocations: 149.5 kB / 1.443 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.833e-05/1.215, allocations: 59.25 kB / 1.443 GB, free: 3.723 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00168/1.217, allocations: 0.8852 MB / 1.443 GB, free: 3.082 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/1.217, allocations: 4 kB / 1.443 GB, free: 3.078 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/1.217, allocations: 4 kB / 1.443 GB, free: 3.074 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/1.217, allocations: 4 kB / 1.443 GB, free: 3.07 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/1.22, allocations: 1.849 MB / 1.445 GB, free: 1.539 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/1.22, allocations: 4 kB / 1.445 GB, free: 1.535 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001853/1.22, allocations: 47.34 kB / 1.445 GB, free: 1.492 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008553/1.221, allocations: 278.9 kB / 1.446 GB, free: 1.258 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/1.221, allocations: 11.94 kB / 1.446 GB, free: 1.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006483/1.227, allocations: 6.827 MB / 1.452 GB, free: 10.56 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.227, allocations: 12.12 kB / 1.452 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/1.229, allocations: 0.9977 MB / 1.453 GB, free: 9.668 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003333/1.229, allocations: 175.3 kB / 1.453 GB, free: 9.496 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/1.229, allocations: 7.188 kB / 1.453 GB, free: 9.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/1.23, allocations: 19.17 kB / 1.453 GB, free: 9.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/1.23, allocations: 39.83 kB / 1.453 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/1.23, allocations: 15.5 kB / 1.454 GB, free: 9.434 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0003379/1.23, allocations: 303.4 kB / 1.454 GB, free: 9.199 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.23, allocations: 3.938 kB / 1.454 GB, free: 9.195 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009076/1.231, allocations: 194.2 kB / 1.454 GB, free: 9.023 MB / 0.8698 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.0002005/1.231, allocations: 110.9 kB / 1.454 GB, free: 8.914 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001673/1.233, allocations: 1.148 MB / 1.455 GB, free: 7.926 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.233, allocations: 0 / 1.455 GB, free: 7.926 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/1.234, allocations: 0.8262 MB / 1.456 GB, free: 7.168 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000977/1.235, allocations: 183.3 kB / 1.456 GB, free: 7.031 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001536/1.237, allocations: 0.885 MB / 1.457 GB, free: 6.211 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/1.237, allocations: 1 MB / 1.458 GB, free: 5.207 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0003442/1.238, allocations: 101.1 kB / 1.458 GB, free: 5.105 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.596e-05/1.238, allocations: 35.31 kB / 1.458 GB, free: 5.074 MB / 0.8698 GB Notification: Performance of SimCode: time 8.41e-07/1.238, allocations: 3.938 kB / 1.458 GB, free: 5.07 MB / 0.8698 GB Notification: Performance of Templates: time 0.01716/1.255, allocations: 8.734 MB / 1.467 GB, free: 12.44 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_L.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches