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.001288/0.001288, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001532/0.001532, allocations: 212.4 kB / 22.24 MB, free: 5.242 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.797 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.256/3.256, allocations: 0.5107 GB / 0.8158 GB, free: 17.94 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",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.003499/0.003499, allocations: 66.25 kB / 1.186 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3897, allocations: 181.9 MB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.005636/0.3953, allocations: 3.241 MB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003669/0.399, allocations: 1.979 MB / 1.368 GB, free: 8.848 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.3992, allocations: 7.938 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.4002, allocations: 302.8 kB / 1.369 GB, free: 8.543 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.4009, allocations: 235 kB / 1.369 GB, free: 8.312 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007501/0.4016, allocations: 291.2 kB / 1.369 GB, free: 8.027 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005562/0.4022, allocations: 414.7 kB / 1.37 GB, free: 7.621 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.4025, allocations: 173.3 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000321/0.4028, allocations: 171.4 kB / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004141/0.4033, allocations: 203.3 kB / 1.37 GB, free: 7.082 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.4033, allocations: 28 kB / 1.37 GB, free: 7.055 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005063/0.4038, allocations: 239.5 kB / 1.37 GB, free: 6.82 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001671/0.404, allocations: 127.6 kB / 1.371 GB, free: 6.695 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.4042, allocations: 123.4 kB / 1.371 GB, free: 6.574 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007258/0.4049, allocations: 490.2 kB / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4049, allocations: 0 / 1.371 GB, free: 6.094 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.473e-06/0.4049, allocations: 7.938 kB / 1.371 GB, free: 6.086 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.45e-05/0.4049, allocations: 0 / 1.371 GB, free: 6.086 MB / 1.061 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.00127/0.4062, allocations: 0.5284 MB / 1.372 GB, free: 5.527 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.4062, allocations: 8.031 kB / 1.372 GB, free: 5.52 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.236e-05/0.4063, allocations: 62.72 kB / 1.372 GB, free: 5.449 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.4073, allocations: 120.6 kB / 1.372 GB, free: 5.332 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.4078, allocations: 226.7 kB / 1.372 GB, free: 5.082 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.4078, allocations: 20.86 kB / 1.372 GB, free: 5.062 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/0.408, allocations: 36.45 kB / 1.372 GB, free: 5.027 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008058/0.4088, allocations: 0.5142 MB / 1.373 GB, free: 4.461 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.4088, allocations: 7.922 kB / 1.373 GB, free: 4.453 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.474e-05/0.4088, allocations: 15.98 kB / 1.373 GB, free: 4.438 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.409, allocations: 40.47 kB / 1.373 GB, free: 4.398 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006911/0.4097, allocations: 365.7 kB / 1.373 GB, free: 4.043 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002738/0.4124, allocations: 1.632 MB / 1.375 GB, free: 2.332 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.4129, allocations: 242.4 kB / 1.375 GB, free: 2.086 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002296/0.4131, allocations: 156.7 kB / 1.375 GB, free: 1.93 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.4131, allocations: 4 kB / 1.375 GB, free: 1.926 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.4132, allocations: 30.56 kB / 1.375 GB, free: 1.887 MB / 1.061 GB Notification: Performance of pre-optimization done (n=22): time 1.674e-06/0.4132, allocations: 0 / 1.375 GB, free: 1.887 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.001848/0.415, allocations: 0.9119 MB / 1.376 GB, free: 0.9453 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.4151, allocations: 55.41 kB / 1.376 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.4154, allocations: 264.7 kB / 1.376 GB, free: 0.6094 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.4155, allocations: 33.7 kB / 1.376 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.4156, allocations: 192.3 kB / 1.376 GB, free: 388 kB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.512e-05/0.4157, allocations: 87.27 kB / 1.377 GB, free: 300 kB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.4158, allocations: 81.62 kB / 1.377 GB, free: 212 kB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.416, allocations: 334.8 kB / 1.377 GB, free: 15.87 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.4163, allocations: 159.9 kB / 1.377 GB, free: 15.71 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000375/0.4167, allocations: 242.3 kB / 1.377 GB, free: 15.44 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.4173, allocations: 406.8 kB / 1.378 GB, free: 15.01 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4174, allocations: 3.938 kB / 1.378 GB, free: 15.01 MB / 1.076 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001317/0.4187, allocations: 0.5973 MB / 1.378 GB, free: 14.4 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4187, allocations: 4 kB / 1.378 GB, free: 14.4 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4187, allocations: 4 kB / 1.378 GB, free: 14.39 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007569/0.4195, allocations: 188.8 kB / 1.378 GB, free: 14.21 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.4198, allocations: 67.89 kB / 1.379 GB, free: 14.14 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003289/0.4231, allocations: 2.373 MB / 1.381 GB, free: 11.66 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.4235, allocations: 20.02 kB / 1.381 GB, free: 11.64 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.4235, allocations: 20.09 kB / 1.381 GB, free: 11.62 MB / 1.076 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.0002095/0.4237, allocations: 173.7 kB / 1.381 GB, free: 11.44 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.075e-05/0.4238, allocations: 23.86 kB / 1.381 GB, free: 11.41 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006119/0.4244, allocations: 351.6 kB / 1.381 GB, free: 11.07 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4244, allocations: 4 kB / 1.381 GB, free: 11.06 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.4244, allocations: 0 / 1.381 GB, free: 11.06 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.4244, allocations: 0 / 1.381 GB, free: 11.06 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.4257, allocations: 0.7566 MB / 1.382 GB, free: 10.25 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.4257, allocations: 0 / 1.382 GB, free: 10.25 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.4261, allocations: 71.88 kB / 1.382 GB, free: 10.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.4261, allocations: 8.062 kB / 1.382 GB, free: 10.17 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.4261, allocations: 8 kB / 1.382 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.4261, allocations: 0 / 1.382 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4261, allocations: 0 / 1.382 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008627/0.427, allocations: 0.6168 MB / 1.383 GB, free: 9.527 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001672/0.4272, allocations: 51.88 kB / 1.383 GB, free: 9.477 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.785e-05/0.4272, allocations: 11.95 kB / 1.383 GB, free: 9.465 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.4275, allocations: 15.97 kB / 1.383 GB, free: 9.449 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.4275, allocations: 20 kB / 1.383 GB, free: 9.43 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.4275, allocations: 7.938 kB / 1.383 GB, free: 9.422 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002609/0.4278, allocations: 192.5 kB / 1.383 GB, free: 9.234 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4278, allocations: 0 / 1.383 GB, free: 9.234 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0004609/0.4283, allocations: 92 kB / 1.383 GB, free: 9.145 MB / 1.076 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.001234/0.4295, allocations: 1.15 MB / 1.384 GB, free: 7.961 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001053/0.4305, allocations: 0.5182 MB / 1.385 GB, free: 7.43 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4306, allocations: 0 / 1.385 GB, free: 7.43 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002158/0.4308, allocations: 139.9 kB / 1.385 GB, free: 7.293 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.4312, allocations: 63.92 kB / 1.385 GB, free: 7.234 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005952/0.4372, allocations: 3.701 MB / 1.389 GB, free: 3.371 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.4374, allocations: 190.1 kB / 1.389 GB, free: 3.172 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.000293/0.4377, allocations: 78.91 kB / 1.389 GB, free: 3.09 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002056/0.4379, allocations: 87.41 kB / 1.389 GB, free: 3.004 MB / 1.076 GB Notification: Performance of SimCode: time 9.32e-07/0.4379, allocations: 0 / 1.389 GB, free: 3.004 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.4768, allocations: 7.65 MB / 1.396 GB, free: 11.54 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.08, allocations: 11.94 kB / 1.397 GB, free: 11.53 MB / 1.092 GB " [Timeout remaining time 288] (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: 18.935947431251407]