Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0014/0.0014, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002431/0.002431, allocations: 195 kB / 16.14 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.715/2.715, allocations: 437 MB / 0.7099 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7446/0.7459, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005034/0.7509, allocations: 2.937 MB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003091/0.7541, allocations: 1.824 MB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.7543, allocations: 7.938 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008688/0.7552, allocations: 207.3 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005651/0.7558, allocations: 183.3 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005926/0.7564, allocations: 211.1 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000523/0.7569, allocations: 434.8 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.7574, allocations: 190.2 kB / 1.022 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.7576, allocations: 107.5 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.758, allocations: 151.5 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.7581, allocations: 12 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006229/0.7587, allocations: 331.4 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.7588, allocations: 87.7 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.759, allocations: 111.5 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000701/0.7597, allocations: 448.5 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.7597, allocations: 4 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.693e-06/0.7597, allocations: 4 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.7598, allocations: 0 / 1.024 GB, free: 11.53 MB / 0.7794 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.00118/0.7609, allocations: 0.5379 MB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.761, allocations: 12.03 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.762, allocations: 108.5 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003654/0.7624, allocations: 265.4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.7624, allocations: 16.69 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.7625, allocations: 24.36 kB / 1.025 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007371/0.7632, allocations: 386.5 kB / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.7633, allocations: 0 / 1.025 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.7633, allocations: 11.98 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.76e-05/0.7634, allocations: 24.31 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007131/0.7641, allocations: 340.6 kB / 1.025 GB, free: 9.711 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.7662, allocations: 1.736 MB / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000718/0.7669, allocations: 345 kB / 1.027 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.7672, allocations: 149.6 kB / 1.027 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.7674, allocations: 85.09 kB / 1.028 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.7674, allocations: 42.5 kB / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.713e-06/0.7674, allocations: 0 / 1.028 GB, free: 7.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001397/0.7688, allocations: 0.5954 MB / 1.028 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.7689, allocations: 81.11 kB / 1.028 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.7691, allocations: 207.8 kB / 1.028 GB, free: 6.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.7692, allocations: 29.7 kB / 1.028 GB, free: 6.215 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.7693, allocations: 171.8 kB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.505e-05/0.7693, allocations: 67.02 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.7695, allocations: 61.97 kB / 1.029 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.7696, allocations: 330.8 kB / 1.029 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.7699, allocations: 141.9 kB / 1.029 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.7703, allocations: 219.8 kB / 1.029 GB, free: 5.188 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006133/0.7709, allocations: 381.4 kB / 1.03 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7709, allocations: 0 / 1.03 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008866/0.7718, allocations: 438 kB / 1.03 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.7718, allocations: 7.938 kB / 1.03 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.7718, allocations: 4 kB / 1.03 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/0.7721, allocations: 40.81 kB / 1.03 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000353/0.7725, allocations: 80.09 kB / 1.03 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.774, allocations: 1.493 MB / 1.032 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.7743, allocations: 43.86 kB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.7744, allocations: 15.98 kB / 1.032 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003749/0.7748, allocations: 247.9 kB / 1.032 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000335/0.7751, allocations: 207.1 kB / 1.032 GB, free: 2.035 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005593/0.7757, allocations: 352.6 kB / 1.033 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.7757, allocations: 0 / 1.033 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008577/0.7765, allocations: 423.4 kB / 1.033 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.7766, allocations: 8 kB / 1.033 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.7766, allocations: 0 / 1.033 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000151/0.7767, allocations: 40.83 kB / 1.033 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003035/0.7771, allocations: 76.12 kB / 1.033 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.7783, allocations: 1.497 MB / 1.035 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003118/0.7787, allocations: 35.97 kB / 1.035 GB, free: 15.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.7787, allocations: 15.98 kB / 1.035 GB, free: 15.42 MB / 0.795 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 (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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001748/0.7789, allocations: 200.1 kB / 1.035 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.729e-05/0.779, allocations: 19.72 kB / 1.035 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007074/0.7797, allocations: 348.1 kB / 1.035 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.7797, allocations: 7.938 kB / 1.035 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.7797, allocations: 3.938 kB / 1.035 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.7797, allocations: 4 kB / 1.035 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001457/0.7812, allocations: 0.9625 MB / 1.036 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.7812, allocations: 4 kB / 1.036 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.7814, allocations: 55.89 kB / 1.036 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001331/0.7816, allocations: 41.17 kB / 1.036 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.7816, allocations: 8 kB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.7827, allocations: 1.405 MB / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.7827, allocations: 4 kB / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007244/0.7835, allocations: 0.5326 MB / 1.038 GB, free: 11.57 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.7836, allocations: 120.8 kB / 1.038 GB, free: 11.43 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.7836, allocations: 8 kB / 1.038 GB, free: 11.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002842/0.7839, allocations: 23.95 kB / 1.038 GB, free: 11.4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.784, allocations: 31.86 kB / 1.038 GB, free: 11.37 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.784, allocations: 11.94 kB / 1.038 GB, free: 11.36 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001888/0.7842, allocations: 159 kB / 1.038 GB, free: 11.2 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7842, allocations: 0 / 1.038 GB, free: 11.2 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006564/0.7849, allocations: 112 kB / 1.039 GB, free: 11.09 MB / 0.795 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 (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 {(1,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.000154/0.7851, allocations: 111.8 kB / 1.039 GB, free: 10.97 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001451/0.7865, allocations: 0.7557 MB / 1.039 GB, free: 10.2 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7865, allocations: 0 / 1.039 GB, free: 10.2 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004249/0.787, allocations: 266.5 kB / 1.04 GB, free: 9.922 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.7875, allocations: 44.66 kB / 1.04 GB, free: 9.879 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.7885, allocations: 0.6377 MB / 1.04 GB, free: 9.195 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.7889, allocations: 0.7717 MB / 1.041 GB, free: 8.398 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003132/0.7892, allocations: 93.98 kB / 1.041 GB, free: 8.309 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.782e-05/0.7893, allocations: 23.44 kB / 1.041 GB, free: 8.285 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.7893, allocations: 0 / 1.041 GB, free: 8.285 MB / 0.795 GB Notification: Performance of Templates: time 0.006729/0.796, allocations: 3.246 MB / 1.044 GB, free: 5.043 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches