Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001228/0.001228, allocations: 108.8 kB / 16.41 MB, free: 6.516 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.001258/0.001259, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.434/1.434, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002265/0.002265, allocations: 292.4 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9947/0.9947, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 103.8 kB / 0.6821 GB, free: 6.945 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4964/0.4983, allocations: 86.97 MB / 0.7671 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.01027/0.5086, allocations: 7.287 MB / 0.7742 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.1855/0.6941, allocations: 152.3 MB / 0.9229 GB, free: 3.746 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.6957, allocations: 27.88 kB / 0.9229 GB, free: 3.719 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.6982, allocations: 0.7288 MB / 0.9236 GB, free: 2.988 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.003043/0.7012, allocations: 0.8505 MB / 0.9244 GB, free: 2.137 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.7044, allocations: 1.098 MB / 0.9255 GB, free: 1.047 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.002646/0.707, allocations: 1.839 MB / 0.9273 GB, free: 15.2 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00245/0.7095, allocations: 1.376 MB / 0.9286 GB, free: 13.79 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/0.711, allocations: 0.6812 MB / 0.9293 GB, free: 13.11 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.7131, allocations: 0.782 MB / 0.9301 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0006609/0.7137, allocations: 152 kB / 0.9302 GB, free: 12.17 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.7157, allocations: 0.7256 MB / 0.9309 GB, free: 11.44 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0007721/0.7165, allocations: 470.5 kB / 0.9314 GB, free: 10.98 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001395/0.7179, allocations: 0.7499 MB / 0.9321 GB, free: 10.23 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003929/0.7219, allocations: 2.29 MB / 0.9343 GB, free: 7.93 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.7219, allocations: 3.938 kB / 0.9343 GB, free: 7.926 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7219, allocations: 4 kB / 0.9343 GB, free: 7.922 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 8.593e-05/0.722, allocations: 0 / 0.9343 GB, free: 7.922 MB / 0.7012 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.004917/0.7269, allocations: 1.861 MB / 0.9362 GB, free: 6.004 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.727, allocations: 8.031 kB / 0.9362 GB, free: 5.996 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.7287, allocations: 286.8 kB / 0.9364 GB, free: 5.715 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002183/0.7309, allocations: 1.027 MB / 0.9374 GB, free: 4.641 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.962e-05/0.731, allocations: 82.23 kB / 0.9375 GB, free: 4.559 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00026/0.7313, allocations: 120 kB / 0.9376 GB, free: 4.441 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002791/0.7341, allocations: 1.382 MB / 0.939 GB, free: 2.969 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.7341, allocations: 4 kB / 0.939 GB, free: 2.965 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.7342, allocations: 48 kB / 0.939 GB, free: 2.918 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.7344, allocations: 70.05 kB / 0.9391 GB, free: 2.848 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002692/0.7371, allocations: 1.514 MB / 0.9406 GB, free: 1.324 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007648/0.7447, allocations: 4.818 MB / 0.9453 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.7468, allocations: 1.09 MB / 0.9464 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008046/0.7477, allocations: 463.3 kB / 0.9468 GB, free: 10.7 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.7479, allocations: 122 kB / 0.9469 GB, free: 10.56 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.7491, allocations: 0.6546 MB / 0.9476 GB, free: 9.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=103): time 4.008e-06/0.7491, allocations: 0 / 0.9476 GB, free: 9.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=104): time 0.005659/0.7548, allocations: 2.255 MB / 0.9498 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.755, allocations: 248.3 kB / 0.95 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.7566, allocations: 0.9573 MB / 0.9509 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.703e-05/0.7567, allocations: 41.7 kB / 0.951 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000588/0.7573, allocations: 0.5624 MB / 0.9515 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/0.7577, allocations: 347 kB / 0.9518 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/0.758, allocations: 222.7 kB / 0.9521 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.7582, allocations: 345.9 kB / 0.9524 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000786/0.759, allocations: 409.9 kB / 0.9528 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009421/0.7599, allocations: 0.5825 MB / 0.9533 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/0.7616, allocations: 0.9743 MB / 0.9543 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.7616, allocations: 0 / 0.9543 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.003032/0.7647, allocations: 1.352 MB / 0.9556 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.7647, allocations: 7.938 kB / 0.9556 GB, free: 1.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.7647, allocations: 4 kB / 0.9556 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.766, allocations: 260.7 kB / 0.9559 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009747/0.767, allocations: 231.6 kB / 0.9561 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4938/1.261, allocations: 2.12 MB / 0.9582 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00151/1.262, allocations: 111.7 kB / 0.9583 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001775/1.263, allocations: 47.14 kB / 0.9583 GB, free: 186.2 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001769/1.264, allocations: 0.6589 MB / 0.959 GB, free: 186.1 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001197/1.266, allocations: 0.568 MB / 0.9595 GB, free: 185.8 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001807/1.267, allocations: 0.9393 MB / 0.9604 GB, free: 185.4 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.989e-06/1.267, allocations: 1.094 kB / 0.9604 GB, free: 185.4 MB / 0.7169 GB Notification: Performance of matching and sorting (n=131) (initialization_lambda0): time 0.002272/1.27, allocations: 1.137 MB / 0.9615 GB, free: 185 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/1.27, allocations: 7.344 kB / 0.9616 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.27, allocations: 4.906 kB / 0.9616 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/1.27, allocations: 8.531 kB / 0.9616 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/1.271, allocations: 238.2 kB / 0.9618 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/1.271, allocations: 11.33 kB / 0.9618 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/1.272, allocations: 117.3 kB / 0.9619 GB, free: 185 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.396e-05/1.272, allocations: 47.91 kB / 0.962 GB, free: 185 MB / 0.7169 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.000391/1.272, allocations: 255.1 kB / 0.9622 GB, free: 184.7 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/1.273, allocations: 118.8 kB / 0.9623 GB, free: 184.7 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/1.276, allocations: 1.473 MB / 0.9638 GB, free: 184.2 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/1.276, allocations: 9.375 kB / 0.9638 GB, free: 184.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/1.276, allocations: 4.438 kB / 0.9638 GB, free: 184.2 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005734/1.276, allocations: 332.3 kB / 0.9641 GB, free: 184 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.277, allocations: 22.75 kB / 0.9641 GB, free: 184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008126/1.277, allocations: 97.41 kB / 0.9642 GB, free: 184 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/1.278, allocations: 83.78 kB / 0.9643 GB, free: 184 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002583/1.28, allocations: 1.39 MB / 0.9656 GB, free: 183.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002914/1.283, allocations: 1.913 MB / 0.9675 GB, free: 182.5 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007094/1.284, allocations: 0.4924 MB / 0.968 GB, free: 182.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0009034/1.285, allocations: 0.6711 MB / 0.9686 GB, free: 182.1 MB / 0.7169 GB Notification: Performance of Backend: time 1.583e-06/1.285, allocations: 0 / 0.9686 GB, free: 182.1 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.005544/1.29, allocations: 2.3 MB / 0.9709 GB, free: 181.3 MB / 0.7169 GB Notification: Performance of SimCode: time 0.003841/1.294, allocations: 2.732 MB / 0.9736 GB, free: 179.7 MB / 0.7169 GB Notification: Performance of Templates: time 0.03539/1.33, allocations: 27.12 MB / 1 GB, free: 153.4 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)