Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.005292/0.005292, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001394/0.001394, allocations: 198.3 kB / 16.68 MB, free: 5.965 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.665/2.665, allocations: 461.9 MB / 0.7348 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 63.91 kB / 1.054 GB, free: 7.641 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9/0.9014, allocations: 157.4 MB / 1.208 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004608/0.906, allocations: 2.9 MB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00304/0.9091, allocations: 1.8 MB / 1.212 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.9094, allocations: 4 kB / 1.212 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0009153/0.9103, allocations: 247 kB / 1.213 GB, free: 8.586 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006221/0.9109, allocations: 199.1 kB / 1.213 GB, free: 8.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006096/0.9115, allocations: 223.4 kB / 1.213 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004623/0.912, allocations: 319 kB / 1.213 GB, free: 7.859 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003636/0.9124, allocations: 174.4 kB / 1.213 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.9126, allocations: 127.5 kB / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003429/0.913, allocations: 151.5 kB / 1.214 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.282e-05/0.9131, allocations: 20 kB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000506/0.9136, allocations: 279.5 kB / 1.214 GB, free: 7.117 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.9137, allocations: 83.78 kB / 1.214 GB, free: 7.035 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001415/0.9138, allocations: 115.4 kB / 1.214 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006531/0.9145, allocations: 440.4 kB / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.9145, allocations: 0 / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.382e-06/0.9145, allocations: 0 / 1.215 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.023e-05/0.9145, allocations: 0 / 1.215 GB, free: 6.496 MB / 0.9356 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.001008/0.9155, allocations: 0.5496 MB / 1.215 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.9156, allocations: 8.031 kB / 1.215 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009682/0.9166, allocations: 108.5 kB / 1.215 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.917, allocations: 267.8 kB / 1.215 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.917, allocations: 12.75 kB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.9171, allocations: 24.36 kB / 1.216 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.9178, allocations: 386.5 kB / 1.216 GB, free: 5.035 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.9178, allocations: 3.984 kB / 1.216 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.9179, allocations: 11.98 kB / 1.216 GB, free: 5.02 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-05/0.9179, allocations: 24.31 kB / 1.216 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007247/0.9187, allocations: 336.6 kB / 1.216 GB, free: 4.664 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002232/0.9209, allocations: 1.74 MB / 1.218 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007137/0.9216, allocations: 333 kB / 1.218 GB, free: 2.445 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000264/0.9219, allocations: 149.6 kB / 1.218 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/0.9221, allocations: 85.09 kB / 1.218 GB, free: 2.191 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.9221, allocations: 42.5 kB / 1.219 GB, free: 2.141 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.9221, allocations: 7.938 kB / 1.219 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001396/0.9235, allocations: 0.5859 MB / 1.219 GB, free: 1.52 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.9236, allocations: 81.11 kB / 1.219 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.9239, allocations: 212 kB / 1.219 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.9239, allocations: 29.7 kB / 1.219 GB, free: 1.168 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.924, allocations: 163.8 kB / 1.22 GB, free: 1.004 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.747e-05/0.9241, allocations: 78.94 kB / 1.22 GB, free: 0.9258 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.9242, allocations: 57.88 kB / 1.22 GB, free: 0.8633 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.9244, allocations: 334.8 kB / 1.22 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003152/0.9247, allocations: 145.9 kB / 1.22 GB, free: 392 kB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.9251, allocations: 211.3 kB / 1.22 GB, free: 144 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006316/0.9257, allocations: 380.7 kB / 1.221 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.9257, allocations: 3.938 kB / 1.221 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008609/0.9266, allocations: 433.8 kB / 1.221 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.9266, allocations: 8 kB / 1.221 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.9267, allocations: 4 kB / 1.221 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.9269, allocations: 41.17 kB / 1.221 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003371/0.9273, allocations: 75.88 kB / 1.221 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.9288, allocations: 1.615 MB / 1.223 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.9291, allocations: 35.89 kB / 1.223 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.9291, allocations: 12 kB / 1.223 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003514/0.9295, allocations: 244.7 kB / 1.223 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003913/0.9299, allocations: 220.3 kB / 1.223 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005334/0.9304, allocations: 352.2 kB / 1.224 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.9305, allocations: 0 / 1.224 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008189/0.9313, allocations: 428 kB / 1.224 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.9313, allocations: 8.375 kB / 1.224 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.9313, allocations: 4 kB / 1.224 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.9315, allocations: 44.83 kB / 1.224 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.9318, allocations: 67.88 kB / 1.224 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.9331, allocations: 1.607 MB / 1.226 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.9334, allocations: 43.92 kB / 1.226 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.9334, allocations: 12 kB / 1.226 GB, free: 10.12 MB / 0.9512 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.0001385/0.9336, allocations: 196.3 kB / 1.226 GB, free: 9.922 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.962e-05/0.9336, allocations: 23.73 kB / 1.226 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006745/0.9343, allocations: 363.9 kB / 1.226 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.9343, allocations: 4 kB / 1.226 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.9343, allocations: 4 kB / 1.226 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.9344, allocations: 0 / 1.226 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.9358, allocations: 0.956 MB / 1.227 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.9358, allocations: 0 / 1.227 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.936, allocations: 55.83 kB / 1.227 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.9362, allocations: 40.77 kB / 1.227 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.9362, allocations: 7.984 kB / 1.227 GB, free: 8.391 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.9377, allocations: 1.508 MB / 1.229 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.9377, allocations: 3.984 kB / 1.229 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008337/0.9385, allocations: 0.5415 MB / 1.229 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.9387, allocations: 124.9 kB / 1.23 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.506e-05/0.9388, allocations: 19.86 kB / 1.23 GB, free: 5.996 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002761/0.939, allocations: 23.97 kB / 1.23 GB, free: 5.973 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.9391, allocations: 19.91 kB / 1.23 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.9392, allocations: 16 kB / 1.23 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002164/0.9394, allocations: 163 kB / 1.23 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of sort global known variables: time 5.01e-07/0.9394, allocations: 0 / 1.23 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000695/0.9401, allocations: 108 kB / 1.23 GB, free: 5.672 MB / 0.9512 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.0002307/0.9403, allocations: 111.1 kB / 1.23 GB, free: 5.555 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001585/0.9419, allocations: 0.7558 MB / 1.231 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.9419, allocations: 4.062 kB / 1.231 GB, free: 4.77 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004428/0.9424, allocations: 262.5 kB / 1.231 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.9429, allocations: 38.22 kB / 1.231 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.944, allocations: 0.5499 MB / 1.232 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003661/0.9444, allocations: 0.7717 MB / 1.232 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002636/0.9447, allocations: 89.86 kB / 1.232 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.04e-05/0.9448, allocations: 27.42 kB / 1.232 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of SimCode: time 2.11e-07/0.9448, allocations: 0 / 1.232 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of Templates: time 0.007431/0.9522, allocations: 3.465 MB / 1.236 GB, free: 15.5 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches