Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.conf.json 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) 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 182.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03695/0.03695, allocations: 8.794 MB / 25.52 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 251.3 MB, free: 7.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009117/0.0009117, allocations: 94.64 kB / 303.6 MB, free: 14.55 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.91 kB / 366 MB, free: 208 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1826, allocations: 51.55 MB / 417.5 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.01734/0.2, allocations: 25.03 MB / 442.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.2129, allocations: 7.877 MB / 450.4 MB, free: 3.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003241/0.2162, allocations: 167.5 kB / 450.6 MB, free: 3.746 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01389/0.2301, allocations: 7.221 MB / 457.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007751/0.2379, allocations: 2.791 MB / 460.6 MB, free: 9.711 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004163/0.242, allocations: 1.903 MB / 462.5 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.2523, allocations: 9.5 MB / 472 MB, free: 14.29 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01759/0.27, allocations: 14.37 MB / 486.4 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004942/0.2749, allocations: 4.089 MB / 490.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005593/0.2806, allocations: 4.99 MB / 495.5 MB, free: 6.668 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001458/0.282, allocations: 0.8516 MB / 496.3 MB, free: 5.816 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/0.2846, allocations: 1.222 MB / 497.5 MB, free: 4.594 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001818/0.2864, allocations: 2.169 MB / 499.7 MB, free: 2.418 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1863/0.4727, allocations: 4.566 MB / 0.4925 GB, free: 23 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.4908, allocations: 17.71 MB / 0.5098 GB, free: 20.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4909, allocations: 0 / 0.5098 GB, free: 20.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4909, allocations: 0.75 kB / 0.5098 GB, free: 20.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004025/0.4913, allocations: 0 / 0.5098 GB, free: 20.09 MB / 362.7 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.03222/0.5235, allocations: 10.81 MB / 0.5203 GB, free: 15.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5236, allocations: 9.375 kB / 0.5203 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/0.5537, allocations: 5.635 MB / 0.5258 GB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01186/0.5656, allocations: 5.661 MB / 0.5313 GB, free: 8.957 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.566, allocations: 0.5799 MB / 0.5319 GB, free: 8.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002169/0.5681, allocations: 0.771 MB / 0.5327 GB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02735/0.5955, allocations: 12.76 MB / 0.5451 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003015/0.5958, allocations: 7.906 kB / 0.5451 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002015/0.5979, allocations: 329.6 kB / 0.5455 GB, free: 12.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005324/0.5984, allocations: 0.489 MB / 0.5459 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02538/0.6238, allocations: 12.25 MB / 0.5579 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07562/0.6995, allocations: 43.7 MB / 0.6006 GB, free: 3.781 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0232/0.7227, allocations: 25.18 MB / 0.6252 GB, free: 7.734 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004777/0.7275, allocations: 2.968 MB / 0.6281 GB, free: 4.758 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004964/0.728, allocations: 241.9 kB / 0.6283 GB, free: 4.496 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004005/0.7321, allocations: 2.586 MB / 0.6308 GB, free: 1.848 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 8.476e-06/0.7321, allocations: 3.984 kB / 0.6308 GB, free: 1.844 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.03591/0.768, allocations: 18.1 MB / 0.6485 GB, free: 15.63 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.7682, allocations: 359 kB / 0.6488 GB, free: 15.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004784/0.773, allocations: 3.518 MB / 0.6523 GB, free: 11.69 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003975/0.7734, allocations: 93.7 kB / 0.6524 GB, free: 11.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/0.7753, allocations: 3.375 MB / 0.6557 GB, free: 8.195 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/0.7763, allocations: 1.343 MB / 0.657 GB, free: 6.863 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001485/0.7778, allocations: 1.084 MB / 0.658 GB, free: 5.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.537e-05/0.7779, allocations: 305.1 kB / 0.6583 GB, free: 5.469 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/0.7813, allocations: 2.552 MB / 0.6608 GB, free: 2.914 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1895/0.9709, allocations: 4.51 MB / 0.6652 GB, free: 168.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00897/0.9799, allocations: 7.449 MB / 0.6725 GB, free: 166.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.8e-05/0.98, allocations: 21.38 kB / 0.6725 GB, free: 166.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01214/0.9921, allocations: 8.278 MB / 0.6806 GB, free: 163 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.665e-05/0.9922, allocations: 59.97 kB / 0.6807 GB, free: 162.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-05/0.9923, allocations: 58.47 kB / 0.6807 GB, free: 162.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/0.9947, allocations: 0.9947 MB / 0.6817 GB, free: 162.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00375/0.9985, allocations: 1.26 MB / 0.6829 GB, free: 162.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009745/1.008, allocations: 8.232 MB / 0.691 GB, free: 158.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004232/1.013, allocations: 360.4 kB / 0.6913 GB, free: 158 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005713/1.013, allocations: 269.8 kB / 0.6916 GB, free: 158 MB / 490.7 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.004237/1.017, allocations: 2.906 MB / 0.6944 GB, free: 156.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007029/1.018, allocations: 390 kB / 0.6948 GB, free: 156.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008667/1.027, allocations: 6.179 MB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.032e-05/1.027, allocations: 44 kB / 0.7008 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/1.027, allocations: 8 kB / 0.7009 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.984e-05/1.027, allocations: 23.62 kB / 0.7009 GB, free: 152.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/1.046, allocations: 14.91 MB / 0.7154 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/1.046, allocations: 7 kB / 0.7154 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.048, allocations: 0.6866 MB / 0.7161 GB, free: 139.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/1.05, allocations: 0.876 MB / 0.717 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/1.05, allocations: 87.98 kB / 0.7171 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008067/1.058, allocations: 7.189 MB / 0.7241 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/1.058, allocations: 8.031 kB / 0.7241 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03916/1.097, allocations: 30.05 MB / 0.7534 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/1.099, allocations: 0.9101 MB / 0.7543 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004251/1.1, allocations: 79.94 kB / 0.7544 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/1.101, allocations: 195.8 kB / 0.7546 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005038/1.102, allocations: 271.2 kB / 0.7548 GB, free: 99.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/1.102, allocations: 120 kB / 0.755 GB, free: 99.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002622/1.105, allocations: 2.363 MB / 0.7573 GB, free: 97.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.105, allocations: 0 / 0.7573 GB, free: 97.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004728/1.11, allocations: 1.76 MB / 0.759 GB, free: 95.57 MB / 490.7 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.0004062/1.11, allocations: 250.3 kB / 0.7592 GB, free: 95.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007639/1.118, allocations: 6.462 MB / 0.7655 GB, free: 88.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.118, allocations: 2.625 kB / 0.7655 GB, free: 88.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003734/1.121, allocations: 3.078 MB / 0.7685 GB, free: 85.74 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/1.125, allocations: 0.7782 MB / 0.7693 GB, free: 84.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/1.147, allocations: 20.08 MB / 0.7889 GB, free: 64.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00392/1.151, allocations: 5.134 MB / 0.7939 GB, free: 59.59 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004244/1.155, allocations: 1.59 MB / 0.7955 GB, free: 57.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008848/1.156, allocations: 335.4 kB / 0.7958 GB, free: 57.66 MB / 490.7 MB Notification: Performance of SimCode: time 7.01e-07/1.156, allocations: 0 / 0.7958 GB, free: 57.66 MB / 490.7 MB Notification: Performance of Templates: time 0.2655/1.422, allocations: 66.73 MB / 0.861 GB, free: 145.8 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)