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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001062/0.001062, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001318/0.001318, allocations: 194.3 kB / 16.14 MB, free: 6.648 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.495/1.495, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.474/2.474, allocations: 390.2 MB / 0.6642 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 59.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8174/0.8187, allocations: 140.4 MB / 0.9489 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.006339/0.8251, allocations: 6.105 MB / 0.9549 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004395/0.8295, allocations: 3.158 MB / 0.958 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006832/0.8303, allocations: 27.97 kB / 0.958 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.8323, allocations: 0.8761 MB / 0.9589 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.8334, allocations: 439.8 kB / 0.9593 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.8345, allocations: 437.1 kB / 0.9597 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001493/0.836, allocations: 1.462 MB / 0.9611 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.8371, allocations: 0.631 MB / 0.9617 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007112/0.8378, allocations: 389.4 kB / 0.9621 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006622/0.8385, allocations: 478.7 kB / 0.9626 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.158e-05/0.8386, allocations: 41.84 kB / 0.9626 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001283/0.8399, allocations: 0.5855 MB / 0.9632 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003062/0.8402, allocations: 269.9 kB / 0.9634 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004457/0.8407, allocations: 383.3 kB / 0.9638 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001513/0.8422, allocations: 1.179 MB / 0.9649 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.8422, allocations: 0 / 0.9649 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.022e-06/0.8422, allocations: 5.125 kB / 0.965 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.622e-05/0.8423, allocations: 0 / 0.965 GB, free: 13.6 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.001823/0.8441, allocations: 1.053 MB / 0.966 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.8441, allocations: 9.5 kB / 0.966 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00159/0.8457, allocations: 220.5 kB / 0.9662 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008921/0.8466, allocations: 0.5363 MB / 0.9667 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.8467, allocations: 51.05 kB / 0.9668 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.8468, allocations: 56.03 kB / 0.9668 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.8484, allocations: 1.038 MB / 0.9678 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.8484, allocations: 15.25 kB / 0.9679 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.728e-05/0.8485, allocations: 28.42 kB / 0.9679 GB, free: 11.37 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.8486, allocations: 70.77 kB / 0.9679 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.8497, allocations: 0.6913 MB / 0.9686 GB, free: 11 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005401/0.8551, allocations: 5.743 MB / 0.9742 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009478/0.8561, allocations: 0.6003 MB / 0.9748 GB, free: 5.176 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008088/0.8569, allocations: 422.5 kB / 0.9752 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.838e-05/0.857, allocations: 4.062 kB / 0.9752 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.857, allocations: 40.03 kB / 0.9753 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 2.114e-06/0.857, allocations: 1.562 kB / 0.9753 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.004644/0.8616, allocations: 2.059 MB / 0.9773 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.8617, allocations: 60.09 kB / 0.9773 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000626/0.8623, allocations: 454.1 kB / 0.9778 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.744e-05/0.8624, allocations: 31.2 kB / 0.9778 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.8626, allocations: 384.3 kB / 0.9782 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.8628, allocations: 146.1 kB / 0.9783 GB, free: 2.73 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.863, allocations: 111.7 kB / 0.9784 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.8631, allocations: 368.2 kB / 0.9788 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.8635, allocations: 248.1 kB / 0.979 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.8641, allocations: 455.2 kB / 0.9794 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000969/0.865, allocations: 0.7565 MB / 0.9802 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.8651, allocations: 4 kB / 0.9802 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00189/0.867, allocations: 1.062 MB / 0.9812 GB, free: 0 / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.507e-05/0.867, allocations: 8.047 kB / 0.9812 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.867, allocations: 8 kB / 0.9812 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.8681, allocations: 335.1 kB / 0.9815 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.8685, allocations: 95.83 kB / 0.9816 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007093/0.8756, allocations: 6.954 MB / 0.9884 GB, free: 8.062 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005164/0.8761, allocations: 28.03 kB / 0.9885 GB, free: 8.035 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.8762, allocations: 27.98 kB / 0.9885 GB, free: 8.008 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.000392/0.8766, allocations: 245.5 kB / 0.9887 GB, free: 7.758 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.8767, allocations: 59.34 kB / 0.9888 GB, free: 7.699 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/0.8784, allocations: 0.9077 MB / 0.9897 GB, free: 6.766 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.8784, allocations: 4 kB / 0.9897 GB, free: 6.762 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.8784, allocations: 7.984 kB / 0.9897 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.8785, allocations: 0 / 0.9897 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.8813, allocations: 1.716 MB / 0.9913 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.8813, allocations: 96 / 0.9913 GB, free: 4.949 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001647/0.8814, allocations: 44.16 kB / 0.9914 GB, free: 4.906 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009777/0.8824, allocations: 327 kB / 0.9917 GB, free: 4.574 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.8825, allocations: 8 kB / 0.9917 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006762/0.8892, allocations: 6.946 MB / 0.9985 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.8893, allocations: 48 / 0.9985 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.8911, allocations: 1.026 MB / 0.9995 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.8914, allocations: 172.3 kB / 0.9997 GB, free: 11.83 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.394e-05/0.8915, allocations: 15.98 kB / 0.9997 GB, free: 11.81 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.8918, allocations: 15.98 kB / 0.9997 GB, free: 11.8 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.8919, allocations: 43.94 kB / 0.9997 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.8919, allocations: 15.94 kB / 0.9997 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003536/0.8923, allocations: 302.9 kB / 1 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8923, allocations: 0 / 1 GB, free: 11.45 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008489/0.8932, allocations: 196 kB / 1 GB, free: 11.25 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.0001611/0.8933, allocations: 115.4 kB / 1 GB, free: 11.13 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001841/0.8952, allocations: 1.191 MB / 1.001 GB, free: 9.891 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.8952, allocations: 0 / 1.001 GB, free: 9.891 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.8964, allocations: 0.8657 MB / 1.002 GB, free: 8.973 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009887/0.8974, allocations: 194 kB / 1.003 GB, free: 8.785 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.8996, allocations: 1.51 MB / 1.004 GB, free: 7.23 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000594/0.9002, allocations: 0.9921 MB / 1.005 GB, free: 6.211 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002929/0.9005, allocations: 97.17 kB / 1.005 GB, free: 6.117 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.912e-05/0.9006, allocations: 35.44 kB / 1.005 GB, free: 6.082 MB / 0.7637 GB Notification: Performance of SimCode: time 3.81e-07/0.9006, allocations: 0 / 1.005 GB, free: 6.082 MB / 0.7637 GB Notification: Performance of Templates: time 0.01854/0.9191, allocations: 9.623 MB / 1.014 GB, free: 12.55 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/jenkins/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