Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001198, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001276/0.001276, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.578/2.578, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004079/0.0004082, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8573/0.8577, allocations: 142.3 MB / 0.9535 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.004733/0.8625, allocations: 4.637 MB / 0.958 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003599/0.8661, allocations: 2.475 MB / 0.9605 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004986/0.8666, allocations: 22.81 kB / 0.9605 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.8669, allocations: 88.86 kB / 0.9606 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000893/0.8678, allocations: 324.5 kB / 0.9609 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007883/0.8686, allocations: 295.2 kB / 0.9612 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007694/0.8694, allocations: 0.5795 MB / 0.9617 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.8706, allocations: 0.7378 MB / 0.9624 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.8711, allocations: 282.8 kB / 0.9627 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004495/0.8716, allocations: 311 kB / 0.963 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.737e-05/0.8716, allocations: 25.47 kB / 0.963 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004311/0.8721, allocations: 156.5 kB / 0.9632 GB, free: 0.7383 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.8722, allocations: 197.5 kB / 0.9634 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.8724, allocations: 144.3 kB / 0.9635 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006273/0.873, allocations: 0.6863 MB / 0.9642 GB, free: 72 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.873, allocations: 0 / 0.9642 GB, free: 72 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.834e-06/0.873, allocations: 1.312 kB / 0.9642 GB, free: 72 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.873, allocations: 0 / 0.9642 GB, free: 72 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001335/0.8744, allocations: 0.8545 MB / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.8744, allocations: 9.344 kB / 0.965 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001178/0.8756, allocations: 180 kB / 0.9652 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007514/0.8764, allocations: 470.3 kB / 0.9656 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.413e-05/0.8764, allocations: 37.3 kB / 0.9657 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.8766, allocations: 62.89 kB / 0.9657 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.8778, allocations: 0.8117 MB / 0.9665 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.76e-05/0.8778, allocations: 13.75 kB / 0.9665 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.656e-05/0.8779, allocations: 27.23 kB / 0.9666 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/0.8781, allocations: 66.75 kB / 0.9666 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009607/0.8791, allocations: 0.5679 MB / 0.9672 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004743/0.8838, allocations: 4.577 MB / 0.9717 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004841/0.8843, allocations: 294.6 kB / 0.9719 GB, free: 9.496 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.8844, allocations: 8.297 kB / 0.972 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.8844, allocations: 44.16 kB / 0.972 GB, free: 9.441 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.234e-06/0.8844, allocations: 0 / 0.972 GB, free: 9.441 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005639/0.8901, allocations: 2.626 MB / 0.9746 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.8901, allocations: 58.56 kB / 0.9746 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005287/0.8907, allocations: 453.8 kB / 0.975 GB, free: 7.383 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.2e-05/0.8907, allocations: 31.73 kB / 0.9751 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.891, allocations: 347.6 kB / 0.9754 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.8911, allocations: 141 kB / 0.9755 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.8911, allocations: 14.66 kB / 0.9756 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.8913, allocations: 358.2 kB / 0.9759 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.8916, allocations: 237.4 kB / 0.9761 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.8921, allocations: 403.1 kB / 0.9765 GB, free: 6.102 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.8926, allocations: 299.1 kB / 0.9768 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.8926, allocations: 1.156 kB / 0.9768 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001818/0.8944, allocations: 0.92 MB / 0.9777 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.838e-05/0.8945, allocations: 8.594 kB / 0.9777 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.8945, allocations: 5.375 kB / 0.9777 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008332/0.8954, allocations: 231.2 kB / 0.9779 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/0.8959, allocations: 112.6 kB / 0.978 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005241/0.9012, allocations: 5.018 MB / 0.9829 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000637/0.9018, allocations: 33.41 kB / 0.983 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.71e-05/0.9019, allocations: 22.78 kB / 0.983 GB, free: 0.5898 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003728/0.9023, allocations: 222.2 kB / 0.9832 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.9024, allocations: 56.97 kB / 0.9833 GB, free: 392 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001487/0.9039, allocations: 0.7723 MB / 0.984 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.9039, allocations: 4 kB / 0.984 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9039, allocations: 4 kB / 0.984 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.9039, allocations: 3.984 kB / 0.984 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.9064, allocations: 1.496 MB / 0.9855 GB, free: 14.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-06/0.9064, allocations: 3.938 kB / 0.9855 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.9068, allocations: 60.33 kB / 0.9855 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006584/0.9074, allocations: 218.7 kB / 0.9858 GB, free: 13.74 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.9075, allocations: 12 kB / 0.9858 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004445/0.9119, allocations: 4.951 MB / 0.9906 GB, free: 8.383 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.912, allocations: 4 kB / 0.9906 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.9138, allocations: 1.209 MB / 0.9918 GB, free: 7.078 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.9142, allocations: 168.4 kB / 0.9919 GB, free: 6.895 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.169e-05/0.9142, allocations: 15.95 kB / 0.992 GB, free: 6.879 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.9146, allocations: 23.97 kB / 0.992 GB, free: 6.855 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.9147, allocations: 36.02 kB / 0.992 GB, free: 6.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.9147, allocations: 12 kB / 0.992 GB, free: 6.809 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003931/0.9151, allocations: 310.9 kB / 0.9923 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9151, allocations: 3.938 kB / 0.9923 GB, free: 6.504 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008379/0.916, allocations: 168 kB / 0.9925 GB, free: 6.34 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001733/0.9162, allocations: 115.5 kB / 0.9926 GB, free: 6.215 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001608/0.9178, allocations: 1.004 MB / 0.9936 GB, free: 5.172 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.9178, allocations: 0 / 0.9936 GB, free: 5.172 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000987/0.9188, allocations: 0.6916 MB / 0.9943 GB, free: 4.441 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007995/0.9196, allocations: 159.6 kB / 0.9944 GB, free: 4.289 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.9218, allocations: 1.481 MB / 0.9959 GB, free: 2.758 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005344/0.9223, allocations: 0.9611 MB / 0.9968 GB, free: 1.77 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003518/0.9227, allocations: 117 kB / 0.9969 GB, free: 1.652 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.9228, allocations: 39.44 kB / 0.9969 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of SimCode: time 2.385e-06/0.9228, allocations: 0 / 0.9969 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of Templates: time 0.01456/0.9374, allocations: 8.132 MB / 1.005 GB, free: 9.59 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches