Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.001794/0.001794, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 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.002346/0.002346, allocations: 222.6 kB / 23.03 MB, free: 4.945 MB / 14.72 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 1.529/1.529, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 3.224/3.224, allocations: 0.5003 GB / 0.8062 GB, free: 28.32 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002836/0.002836, allocations: 62.25 kB / 1.17 GB, free: 19.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3576, allocations: 179 MB / 1.345 GB, free: 15.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005277/0.3629, allocations: 3.235 MB / 1.348 GB, free: 12.73 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003637/0.3665, allocations: 1.975 MB / 1.35 GB, free: 10.75 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3667, allocations: 19.88 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.3677, allocations: 286.8 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0006389/0.3684, allocations: 239 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007619/0.3691, allocations: 289.4 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005303/0.3697, allocations: 410.7 kB / 1.352 GB, free: 9.531 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003796/0.37, allocations: 180 kB / 1.352 GB, free: 9.355 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003226/0.3704, allocations: 167.4 kB / 1.352 GB, free: 9.191 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000435/0.3708, allocations: 219.2 kB / 1.352 GB, free: 8.977 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.3708, allocations: 24 kB / 1.352 GB, free: 8.953 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004994/0.3713, allocations: 259.4 kB / 1.352 GB, free: 8.699 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000157/0.3715, allocations: 115.7 kB / 1.352 GB, free: 8.586 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.3717, allocations: 119.5 kB / 1.353 GB, free: 8.469 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0006952/0.3723, allocations: 0.4904 MB / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3724, allocations: 0 / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3724, allocations: 0 / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.3724, allocations: 0 / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001212/0.3736, allocations: 0.5284 MB / 1.354 GB, free: 7.414 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.3736, allocations: 12.03 kB / 1.354 GB, free: 7.402 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.452e-05/0.3736, allocations: 12.61 kB / 1.354 GB, free: 7.391 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.706e-05/0.3737, allocations: 66.72 kB / 1.354 GB, free: 7.316 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001052/0.3748, allocations: 112.6 kB / 1.354 GB, free: 7.207 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000423/0.3752, allocations: 227.9 kB / 1.354 GB, free: 6.957 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.3752, allocations: 16.88 kB / 1.354 GB, free: 6.941 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.3754, allocations: 44.23 kB / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008542/0.3762, allocations: 0.5181 MB / 1.355 GB, free: 6.324 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3762, allocations: 0 / 1.355 GB, free: 6.324 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.3763, allocations: 11.94 kB / 1.355 GB, free: 6.312 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.3764, allocations: 36.47 kB / 1.355 GB, free: 6.277 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006611/0.3771, allocations: 369.7 kB / 1.355 GB, free: 5.914 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002634/0.3797, allocations: 1.644 MB / 1.357 GB, free: 4.199 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004586/0.3802, allocations: 246.4 kB / 1.357 GB, free: 3.949 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002178/0.3804, allocations: 140.8 kB / 1.357 GB, free: 3.809 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3804, allocations: 4 kB / 1.357 GB, free: 3.805 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.3805, allocations: 34.94 kB / 1.357 GB, free: 3.762 MB / 1.045 GB Notification: Performance of pre-optimization done (n=22): time 2.184e-06/0.3805, allocations: 0 / 1.357 GB, free: 3.762 MB / 1.045 GB Notification: Performance of matching and sorting (n=23): time 0.001947/0.3824, allocations: 0.9069 MB / 1.358 GB, free: 2.824 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.3825, allocations: 59.39 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.3828, allocations: 256.9 kB / 1.358 GB, free: 2.492 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.3828, allocations: 33.64 kB / 1.358 GB, free: 2.453 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.383, allocations: 192.3 kB / 1.358 GB, free: 2.262 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.899e-05/0.3831, allocations: 91.27 kB / 1.358 GB, free: 2.172 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.3832, allocations: 73.69 kB / 1.359 GB, free: 2.094 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3834, allocations: 330.8 kB / 1.359 GB, free: 1.762 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003002/0.3837, allocations: 163.9 kB / 1.359 GB, free: 1.602 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.384, allocations: 246.3 kB / 1.359 GB, free: 1.324 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000618/0.3846, allocations: 410.8 kB / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3846, allocations: 0 / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001277/0.3859, allocations: 0.6012 MB / 1.36 GB, free: 288 kB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3859, allocations: 7.938 kB / 1.36 GB, free: 280 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.386, allocations: 4 kB / 1.36 GB, free: 276 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007714/0.3867, allocations: 192.7 kB / 1.36 GB, free: 80 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003523/0.3871, allocations: 67.89 kB / 1.36 GB, free: 12 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003146/0.3902, allocations: 2.358 MB / 1.363 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004385/0.3907, allocations: 24 kB / 1.363 GB, free: 13.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.724e-05/0.3907, allocations: 16 kB / 1.363 GB, free: 13.5 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002208/0.3909, allocations: 177.7 kB / 1.363 GB, free: 13.32 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.391, allocations: 23.86 kB / 1.363 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005929/0.3916, allocations: 352.2 kB / 1.363 GB, free: 12.95 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3916, allocations: 7.984 kB / 1.363 GB, free: 12.94 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.3916, allocations: 0 / 1.363 GB, free: 12.94 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3916, allocations: 0 / 1.363 GB, free: 12.94 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.3927, allocations: 0.7539 MB / 1.364 GB, free: 12.13 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3927, allocations: 0 / 1.364 GB, free: 12.13 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.3931, allocations: 83.94 kB / 1.364 GB, free: 12.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3931, allocations: 0 / 1.364 GB, free: 12.05 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.3932, allocations: 7.984 kB / 1.364 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3932, allocations: 3.984 kB / 1.364 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3932, allocations: 0 / 1.364 GB, free: 12.04 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007926/0.394, allocations: 0.6116 MB / 1.365 GB, free: 11.4 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.3941, allocations: 55.83 kB / 1.365 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.3941, allocations: 15.92 kB / 1.365 GB, free: 11.33 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.3944, allocations: 15.98 kB / 1.365 GB, free: 11.32 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.3944, allocations: 15.91 kB / 1.365 GB, free: 11.3 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3945, allocations: 12 kB / 1.365 GB, free: 11.29 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002467/0.3947, allocations: 188.5 kB / 1.365 GB, free: 11.1 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3947, allocations: 0 / 1.365 GB, free: 11.1 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004324/0.3951, allocations: 88 kB / 1.365 GB, free: 11.02 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001174/0.3963, allocations: 1.159 MB / 1.366 GB, free: 9.824 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001034/0.3973, allocations: 0.5152 MB / 1.367 GB, free: 9.297 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3973, allocations: 0 / 1.367 GB, free: 9.297 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.3975, allocations: 139.9 kB / 1.367 GB, free: 9.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004879/0.398, allocations: 63.33 kB / 1.367 GB, free: 9.102 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005554/0.4036, allocations: 3.692 MB / 1.371 GB, free: 5.242 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.4038, allocations: 186.1 kB / 1.371 GB, free: 5.047 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002356/0.404, allocations: 78.91 kB / 1.371 GB, free: 4.969 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.4042, allocations: 83.39 kB / 1.371 GB, free: 4.887 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.4042, allocations: 0 / 1.371 GB, free: 4.887 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.4365, allocations: 7.405 MB / 1.378 GB, free: 13.68 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.39, allocations: 10.25 kB / 1.378 GB, free: 13.67 MB / 1.076 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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: 19.28737967205234]