Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tur.P|res.P|sen.V|sou.P.real|sou.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009673, allocations: 88.2 kB / 16.03 MB, free: 56 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 187.8 kB / 16.93 MB, free: 6.891 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.415/1.415, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.658/2.658, allocations: 437.8 MB / 0.7128 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003705, allocations: 8 kB / 0.8735 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7596/0.76, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.009898/0.7699, allocations: 7.324 MB / 1.031 GB, free: 8.527 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1991/0.9691, allocations: 148.4 MB / 1.176 GB, free: 3.586 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.9707, allocations: 23.88 kB / 1.176 GB, free: 3.562 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.972, allocations: 274.2 kB / 1.176 GB, free: 3.293 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.9756, allocations: 0.7853 MB / 1.177 GB, free: 2.508 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003381/0.979, allocations: 0.9732 MB / 1.178 GB, free: 1.543 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003478/0.9825, allocations: 2.037 MB / 1.18 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003615/0.9861, allocations: 1.55 MB / 1.181 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.9874, allocations: 0.4977 MB / 1.182 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.9888, allocations: 0.6531 MB / 1.182 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0003582/0.9892, allocations: 44 kB / 1.182 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.9909, allocations: 0.6553 MB / 1.183 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003883/0.9913, allocations: 338.6 kB / 1.183 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0007851/0.9921, allocations: 0.6462 MB / 1.184 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002196/0.9943, allocations: 1.707 MB / 1.186 GB, free: 9.324 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.9944, allocations: 3.984 kB / 1.186 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.114e-06/0.9944, allocations: 0 / 1.186 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.241e-05/0.9944, allocations: 0 / 1.186 GB, free: 9.32 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: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003081/0.9975, allocations: 1.577 MB / 1.187 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.9975, allocations: 12.03 kB / 1.187 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.999, allocations: 298.8 kB / 1.188 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/1.001, allocations: 0.9877 MB / 1.188 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.628e-05/1.001, allocations: 86.22 kB / 1.189 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/1.001, allocations: 112 kB / 1.189 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002384/1.003, allocations: 1.39 MB / 1.19 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/1.003, allocations: 3.938 kB / 1.19 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/1.003, allocations: 55.98 kB / 1.19 GB, free: 4.621 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/1.003, allocations: 74.05 kB / 1.19 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002532/1.006, allocations: 1.522 MB / 1.192 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007117/1.013, allocations: 5.04 MB / 1.197 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001996/1.015, allocations: 1.109 MB / 1.198 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007663/1.016, allocations: 464.5 kB / 1.198 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002208/1.016, allocations: 126 kB / 1.198 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/1.017, allocations: 0.6507 MB / 1.199 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=103): time 3.617e-06/1.017, allocations: 4 kB / 1.199 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of matching and sorting (n=104): time 0.00548/1.023, allocations: 2.274 MB / 1.201 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/1.023, allocations: 244.3 kB / 1.201 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/1.024, allocations: 0.9573 MB / 1.202 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 9.483e-05/1.025, allocations: 45.7 kB / 1.202 GB, free: 7.645 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005161/1.025, allocations: 0.5585 MB / 1.203 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/1.025, allocations: 347 kB / 1.203 GB, free: 6.734 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/1.026, allocations: 89.61 kB / 1.203 GB, free: 6.641 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001524/1.026, allocations: 349.9 kB / 1.204 GB, free: 6.293 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/1.026, allocations: 406.4 kB / 1.204 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/1.027, allocations: 0.5863 MB / 1.205 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/1.029, allocations: 0.98 MB / 1.206 GB, free: 4.234 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/1.029, allocations: 4 kB / 1.206 GB, free: 4.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002955/1.032, allocations: 1.36 MB / 1.207 GB, free: 2.859 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001577/1.032, allocations: 189.5 kB / 1.207 GB, free: 2.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/1.032, allocations: 4 kB / 1.207 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/1.033, allocations: 260.5 kB / 1.207 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009544/1.034, allocations: 239.7 kB / 1.207 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/1.037, allocations: 1.992 MB / 1.209 GB, free: 12 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/1.039, allocations: 126.2 kB / 1.21 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/1.039, allocations: 51.97 kB / 1.21 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/1.039, allocations: 4 kB / 1.21 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002044/1.041, allocations: 1.023 MB / 1.211 GB, free: 14.81 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.041, allocations: 11.97 kB / 1.211 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/1.041, allocations: 8 kB / 1.211 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009368/1.042, allocations: 231.7 kB / 1.211 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-05/1.042, allocations: 15.92 kB / 1.211 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/1.043, allocations: 123.3 kB / 1.211 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/1.043, allocations: 47.97 kB / 1.211 GB, free: 14.38 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008997/1.044, allocations: 451 kB / 1.211 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/1.044, allocations: 114.6 kB / 1.212 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/1.048, allocations: 1.486 MB / 1.213 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/1.048, allocations: 12 kB / 1.213 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.048, allocations: 0 / 1.213 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/1.048, allocations: 7.969 kB / 1.213 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005355/1.054, allocations: 2.858 MB / 1.216 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/1.054, allocations: 3.938 kB / 1.216 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008051/1.054, allocations: 199.8 kB / 1.216 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008583/1.055, allocations: 216.7 kB / 1.216 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.005e-05/1.055, allocations: 27.98 kB / 1.216 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/1.058, allocations: 1.823 MB / 1.218 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.058, allocations: 7.938 kB / 1.218 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002947/1.06, allocations: 1.498 MB / 1.22 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000815/1.061, allocations: 367.1 kB / 1.22 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/1.062, allocations: 24 kB / 1.22 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/1.063, allocations: 112.5 kB / 1.22 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/1.063, allocations: 88.83 kB / 1.22 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/1.063, allocations: 43.97 kB / 1.22 GB, free: 4.777 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001219/1.064, allocations: 0.6733 MB / 1.221 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/1.064, allocations: 0 / 1.221 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002113/1.066, allocations: 0.5467 MB / 1.221 GB, free: 3.547 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001812/1.068, allocations: 0.6632 MB / 1.222 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003682/1.072, allocations: 1.748 MB / 1.224 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.072, allocations: 0 / 1.224 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.001336/1.073, allocations: 0.6959 MB / 1.224 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/1.076, allocations: 349.2 kB / 1.225 GB, free: 296 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006257/1.082, allocations: 3.139 MB / 1.228 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/1.083, allocations: 1.216 MB / 1.229 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005908/1.084, allocations: 147.4 kB / 1.229 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of SimCode: time 1.834e-06/1.084, allocations: 0 / 1.229 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of Templates: time 0.04088/1.125, allocations: 24.96 MB / 1.253 GB, free: 2.793 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches