Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.355/2.355, allocations: 390.5 MB / 398 MB, free: 10.91 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 188.8 kB / 491.2 MB, free: 1.559 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.734/1.734, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 98.89 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.974e-05/1.977e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2722, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.291/4.563, allocations: 1.762 GB / 2.974 GB, free: 77.47 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/4.564, allocations: 98.31 kB / 2.974 GB, free: 77.42 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1441/4.708, allocations: 64.3 MB / 3.037 GB, free: 16.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.685e-06/4.708, allocations: 4 kB / 3.037 GB, free: 16.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001038/4.708, allocations: 35.94 kB / 3.037 GB, free: 16.66 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.002503/4.711, allocations: 1.412 MB / 3.039 GB, free: 15.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/4.711, allocations: 8.031 kB / 3.039 GB, free: 15.19 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001489/4.712, allocations: 301.8 kB / 3.039 GB, free: 14.89 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/4.713, allocations: 0.8378 MB / 3.04 GB, free: 14.01 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/4.713, allocations: 36 kB / 3.04 GB, free: 13.97 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/4.714, allocations: 60 kB / 3.04 GB, free: 13.91 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001711/4.715, allocations: 1.288 MB / 3.041 GB, free: 12.62 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/4.717, allocations: 1.123 MB / 3.042 GB, free: 11.41 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.035e-05/4.717, allocations: 0 / 3.042 GB, free: 11.41 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.23e-05/4.717, allocations: 15.89 kB / 3.042 GB, free: 11.39 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.878e-05/4.717, allocations: 53.98 kB / 3.042 GB, free: 11.34 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004854/4.722, allocations: 4.546 MB / 3.047 GB, free: 6.559 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/4.723, allocations: 0.9133 MB / 3.048 GB, free: 5.625 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000415/4.724, allocations: 391.8 kB / 3.048 GB, free: 5.238 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001864/4.724, allocations: 125.9 kB / 3.048 GB, free: 5.098 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006418/4.724, allocations: 0.5247 MB / 3.049 GB, free: 4.551 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.304e-06/4.724, allocations: 0 / 3.049 GB, free: 4.551 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.00234/4.727, allocations: 1.368 MB / 3.05 GB, free: 3.164 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/4.727, allocations: 295.5 kB / 3.05 GB, free: 2.809 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008724/4.728, allocations: 0.782 MB / 3.051 GB, free: 2.023 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.305e-05/4.728, allocations: 25.7 kB / 3.051 GB, free: 1.992 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003005/4.728, allocations: 0.5506 MB / 3.052 GB, free: 1.434 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/4.728, allocations: 311.4 kB / 3.052 GB, free: 1.125 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/4.728, allocations: 0 / 3.052 GB, free: 1.125 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.168e-05/4.728, allocations: 341.9 kB / 3.052 GB, free: 0.7852 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003753/4.729, allocations: 310.5 kB / 3.052 GB, free: 496 kB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.701/5.43, allocations: 0.4895 MB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/5.431, allocations: 418 kB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/5.432, allocations: 2.062 kB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002901/5.434, allocations: 1.05 MB / 3.054 GB, free: 388.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003149/5.435, allocations: 1.141 MB / 3.055 GB, free: 387.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/5.435, allocations: 4.469 kB / 3.055 GB, free: 387.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007239/5.436, allocations: 128.3 kB / 3.056 GB, free: 387.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009277/5.436, allocations: 209.9 kB / 3.056 GB, free: 387.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006117/5.437, allocations: 0.6416 MB / 3.056 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/5.438, allocations: 90.27 kB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.475e-05/5.438, allocations: 41.3 kB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/5.438, allocations: 3.875 kB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001649/5.44, allocations: 0.7821 MB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/5.44, allocations: 2.938 kB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/5.44, allocations: 8.453 kB / 3.057 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008678/5.441, allocations: 209.9 kB / 3.058 GB, free: 386.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/5.441, allocations: 15.55 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008074/5.442, allocations: 80.91 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.638e-05/5.442, allocations: 38.92 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * 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: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.000258/5.442, allocations: 118.2 kB / 3.058 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/5.442, allocations: 108.9 kB / 3.058 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003164/5.445, allocations: 1.313 MB / 3.059 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/5.445, allocations: 11.25 kB / 3.059 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/5.445, allocations: 4.125 kB / 3.059 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/5.445, allocations: 5.922 kB / 3.059 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005252/5.451, allocations: 2.492 MB / 3.062 GB, free: 386 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/5.451, allocations: 1.594 kB / 3.062 GB, free: 386 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00096/5.452, allocations: 193.4 kB / 3.062 GB, free: 386 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009994/5.453, allocations: 213.7 kB / 3.062 GB, free: 386 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.527e-05/5.453, allocations: 21.38 kB / 3.062 GB, free: 386 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/5.455, allocations: 1.754 MB / 3.064 GB, free: 384.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/5.455, allocations: 2.5 kB / 3.064 GB, free: 384.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002784/5.458, allocations: 1.419 MB / 3.065 GB, free: 384.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006459/5.459, allocations: 355.9 kB / 3.065 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/5.459, allocations: 8.594 kB / 3.065 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000839/5.46, allocations: 76.12 kB / 3.066 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/5.46, allocations: 74.7 kB / 3.066 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/5.46, allocations: 38.91 kB / 3.066 GB, free: 384.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001129/5.461, allocations: 0.616 MB / 3.066 GB, free: 384.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/5.461, allocations: 2.516 kB / 3.066 GB, free: 384.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002314/5.463, allocations: 480.4 kB / 3.067 GB, free: 384.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/5.465, allocations: 0.6073 MB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002945/5.468, allocations: 1.311 MB / 3.069 GB, free: 383.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/5.468, allocations: 1.281 kB / 3.069 GB, free: 383.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001071/5.469, allocations: 0.6003 MB / 3.069 GB, free: 383.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002071/5.471, allocations: 275.5 kB / 3.069 GB, free: 383.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005751/5.477, allocations: 1.753 MB / 3.071 GB, free: 383.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001632/5.479, allocations: 1.22 MB / 3.072 GB, free: 382.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003069/5.482, allocations: 0.5976 MB / 3.073 GB, free: 382.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/5.482, allocations: 92.67 kB / 3.073 GB, free: 382.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.552e-06/5.482, allocations: 0 / 3.073 GB, free: 382.5 MB / 1.151 GB Notification: Performance of Templates: time 0.03967/5.522, allocations: 17.42 MB / 3.09 GB, free: 381.4 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches