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.0007961/0.0007961, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007628/0.0007628, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8016/0.8016, allocations: 177.1 MB / 202.8 MB, free: 5.746 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 1.616/1.616, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.107e-06/1.03e-05, allocations: 5.234 kB / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.004109/0.004119, allocations: 5.204 MB / 1.005 GB, free: 8.289 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.002268/0.006387, allocations: 2.583 MB / 1.007 GB, free: 5.695 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.00656, allocations: 35.69 kB / 1.007 GB, free: 5.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0008425/0.007402, allocations: 0.6845 MB / 1.008 GB, free: 4.973 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.007852, allocations: 441.2 kB / 1.008 GB, free: 4.539 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.008258, allocations: 402.7 kB / 1.009 GB, free: 4.145 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0005837/0.008842, allocations: 0.9747 MB / 1.01 GB, free: 3.164 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003732/0.009215, allocations: 378.5 kB / 1.01 GB, free: 2.785 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004178/0.009633, allocations: 0.5143 MB / 1.011 GB, free: 2.27 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003492/0.009982, allocations: 371 kB / 1.011 GB, free: 1.906 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.803e-05/0.01003, allocations: 48 kB / 1.011 GB, free: 1.859 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002796/0.01031, allocations: 335 kB / 1.011 GB, free: 1.531 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.01047, allocations: 263.2 kB / 1.012 GB, free: 1.273 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.01062, allocations: 247.4 kB / 1.012 GB, free: 1.031 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0006149/0.01123, allocations: 0.993 MB / 1.013 GB, free: 36 kB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.01123, allocations: 0 / 1.013 GB, free: 36 kB / 0.9636 GB Notification: Performance of FrontEnd: time 9.92e-07/0.01124, allocations: 0 / 1.013 GB, free: 36 kB / 0.9636 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.01124, allocations: 0 / 1.013 GB, free: 36 kB / 0.9636 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.000922/0.01216, allocations: 0.9129 MB / 1.014 GB, free: 15.09 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.0122, allocations: 16.75 kB / 1.014 GB, free: 15.07 MB / 0.9792 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.479e-05/0.01227, allocations: 94.7 kB / 1.014 GB, free: 14.97 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006607/0.01294, allocations: 204.3 kB / 1.014 GB, free: 14.77 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.01341, allocations: 451 kB / 1.014 GB, free: 14.31 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.01343, allocations: 45.36 kB / 1.014 GB, free: 14.27 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.01353, allocations: 48.56 kB / 1.014 GB, free: 14.22 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007287/0.01426, allocations: 0.9789 MB / 1.015 GB, free: 13.12 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.01428, allocations: 12.08 kB / 1.015 GB, free: 13.11 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.01432, allocations: 27.92 kB / 1.015 GB, free: 13.08 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-05/0.01441, allocations: 68.94 kB / 1.016 GB, free: 13.01 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005454/0.01496, allocations: 0.5658 MB / 1.016 GB, free: 12.45 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.01717, allocations: 3.557 MB / 1.02 GB, free: 8.75 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.01747, allocations: 279.1 kB / 1.02 GB, free: 8.469 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001858/0.01765, allocations: 213.3 kB / 1.02 GB, free: 8.258 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.01767, allocations: 4.281 kB / 1.02 GB, free: 8.254 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.01769, allocations: 30.84 kB / 1.02 GB, free: 8.215 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=33): time 1.362e-06/0.01769, allocations: 4 kB / 1.02 GB, free: 8.211 MB / 0.9792 GB Notification: Performance of matching and sorting (n=40): time 0.003016/0.02071, allocations: 2.339 MB / 1.022 GB, free: 5.82 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.02074, allocations: 63.34 kB / 1.022 GB, free: 5.746 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.02103, allocations: 465.8 kB / 1.023 GB, free: 5.277 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.02106, allocations: 29.7 kB / 1.023 GB, free: 5.242 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.0212, allocations: 352.5 kB / 1.023 GB, free: 4.895 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 6.91e-05/0.02127, allocations: 142.8 kB / 1.023 GB, free: 4.754 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.02137, allocations: 106.2 kB / 1.023 GB, free: 4.645 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.02147, allocations: 362.7 kB / 1.024 GB, free: 4.281 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.0217, allocations: 241.2 kB / 1.024 GB, free: 4.047 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.022, allocations: 408.2 kB / 1.024 GB, free: 3.57 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005771/0.02257, allocations: 0.674 MB / 1.025 GB, free: 2.824 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.02258, allocations: 0 / 1.025 GB, free: 2.824 MB / 0.9792 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009435/0.02352, allocations: 0.9135 MB / 1.026 GB, free: 1.895 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.02354, allocations: 8 kB / 1.026 GB, free: 1.887 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.02354, allocations: 4 kB / 1.026 GB, free: 1.883 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004053/0.02395, allocations: 223 kB / 1.026 GB, free: 1.656 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.02421, allocations: 115.8 kB / 1.026 GB, free: 1.543 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/0.02711, allocations: 5.007 MB / 1.031 GB, free: 12.2 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001902/0.0273, allocations: 31.97 kB / 1.031 GB, free: 12.16 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.02733, allocations: 24.12 kB / 1.031 GB, free: 12.14 MB / 0.9948 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001718/0.0275, allocations: 229.6 kB / 1.031 GB, free: 11.91 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.02755, allocations: 59.77 kB / 1.032 GB, free: 11.85 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008279/0.02838, allocations: 0.7735 MB / 1.032 GB, free: 11.05 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-06/0.02838, allocations: 11.92 kB / 1.032 GB, free: 11.04 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.02839, allocations: 8 kB / 1.032 GB, free: 11.04 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.02839, allocations: 0 / 1.032 GB, free: 11.04 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.02973, allocations: 1.391 MB / 1.034 GB, free: 9.562 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.02974, allocations: 4 kB / 1.034 GB, free: 9.559 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.02992, allocations: 71.88 kB / 1.034 GB, free: 9.488 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.03024, allocations: 202.6 kB / 1.034 GB, free: 9.281 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.03026, allocations: 11.94 kB / 1.034 GB, free: 9.27 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002602/0.03286, allocations: 4.929 MB / 1.039 GB, free: 3.996 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.03286, allocations: 4.031 kB / 1.039 GB, free: 3.992 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009916/0.03386, allocations: 1.112 MB / 1.04 GB, free: 2.832 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.03398, allocations: 107.6 kB / 1.04 GB, free: 2.727 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.03401, allocations: 8 kB / 1.04 GB, free: 2.719 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.03416, allocations: 31.91 kB / 1.04 GB, free: 2.688 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.03421, allocations: 31.94 kB / 1.04 GB, free: 2.656 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.03423, allocations: 16 kB / 1.04 GB, free: 2.641 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.0001992/0.03443, allocations: 310.9 kB / 1.04 GB, free: 2.34 MB / 0.9948 GB Notification: Performance of sort global known variables: time 4e-08/0.03443, allocations: 64 / 1.04 GB, free: 2.34 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.0003654/0.03479, allocations: 172 kB / 1.04 GB, free: 2.172 MB / 0.9948 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001181/0.03598, allocations: 1.688 MB / 1.042 GB, free: 436 kB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.0008888/0.03686, allocations: 0.9617 MB / 1.043 GB, free: 15.42 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.03687, allocations: 0 / 1.043 GB, free: 15.42 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.03734, allocations: 0.6642 MB / 1.044 GB, free: 14.72 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.03783, allocations: 184.7 kB / 1.044 GB, free: 14.54 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/0.04231, allocations: 5.579 MB / 1.049 GB, free: 8.68 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.04252, allocations: 346.2 kB / 1.05 GB, free: 8.312 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.0001842/0.04271, allocations: 113 kB / 1.05 GB, free: 8.199 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.04288, allocations: 204.4 kB / 1.05 GB, free: 8 MB / 1.01 GB Notification: Performance of SimCode: time 4.51e-07/0.04288, allocations: 0 / 1.05 GB, free: 8 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3703/0.4131, allocations: 15.71 MB / 1.065 GB, free: 95.2 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.207/7.62, allocations: 13.09 kB / 1.065 GB, free: 95.19 MB / 1.01 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 840.0] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.286996128968894]