Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009708/0.0009708, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.216/1.216, allocations: 222.9 MB / 238.8 MB, free: 4.676 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 204.3 kB / 289.1 MB, free: 2.414 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03163/0.03163, allocations: 8.79 MB / 348.1 MB, free: 4.883 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 72.03 kB / 410.4 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07864/0.07994, allocations: 51.57 MB / 462 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02186/0.1018, allocations: 25.02 MB / 487 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.116, allocations: 7.867 MB / 494.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006099/0.1221, allocations: 163.5 kB / 495 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01529/0.1374, allocations: 7.226 MB / 0.4905 GB, free: 6.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008927/0.1464, allocations: 2.801 MB / 0.4932 GB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005762/0.1522, allocations: 1.888 MB / 0.495 GB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01182/0.164, allocations: 9.377 MB / 0.5042 GB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02352/0.1876, allocations: 14.38 MB / 0.5182 GB, free: 9.836 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006697/0.1943, allocations: 4.069 MB / 0.5222 GB, free: 5.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008863/0.2032, allocations: 4.986 MB / 0.5271 GB, free: 0.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1798/0.383, allocations: 0.8546 MB / 0.5279 GB, free: 23.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00538/0.3884, allocations: 1.219 MB / 0.5291 GB, free: 23.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00295/0.3914, allocations: 2.155 MB / 0.5312 GB, free: 23.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008504/0.3999, allocations: 4.573 MB / 0.5357 GB, free: 22.97 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.4169, allocations: 17.72 MB / 0.553 GB, free: 19.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4169, allocations: 0 / 0.553 GB, free: 19.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4169, allocations: 0 / 0.553 GB, free: 19.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004646/0.4174, allocations: 0 / 0.553 GB, free: 19.2 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03115/0.4485, allocations: 10.8 MB / 0.5635 GB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4486, allocations: 8.219 kB / 0.5635 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02774/0.4763, allocations: 5.633 MB / 0.569 GB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/0.4866, allocations: 5.665 MB / 0.5746 GB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.4869, allocations: 0.5854 MB / 0.5751 GB, free: 9.305 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002041/0.489, allocations: 0.7646 MB / 0.5759 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/0.5116, allocations: 12.76 MB / 0.5884 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002917/0.5119, allocations: 11.91 kB / 0.5884 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002487/0.5144, allocations: 329.9 kB / 0.5887 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005112/0.5149, allocations: 0.4929 MB / 0.5892 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02584/0.5408, allocations: 12.24 MB / 0.6011 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07451/0.6153, allocations: 43.71 MB / 0.6438 GB, free: 6.109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02405/0.6394, allocations: 25.18 MB / 0.6684 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005296/0.6448, allocations: 2.966 MB / 0.6713 GB, free: 7.086 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005311/0.6453, allocations: 247.1 kB / 0.6715 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00482/0.6502, allocations: 2.586 MB / 0.674 GB, free: 4.168 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 7.464e-06/0.6502, allocations: 0 / 0.674 GB, free: 4.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04234/0.6926, allocations: 18.11 MB / 0.6917 GB, free: 1.961 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000179/0.6928, allocations: 355.5 kB / 0.6921 GB, free: 1.539 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006236/0.699, allocations: 3.522 MB / 0.6955 GB, free: 14.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005165/0.6996, allocations: 89.7 kB / 0.6956 GB, free: 13.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00192/0.7015, allocations: 3.37 MB / 0.6989 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.7027, allocations: 1.347 MB / 0.7002 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/0.7043, allocations: 1.081 MB / 0.7013 GB, free: 8.105 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.875e-05/0.7043, allocations: 305.1 kB / 0.7015 GB, free: 7.805 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003572/0.7079, allocations: 2.552 MB / 0.704 GB, free: 5.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1811/0.8891, allocations: 4.506 MB / 0.7084 GB, free: 166.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008999/0.8981, allocations: 7.449 MB / 0.7157 GB, free: 163.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.556e-05/0.8982, allocations: 30.53 kB / 0.7157 GB, free: 163.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.013/0.9112, allocations: 8.273 MB / 0.7238 GB, free: 163.2 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.943e-05/0.9113, allocations: 56.67 kB / 0.7239 GB, free: 163.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.823e-05/0.9114, allocations: 59 kB / 0.7239 GB, free: 163.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/0.9138, allocations: 1.003 MB / 0.7249 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003735/0.9176, allocations: 1.259 MB / 0.7261 GB, free: 163 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009624/0.9272, allocations: 8.234 MB / 0.7342 GB, free: 159.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004019/0.9312, allocations: 356.6 kB / 0.7345 GB, free: 159 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005892/0.9318, allocations: 267.7 kB / 0.7348 GB, free: 159 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005037/0.9369, allocations: 2.907 MB / 0.7376 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001249/0.9381, allocations: 391.9 kB / 0.738 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009185/0.9473, allocations: 6.176 MB / 0.744 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/0.9474, allocations: 43.28 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.596e-05/0.9474, allocations: 11.12 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-05/0.9474, allocations: 19.17 kB / 0.7441 GB, free: 154.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02023/0.9677, allocations: 14.92 MB / 0.7587 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.9677, allocations: 8.297 kB / 0.7587 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002378/0.9701, allocations: 0.6826 MB / 0.7593 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/0.9723, allocations: 0.8736 MB / 0.7602 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002595/0.9726, allocations: 87.22 kB / 0.7603 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008255/0.9809, allocations: 7.192 MB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.9809, allocations: 8.031 kB / 0.7673 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/0.9919, allocations: 8.769 MB / 0.7759 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002003/0.9939, allocations: 0.914 MB / 0.7768 GB, free: 125.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005906/0.9945, allocations: 72 kB / 0.7768 GB, free: 125.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001863/0.9964, allocations: 199.2 kB / 0.777 GB, free: 125.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005739/0.997, allocations: 279.1 kB / 0.7773 GB, free: 125.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/0.9972, allocations: 118.9 kB / 0.7774 GB, free: 125.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003346/1.001, allocations: 2.359 MB / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.001, allocations: 0 / 0.7797 GB, free: 122.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005887/1.006, allocations: 1.453 MB / 0.7811 GB, free: 121.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000586/1.007, allocations: 253.8 kB / 0.7814 GB, free: 121.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008901/1.016, allocations: 6.471 MB / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.016, allocations: 0 / 0.7877 GB, free: 114.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004187/1.02, allocations: 3.071 MB / 0.7907 GB, free: 111.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/1.024, allocations: 0.7829 MB / 0.7914 GB, free: 110.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.045, allocations: 17.18 MB / 0.8082 GB, free: 93.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003818/1.048, allocations: 5.015 MB / 0.8131 GB, free: 88.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004315/1.053, allocations: 1.586 MB / 0.8147 GB, free: 86.85 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00098/1.054, allocations: 327.4 kB / 0.815 GB, free: 86.53 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/1.054, allocations: 0 / 0.815 GB, free: 86.53 MB / 494.1 MB Notification: Performance of Templates: time 0.07756/1.131, allocations: 59.7 MB / 0.8733 GB, free: 27.16 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)