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.411/2.411, allocations: 390.3 MB / 402.8 MB, free: 6.746 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.001064/0.001064, allocations: 180.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.633/1.633, allocations: 221.3 MB / 0.7915 GB, free: 5.414 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.001076/0.001076, allocations: 91.95 kB / 0.9318 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.462e-05/4.476e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3653, allocations: 143 MB / 1.219 GB, free: 13.53 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.546/4.911, allocations: 1.763 GB / 2.981 GB, free: 50.71 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/4.912, allocations: 108.4 kB / 2.982 GB, free: 50.61 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.9096/5.821, allocations: 64.75 MB / 3.045 GB, free: 405.2 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.733e-06/5.821, allocations: 0 / 3.045 GB, free: 405.2 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002177/5.822, allocations: 35.8 kB / 3.045 GB, free: 405.2 MB / 1.167 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.00456/5.826, allocations: 1.413 MB / 3.046 GB, free: 404.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/5.826, allocations: 9.656 kB / 3.046 GB, free: 404.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002398/5.829, allocations: 306.5 kB / 3.046 GB, free: 404.3 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/5.831, allocations: 0.8346 MB / 3.047 GB, free: 404 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/5.831, allocations: 80.48 kB / 3.047 GB, free: 404 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003572/5.832, allocations: 105.7 kB / 3.047 GB, free: 404 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003327/5.835, allocations: 1.273 MB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.212e-05/5.835, allocations: 1.156 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001589/5.835, allocations: 45.39 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/5.835, allocations: 64.09 kB / 3.049 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00335/5.839, allocations: 1.417 MB / 3.05 GB, free: 403.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009265/5.848, allocations: 4.747 MB / 3.055 GB, free: 401.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/5.85, allocations: 0.9846 MB / 3.056 GB, free: 401.4 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007514/5.851, allocations: 409.6 kB / 3.056 GB, free: 401.4 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002535/5.851, allocations: 118.7 kB / 3.056 GB, free: 401.3 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/5.852, allocations: 0.5479 MB / 3.057 GB, free: 401.2 MB / 1.167 GB Notification: Performance of pre-optimization done (n=94): time 7.895e-06/5.852, allocations: 4 kB / 3.057 GB, free: 401.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=95): time 0.003629/5.856, allocations: 1.428 MB / 3.058 GB, free: 400.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/5.856, allocations: 308.4 kB / 3.059 GB, free: 400.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001666/5.858, allocations: 0.887 MB / 3.059 GB, free: 400.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001022/5.858, allocations: 44.53 kB / 3.059 GB, free: 400.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005193/5.858, allocations: 0.5441 MB / 3.06 GB, free: 400 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002786/5.859, allocations: 311.6 kB / 3.06 GB, free: 399.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/5.859, allocations: 19.94 kB / 3.06 GB, free: 399.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001048/5.859, allocations: 338.9 kB / 3.061 GB, free: 399.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006386/5.86, allocations: 328.2 kB / 3.061 GB, free: 399.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008205/5.86, allocations: 0.5153 MB / 3.061 GB, free: 399.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007728/5.861, allocations: 411.3 kB / 3.062 GB, free: 399.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/5.861, allocations: 1 kB / 3.062 GB, free: 399.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002625/5.864, allocations: 1.138 MB / 3.063 GB, free: 399 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002948/5.864, allocations: 1.148 MB / 3.064 GB, free: 397.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/5.864, allocations: 4.031 kB / 3.064 GB, free: 397.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009903/5.865, allocations: 211.2 kB / 3.064 GB, free: 397.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008896/5.866, allocations: 207 kB / 3.064 GB, free: 397.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005751/5.867, allocations: 0.6496 MB / 3.065 GB, free: 397.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/5.868, allocations: 102.8 kB / 3.065 GB, free: 397.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.179e-05/5.868, allocations: 38.34 kB / 3.065 GB, free: 397.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/5.868, allocations: 3.156 kB / 3.065 GB, free: 397.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001533/5.869, allocations: 0.8352 MB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/5.869, allocations: 3.531 kB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/5.869, allocations: 6.812 kB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008384/5.87, allocations: 210.5 kB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/5.87, allocations: 11.12 kB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009204/5.871, allocations: 103.1 kB / 3.066 GB, free: 396.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/5.871, allocations: 37.36 kB / 3.066 GB, free: 396.8 MB / 1.167 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.0002882/5.872, allocations: 160.3 kB / 3.067 GB, free: 396.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002535/5.872, allocations: 118 kB / 3.067 GB, free: 396.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/5.875, allocations: 1.35 MB / 3.068 GB, free: 396.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/5.875, allocations: 11.53 kB / 3.068 GB, free: 396.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/5.875, allocations: 0 / 3.068 GB, free: 396.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/5.875, allocations: 8.344 kB / 3.068 GB, free: 396.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004563/5.879, allocations: 2.685 MB / 3.071 GB, free: 395 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/5.879, allocations: 2.062 kB / 3.071 GB, free: 395 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008069/5.88, allocations: 198.8 kB / 3.071 GB, free: 395 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007923/5.881, allocations: 211 kB / 3.071 GB, free: 394.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/5.881, allocations: 28.3 kB / 3.071 GB, free: 394.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/5.883, allocations: 1.825 MB / 3.073 GB, free: 393.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/5.883, allocations: 1.688 kB / 3.073 GB, free: 393.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002543/5.886, allocations: 1.445 MB / 3.074 GB, free: 392.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007414/5.886, allocations: 371 kB / 3.075 GB, free: 392.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001626/5.886, allocations: 20.16 kB / 3.075 GB, free: 392.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008095/5.887, allocations: 99.08 kB / 3.075 GB, free: 392.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001799/5.887, allocations: 73.83 kB / 3.075 GB, free: 392.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.321e-05/5.888, allocations: 36.45 kB / 3.075 GB, free: 392.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001208/5.889, allocations: 0.6967 MB / 3.075 GB, free: 392.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.623e-06/5.889, allocations: 1.469 kB / 3.075 GB, free: 392.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002072/5.891, allocations: 0.5273 MB / 3.076 GB, free: 392 MB / 1.167 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.001611/5.892, allocations: 0.6324 MB / 3.077 GB, free: 391.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002913/5.895, allocations: 1.387 MB / 3.078 GB, free: 391.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/5.895, allocations: 1.438 kB / 3.078 GB, free: 391.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001104/5.897, allocations: 0.63 MB / 3.079 GB, free: 391.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/5.898, allocations: 306.8 kB / 3.079 GB, free: 391 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003868/5.902, allocations: 1.822 MB / 3.081 GB, free: 390.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000803/5.903, allocations: 1.215 MB / 3.082 GB, free: 389.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002224/5.905, allocations: 0.6033 MB / 3.082 GB, free: 389.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000271/5.905, allocations: 93.53 kB / 3.083 GB, free: 389.3 MB / 1.167 GB Notification: Performance of SimCode: time 8.41e-07/5.905, allocations: 0 / 3.083 GB, free: 389.3 MB / 1.167 GB Notification: Performance of Templates: time 0.03321/5.939, allocations: 18.72 MB / 3.101 GB, free: 388.1 MB / 1.167 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