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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001448, allocations: 199 kB / 16.79 MB, free: 6.809 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.37/1.37, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.351/2.351, allocations: 390.2 MB / 0.6649 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.89 kB / 0.8125 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.713/0.7145, allocations: 140.3 MB / 0.9496 GB, free: 9.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006502/0.721, allocations: 6.101 MB / 0.9556 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004353/0.7254, allocations: 3.161 MB / 0.9586 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004594/0.7259, allocations: 30.97 kB / 0.9587 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001922/0.7278, allocations: 0.8736 MB / 0.9595 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.7289, allocations: 436.5 kB / 0.9599 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.73, allocations: 439.4 kB / 0.9604 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001503/0.7315, allocations: 1.462 MB / 0.9618 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009872/0.7325, allocations: 0.6307 MB / 0.9624 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000593/0.7331, allocations: 384.7 kB / 0.9628 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/0.7337, allocations: 490.9 kB / 0.9632 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.74e-05/0.7338, allocations: 42.62 kB / 0.9633 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.7349, allocations: 0.5851 MB / 0.9638 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.7352, allocations: 264.9 kB / 0.9641 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004545/0.7357, allocations: 387.2 kB / 0.9645 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.7367, allocations: 0.8993 MB / 0.9653 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.7367, allocations: 5.125 kB / 0.9654 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of FrontEnd: time 7.91e-07/0.7367, allocations: 0 / 0.9654 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.7368, allocations: 0 / 0.9654 GB, free: 13.62 MB / 0.7325 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.001683/0.7385, allocations: 1.049 MB / 0.9664 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.7385, allocations: 9.562 kB / 0.9664 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.7401, allocations: 217.2 kB / 0.9666 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007953/0.7409, allocations: 0.5351 MB / 0.9671 GB, free: 12.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.452e-05/0.7409, allocations: 50.61 kB / 0.9672 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.741, allocations: 65.83 kB / 0.9672 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.7426, allocations: 1.03 MB / 0.9682 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.7426, allocations: 11.31 kB / 0.9682 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.037e-05/0.7427, allocations: 32.17 kB / 0.9683 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.339e-05/0.7428, allocations: 67.3 kB / 0.9683 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/0.7438, allocations: 0.6982 MB / 0.969 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.7487, allocations: 5.74 MB / 0.9746 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.7496, allocations: 0.6029 MB / 0.9752 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008131/0.7505, allocations: 433.9 kB / 0.9756 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.7505, allocations: 5.031 kB / 0.9756 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.7506, allocations: 35.84 kB / 0.9757 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 2.445e-06/0.7506, allocations: 1.406 kB / 0.9757 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.00452/0.7551, allocations: 2.056 MB / 0.9777 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.7551, allocations: 55.22 kB / 0.9777 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004731/0.7556, allocations: 454.5 kB / 0.9782 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.7557, allocations: 35.14 kB / 0.9782 GB, free: 3.211 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.7559, allocations: 389.3 kB / 0.9786 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.756, allocations: 144.9 kB / 0.9787 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.7562, allocations: 117 kB / 0.9788 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.7563, allocations: 363.2 kB / 0.9792 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.7567, allocations: 244.1 kB / 0.9794 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004995/0.7572, allocations: 459.8 kB / 0.9798 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008988/0.7581, allocations: 0.7526 MB / 0.9806 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.7581, allocations: 6.219 kB / 0.9806 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001884/0.76, allocations: 1.063 MB / 0.9816 GB, free: 212 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.7601, allocations: 8.875 kB / 0.9816 GB, free: 204 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.7601, allocations: 4 kB / 0.9816 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001104/0.7612, allocations: 339.1 kB / 0.982 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003178/0.7615, allocations: 95.83 kB / 0.982 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00656/0.7681, allocations: 6.951 MB / 0.9888 GB, free: 8.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.7686, allocations: 35.95 kB / 0.9889 GB, free: 8.234 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.7686, allocations: 28 kB / 0.9889 GB, free: 8.207 MB / 0.7481 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 (53): * Single equations (assignments): 49 * 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 {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003624/0.769, allocations: 241.5 kB / 0.9891 GB, free: 7.961 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.909e-05/0.7691, allocations: 59.34 kB / 0.9892 GB, free: 7.902 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001679/0.7708, allocations: 0.9117 MB / 0.9901 GB, free: 6.965 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.7708, allocations: 4.281 kB / 0.9901 GB, free: 6.961 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.7708, allocations: 4 kB / 0.9901 GB, free: 6.957 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.7708, allocations: 0 / 0.9901 GB, free: 6.957 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002656/0.7735, allocations: 1.712 MB / 0.9917 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.7735, allocations: 0 / 0.9917 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001681/0.7737, allocations: 43.91 kB / 0.9918 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009623/0.7746, allocations: 327.2 kB / 0.9921 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.7747, allocations: 12 kB / 0.9921 GB, free: 4.773 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006418/0.7811, allocations: 6.939 MB / 0.9989 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.7812, allocations: 0 / 0.9989 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.7829, allocations: 1.018 MB / 0.9999 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000276/0.7832, allocations: 180.3 kB / 1 GB, free: 12.04 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.038e-05/0.7833, allocations: 11.98 kB / 1 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.7836, allocations: 15.98 kB / 1 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.7837, allocations: 43.88 kB / 1 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.7837, allocations: 19.94 kB / 1 GB, free: 11.95 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000319/0.784, allocations: 302.9 kB / 1 GB, free: 11.65 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7841, allocations: 288 / 1 GB, free: 11.65 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008517/0.7849, allocations: 196 kB / 1.001 GB, free: 11.46 MB / 0.7637 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 (23): * Single equations (assignments): 19 * 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 {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.0001503/0.7851, allocations: 120.7 kB / 1.001 GB, free: 11.34 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001809/0.7869, allocations: 1.187 MB / 1.002 GB, free: 10.1 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.7869, allocations: 4 kB / 1.002 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/0.7881, allocations: 0.8656 MB / 1.003 GB, free: 9.18 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009973/0.7891, allocations: 187.4 kB / 1.003 GB, free: 9 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.7913, allocations: 1.574 MB / 1.004 GB, free: 7.375 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.7918, allocations: 0.9881 MB / 1.005 GB, free: 6.359 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.792, allocations: 43.44 kB / 1.005 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of SimCode: time 3.41e-07/0.792, allocations: 0 / 1.005 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of Templates: time 0.02077/0.8127, allocations: 18.44 MB / 1.023 GB, free: 3.895 MB / 0.7794 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches