Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009559/0.0009559, allocations: 80.88 kB / 19.94 MB, free: 4.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 177 kB / 23.36 MB, free: 1.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9449/0.9449, allocations: 177.1 MB / 203.8 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.274/2.274, allocations: 438.8 MB / 0.6827 GB, free: 13.54 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.[0-9,]+.|load_sc_2.v.[0-9,]+.|load_sc_3.v.[0-9,]+.|load_sc_1.i.[0-9,]+.|load_sc_2.i.[0-9,]+.|load_sc_3.i.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|load_sc_1.v.[0-9,]+.|load_sc_2.v.[0-9,]+.|load_sc_3.v.[0-9,]+.|load_sc_1.i.[0-9,]+.|load_sc_2.i.[0-9,]+.|load_sc_3.i.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 0.8386 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.433e-05, allocations: 5.75 kB / 0.8386 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00402/0.004045, allocations: 4.045 MB / 0.8425 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00202/0.006064, allocations: 1.558 MB / 0.8441 GB, free: 8.531 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.006291, allocations: 31.69 kB / 0.8441 GB, free: 8.5 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0006209/0.006912, allocations: 170.8 kB / 0.8443 GB, free: 8.332 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.007459, allocations: 369.6 kB / 0.8446 GB, free: 7.969 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.007962, allocations: 327.2 kB / 0.8449 GB, free: 7.648 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0008207/0.008783, allocations: 0.9864 MB / 0.8459 GB, free: 6.66 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006952/0.009478, allocations: 407.1 kB / 0.8463 GB, free: 6.258 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005564/0.01003, allocations: 0.5221 MB / 0.8468 GB, free: 5.734 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005054/0.01054, allocations: 370.9 kB / 0.8471 GB, free: 5.371 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 6.328e-05/0.0106, allocations: 48 kB / 0.8472 GB, free: 5.324 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002067/0.01081, allocations: 131.7 kB / 0.8473 GB, free: 5.195 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.01099, allocations: 259.2 kB / 0.8476 GB, free: 4.941 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.01116, allocations: 239.4 kB / 0.8478 GB, free: 4.707 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.01169, allocations: 0.5839 MB / 0.8484 GB, free: 4.121 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.01169, allocations: 0 / 0.8484 GB, free: 4.121 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.043e-06/0.0117, allocations: 3.938 kB / 0.8484 GB, free: 4.117 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.0117, allocations: 4 kB / 0.8484 GB, free: 4.113 MB / 0.8073 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.0009076/0.01261, allocations: 0.8413 MB / 0.8492 GB, free: 3.242 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.01265, allocations: 8.625 kB / 0.8492 GB, free: 3.234 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007777/0.01343, allocations: 228.4 kB / 0.8494 GB, free: 3.012 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.01388, allocations: 439.2 kB / 0.8498 GB, free: 2.559 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.0139, allocations: 41.36 kB / 0.8499 GB, free: 2.516 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001167/0.01402, allocations: 56.55 kB / 0.8499 GB, free: 2.461 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.01454, allocations: 0.6966 MB / 0.8506 GB, free: 1.645 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.01456, allocations: 8.125 kB / 0.8506 GB, free: 1.637 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.01459, allocations: 32.09 kB / 0.8506 GB, free: 1.605 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.49e-05/0.01469, allocations: 60.95 kB / 0.8507 GB, free: 1.547 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002538/0.01494, allocations: 202.6 kB / 0.8509 GB, free: 1.348 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.01713, allocations: 3.026 MB / 0.8538 GB, free: 14.21 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.0173, allocations: 156.9 kB / 0.854 GB, free: 14.04 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.56e-05/0.01739, allocations: 65.97 kB / 0.8541 GB, free: 13.98 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.01741, allocations: 12.27 kB / 0.8541 GB, free: 13.96 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.01743, allocations: 38.84 kB / 0.8541 GB, free: 13.92 MB / 0.823 GB Notification: Performance of pre-optimization done (n=33): time 1.834e-06/0.01744, allocations: 0 / 0.8541 GB, free: 13.92 MB / 0.823 GB Notification: Performance of matching and sorting (n=34): time 0.001622/0.01906, allocations: 0.9924 MB / 0.8551 GB, free: 12.89 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.01908, allocations: 55.41 kB / 0.8551 GB, free: 12.82 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.0193, allocations: 395 kB / 0.8555 GB, free: 12.42 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.01932, allocations: 37.7 kB / 0.8555 GB, free: 12.38 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.01944, allocations: 305.4 kB / 0.8558 GB, free: 12.07 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.01951, allocations: 138.8 kB / 0.856 GB, free: 11.94 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.122e-05/0.0196, allocations: 90.27 kB / 0.856 GB, free: 11.84 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.881e-05/0.0197, allocations: 358.6 kB / 0.8564 GB, free: 11.48 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.74e-05/0.01978, allocations: 75.98 kB / 0.8565 GB, free: 11.41 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.01993, allocations: 223.3 kB / 0.8567 GB, free: 11.12 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.0202, allocations: 351.4 kB / 0.857 GB, free: 10.7 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.0202, allocations: 8 kB / 0.857 GB, free: 10.69 MB / 0.823 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0004598/0.02066, allocations: 423.5 kB / 0.8574 GB, free: 10.26 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.02067, allocations: 11.98 kB / 0.8574 GB, free: 10.25 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.02068, allocations: 7.984 kB / 0.8574 GB, free: 10.24 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003758/0.02106, allocations: 151.2 kB / 0.8576 GB, free: 10.09 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.02128, allocations: 95.89 kB / 0.8577 GB, free: 9.992 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001517/0.02279, allocations: 2.642 MB / 0.8603 GB, free: 7.152 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.02294, allocations: 16 kB / 0.8603 GB, free: 7.137 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.115e-05/0.02296, allocations: 16 kB / 0.8603 GB, free: 7.121 MB / 0.823 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 (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.02308, allocations: 148.5 kB / 0.8604 GB, free: 6.965 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.02313, allocations: 43.95 kB / 0.8605 GB, free: 6.922 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003845/0.02352, allocations: 334.2 kB / 0.8608 GB, free: 6.578 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.02352, allocations: 0 / 0.8608 GB, free: 6.578 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.02352, allocations: 4 kB / 0.8608 GB, free: 6.574 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.02353, allocations: 3.984 kB / 0.8608 GB, free: 6.57 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007084/0.02423, allocations: 0.6812 MB / 0.8615 GB, free: 5.84 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.02424, allocations: 3.938 kB / 0.8615 GB, free: 5.836 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001367/0.02437, allocations: 51.97 kB / 0.8615 GB, free: 5.785 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/0.02469, allocations: 155.3 kB / 0.8617 GB, free: 5.625 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.02471, allocations: 12 kB / 0.8617 GB, free: 5.613 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.02606, allocations: 2.628 MB / 0.8642 GB, free: 2.789 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.02606, allocations: 3.938 kB / 0.8642 GB, free: 2.785 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.02655, allocations: 0.5272 MB / 0.8648 GB, free: 2.215 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.404e-05/0.02663, allocations: 63.59 kB / 0.8648 GB, free: 2.152 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.02666, allocations: 8 kB / 0.8648 GB, free: 2.145 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.02678, allocations: 11.98 kB / 0.8648 GB, free: 2.133 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/0.02682, allocations: 31.89 kB / 0.8649 GB, free: 2.102 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.02683, allocations: 8 kB / 0.8649 GB, free: 2.094 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001034/0.02694, allocations: 160.7 kB / 0.865 GB, free: 1.938 MB / 0.823 GB Notification: Performance of sort global known variables: time 3e-08/0.02694, allocations: 0 / 0.865 GB, free: 1.938 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003272/0.02726, allocations: 156 kB / 0.8652 GB, free: 1.785 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,2,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001107/0.02737, allocations: 92.5 kB / 0.8653 GB, free: 1.688 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0004988/0.02787, allocations: 0.5144 MB / 0.8658 GB, free: 1.145 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.02789, allocations: 12 kB / 0.8658 GB, free: 1.133 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.00028/0.02817, allocations: 384.4 kB / 0.8662 GB, free: 0.7305 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.02859, allocations: 173 kB / 0.8663 GB, free: 0.5625 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.02996, allocations: 1.063 MB / 0.8674 GB, free: 15.45 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.03006, allocations: 170.3 kB / 0.8675 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001449/0.03021, allocations: 60.67 kB / 0.8676 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002262/0.03044, allocations: 173.2 kB / 0.8677 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of SimCode: time 5.31e-07/0.03044, allocations: 0 / 0.8677 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of Templates: time 0.01079/0.04123, allocations: 8.538 MB / 0.8761 GB, free: 6.684 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.250052604824305]