Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.698/2.698, allocations: 390.9 MB / 0.666 GB, free: 2.523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003915, allocations: 8 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9363/0.9367, allocations: 142.4 MB / 0.9544 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003301/0.9401, allocations: 2.495 MB / 0.9569 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002373/0.9425, allocations: 1.529 MB / 0.9584 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.9426, allocations: 2.906 kB / 0.9584 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.9428, allocations: 34.97 kB / 0.9584 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004596/0.9433, allocations: 132.4 kB / 0.9585 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005007/0.9438, allocations: 171 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004139/0.9443, allocations: 350.9 kB / 0.959 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007176/0.945, allocations: 367.2 kB / 0.9594 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.9452, allocations: 101.1 kB / 0.9595 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.9455, allocations: 138.7 kB / 0.9596 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.389e-05/0.9455, allocations: 9.625 kB / 0.9596 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000282/0.9458, allocations: 148.6 kB / 0.9597 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.9459, allocations: 74.41 kB / 0.9598 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.74e-05/0.946, allocations: 63.77 kB / 0.9599 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003505/0.9463, allocations: 301.4 kB / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.9463, allocations: 0.9688 kB / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9464, allocations: 0 / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.9464, allocations: 0 / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008408/0.9472, allocations: 0.5068 MB / 0.9607 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.9473, allocations: 9 kB / 0.9607 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006532/0.9479, allocations: 100.1 kB / 0.9608 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.9482, allocations: 250.8 kB / 0.961 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.9482, allocations: 16.53 kB / 0.961 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.9483, allocations: 20.11 kB / 0.961 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006089/0.9489, allocations: 370.9 kB / 0.9614 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.9489, allocations: 7.938 kB / 0.9614 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.949, allocations: 15.09 kB / 0.9614 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.837e-05/0.9491, allocations: 29.64 kB / 0.9614 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.9497, allocations: 328.9 kB / 0.9618 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.9513, allocations: 1.723 MB / 0.9634 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006589/0.952, allocations: 342 kB / 0.9638 GB, free: 396 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002611/0.9523, allocations: 158.1 kB / 0.9639 GB, free: 308 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.9524, allocations: 83.27 kB / 0.964 GB, free: 212 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.9525, allocations: 44.61 kB / 0.964 GB, free: 160 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.9525, allocations: 0 / 0.964 GB, free: 160 kB / 0.7169 GB Notification: Performance of matching and sorting (n=21): time 0.001462/0.9539, allocations: 0.6062 MB / 0.9646 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.217e-05/0.954, allocations: 88.84 kB / 0.9647 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.9542, allocations: 201.7 kB / 0.9649 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.9543, allocations: 27.11 kB / 0.9649 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.9544, allocations: 166.7 kB / 0.9651 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.407e-05/0.9545, allocations: 68.77 kB / 0.9652 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.9545, allocations: 5.219 kB / 0.9652 GB, free: 15.26 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000167/0.9547, allocations: 332 kB / 0.9655 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.955, allocations: 136.8 kB / 0.9656 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.9553, allocations: 218.2 kB / 0.9658 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002915/0.9556, allocations: 161.6 kB / 0.966 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9556, allocations: 0 / 0.966 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008999/0.9565, allocations: 439.3 kB / 0.9664 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.9568, allocations: 171 kB / 0.9666 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.9568, allocations: 3.094 kB / 0.9666 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002568/0.9571, allocations: 49.94 kB / 0.9666 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.9574, allocations: 68.2 kB / 0.9667 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.9589, allocations: 1.493 MB / 0.9681 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.9591, allocations: 31.03 kB / 0.9682 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.9591, allocations: 17.36 kB / 0.9682 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/0.9592, allocations: 4.406 kB / 0.9682 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000734/0.9599, allocations: 373.2 kB / 0.9685 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.9599, allocations: 3.312 kB / 0.9685 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001294/0.96, allocations: 49.66 kB / 0.9686 GB, free: 12.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/0.9603, allocations: 73.23 kB / 0.9687 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.9618, allocations: 1.483 MB / 0.9701 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.962, allocations: 25.58 kB / 0.9701 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.962, allocations: 13.25 kB / 0.9701 GB, free: 10.92 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002309/0.9622, allocations: 242.2 kB / 0.9704 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.9623, allocations: 21.02 kB / 0.9704 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007809/0.9631, allocations: 369.9 kB / 0.9707 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.9631, allocations: 3 kB / 0.9707 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.9631, allocations: 5.031 kB / 0.9708 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.9631, allocations: 4.984 kB / 0.9708 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.9647, allocations: 0.9689 MB / 0.9717 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/0.9647, allocations: 2.219 kB / 0.9717 GB, free: 9.695 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.9649, allocations: 49.95 kB / 0.9718 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.9651, allocations: 43.14 kB / 0.9718 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.9651, allocations: 11.75 kB / 0.9718 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.9664, allocations: 1.404 MB / 0.9732 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.9664, allocations: 6.062 kB / 0.9732 GB, free: 8.23 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008523/0.9673, allocations: 0.5438 MB / 0.9737 GB, free: 7.812 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.9674, allocations: 126.5 kB / 0.9738 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.9674, allocations: 3.844 kB / 0.9738 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.9677, allocations: 29.25 kB / 0.9739 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.436e-05/0.9678, allocations: 20.59 kB / 0.9739 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.9678, allocations: 7.781 kB / 0.9739 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001693/0.968, allocations: 153.4 kB / 0.974 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.11e-07/0.968, allocations: 0 / 0.974 GB, free: 7.547 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006785/0.9686, allocations: 112.5 kB / 0.9741 GB, free: 7.527 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001955/0.9688, allocations: 116.2 kB / 0.9743 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001468/0.9703, allocations: 0.7399 MB / 0.975 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.9703, allocations: 0.9375 kB / 0.975 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004039/0.9707, allocations: 273.4 kB / 0.9752 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.9712, allocations: 36.34 kB / 0.9753 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.9723, allocations: 0.6729 MB / 0.9759 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.9727, allocations: 0.7663 MB / 0.9767 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002778/0.973, allocations: 86.98 kB / 0.9768 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.103e-05/0.9731, allocations: 23.66 kB / 0.9768 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.9731, allocations: 0 / 0.9768 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of Templates: time 0.007319/0.9804, allocations: 2.978 MB / 0.9797 GB, free: 3.988 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches