Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.001792/0.001792, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.002278/0.002278, allocations: 211.3 kB / 20.13 MB, free: 3.035 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 / 253.5 MB, free: 15.1 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.006/3.006, allocations: 0.5003 GB / 0.8026 GB, free: 6.703 MB / 0.6387 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.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad",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.002102/0.002102, allocations: 67.89 kB / 1.165 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9367/0.9388, allocations: 179 MB / 1.34 GB, free: 16.28 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004324/0.9431, allocations: 3.128 MB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002615/0.9457, allocations: 2.015 MB / 1.345 GB, free: 12.78 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.9458, allocations: 13.38 kB / 1.345 GB, free: 12.77 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0008533/0.9467, allocations: 274.6 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.9471, allocations: 203.5 kB / 1.346 GB, free: 12.5 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005653/0.9477, allocations: 250 kB / 1.346 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003409/0.948, allocations: 325.9 kB / 1.346 GB, free: 12.24 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.9483, allocations: 148.7 kB / 1.346 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.9485, allocations: 136.7 kB / 1.346 GB, free: 12.11 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.9487, allocations: 160.5 kB / 1.347 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.9488, allocations: 20.66 kB / 1.347 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006004/0.9494, allocations: 422.1 kB / 1.347 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.9495, allocations: 93.2 kB / 1.347 GB, free: 11.87 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.9496, allocations: 118.5 kB / 1.347 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006975/0.9503, allocations: 494.6 kB / 1.348 GB, free: 11.64 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.9503, allocations: 1.062 kB / 1.348 GB, free: 11.64 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.373e-06/0.9503, allocations: 4 kB / 1.348 GB, free: 11.63 MB / 1.061 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.9503, allocations: 0.7031 kB / 1.348 GB, free: 11.63 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000838/0.9511, allocations: 0.5779 MB / 1.348 GB, free: 11.12 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.9512, allocations: 10.25 kB / 1.348 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.564e-05/0.9512, allocations: 5.5 kB / 1.348 GB, free: 11.12 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.9513, allocations: 56.05 kB / 1.348 GB, free: 11.07 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008523/0.9521, allocations: 114.8 kB / 1.348 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.9524, allocations: 267.5 kB / 1.349 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.9524, allocations: 13.91 kB / 1.349 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.9525, allocations: 20.45 kB / 1.349 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005414/0.953, allocations: 355.2 kB / 1.349 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.953, allocations: 1.188 kB / 1.349 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.953, allocations: 13.89 kB / 1.349 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.386e-05/0.9531, allocations: 22.03 kB / 1.349 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004712/0.9536, allocations: 299.4 kB / 1.349 GB, free: 10.49 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.9554, allocations: 1.729 MB / 1.351 GB, free: 9.047 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004445/0.9558, allocations: 330.3 kB / 1.351 GB, free: 8.82 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.956, allocations: 99.48 kB / 1.351 GB, free: 8.773 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 8.491e-05/0.9561, allocations: 86.69 kB / 1.352 GB, free: 8.68 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.9561, allocations: 40.75 kB / 1.352 GB, free: 8.633 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.432e-06/0.9561, allocations: 0 / 1.352 GB, free: 8.633 MB / 1.061 GB Notification: Performance of matching and sorting (n=23): time 0.002516/0.9586, allocations: 0.9758 MB / 1.353 GB, free: 8.176 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.9586, allocations: 88.7 kB / 1.353 GB, free: 8.074 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.9588, allocations: 211.4 kB / 1.353 GB, free: 7.934 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.9588, allocations: 30.8 kB / 1.353 GB, free: 7.898 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.9589, allocations: 175.9 kB / 1.353 GB, free: 7.746 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.959, allocations: 89.3 kB / 1.353 GB, free: 7.676 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.774e-05/0.9591, allocations: 56.39 kB / 1.353 GB, free: 7.645 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.9591, allocations: 329.6 kB / 1.353 GB, free: 7.324 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.9593, allocations: 135.1 kB / 1.354 GB, free: 7.273 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.9595, allocations: 216.5 kB / 1.354 GB, free: 7.125 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.96, allocations: 369.2 kB / 1.354 GB, free: 6.902 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.96, allocations: 1.094 kB / 1.354 GB, free: 6.902 MB / 1.061 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008386/0.9608, allocations: 0.5069 MB / 1.355 GB, free: 6.66 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.9608, allocations: 9.312 kB / 1.355 GB, free: 6.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.9608, allocations: 7.359 kB / 1.355 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.9613, allocations: 146.9 kB / 1.355 GB, free: 6.598 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.9616, allocations: 61.11 kB / 1.355 GB, free: 6.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.9638, allocations: 4.192 MB / 1.359 GB, free: 2.574 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.964, allocations: 21.89 kB / 1.359 GB, free: 2.566 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.9641, allocations: 12.19 kB / 1.359 GB, free: 2.566 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): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.9642, allocations: 169.6 kB / 1.359 GB, free: 2.418 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.9643, allocations: 22.17 kB / 1.359 GB, free: 2.406 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008548/0.9652, allocations: 468.9 kB / 1.36 GB, free: 2.188 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.9652, allocations: 4.047 kB / 1.36 GB, free: 2.188 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.9652, allocations: 1.031 kB / 1.36 GB, free: 2.188 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.9652, allocations: 2.703 kB / 1.36 GB, free: 2.188 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.9667, allocations: 1.003 MB / 1.361 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.9667, allocations: 2.156 kB / 1.361 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.9669, allocations: 30.77 kB / 1.361 GB, free: 1.543 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.9673, allocations: 142.9 kB / 1.361 GB, free: 1.48 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.9673, allocations: 8.797 kB / 1.361 GB, free: 1.477 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/0.9703, allocations: 4.162 MB / 1.365 GB, free: 13.46 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.9703, allocations: 6.969 kB / 1.365 GB, free: 13.46 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008931/0.9712, allocations: 0.6249 MB / 1.365 GB, free: 13.01 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.9713, allocations: 129.8 kB / 1.366 GB, free: 12.89 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/0.9713, allocations: 13.42 kB / 1.366 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.9716, allocations: 18.25 kB / 1.366 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.631e-05/0.9716, allocations: 21.58 kB / 1.366 GB, free: 12.88 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.9717, allocations: 8.438 kB / 1.366 GB, free: 12.88 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000168/0.9718, allocations: 160.3 kB / 1.366 GB, free: 12.77 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9718, allocations: 7.938 kB / 1.366 GB, free: 12.77 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005826/0.9724, allocations: 97.53 kB / 1.366 GB, free: 12.75 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001342/0.9738, allocations: 1.199 MB / 1.367 GB, free: 11.75 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001037/0.9748, allocations: 0.5572 MB / 1.368 GB, free: 11.42 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.9748, allocations: 5.531 kB / 1.368 GB, free: 11.41 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0005682/0.9754, allocations: 391.8 kB / 1.368 GB, free: 11.14 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005299/0.9759, allocations: 40.97 kB / 1.368 GB, free: 11.12 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.9806, allocations: 3.342 MB / 1.371 GB, free: 8.758 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.981, allocations: 0.7824 MB / 1.372 GB, free: 8.047 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001886/0.9812, allocations: 60.88 kB / 1.372 GB, free: 8.039 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.9814, allocations: 70.95 kB / 1.372 GB, free: 7.988 MB / 1.076 GB Notification: Performance of SimCode: time 5.41e-07/0.9814, allocations: 0 / 1.372 GB, free: 7.988 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/1.015, allocations: 6.895 MB / 1.379 GB, free: 7.18 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.86, allocations: 27.48 kB / 1.379 GB, free: 7.16 MB / 1.076 GB " [Timeout remaining time 286] (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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: 20.596029717009515]