Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008123/0.0008123, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.358/1.358, allocations: 223.3 MB / 239 MB, free: 5.445 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.001124/0.001124, allocations: 168.6 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03249/0.03249, allocations: 8.811 MB / 350.2 MB, free: 4.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 11.53 kB / 413.2 MB, free: 43.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0878/0.08825, allocations: 52.56 MB / 465.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02207/0.1104, allocations: 22.23 MB / 488 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0158/0.1262, allocations: 7.321 MB / 495.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0051/0.1313, allocations: 155.6 kB / 495.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005382/0.1367, allocations: 1.43 MB / 496.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009403/0.1462, allocations: 2.505 MB / 499.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004651/0.1509, allocations: 1.313 MB / 0.489 GB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01799/0.1689, allocations: 10.82 MB / 0.4995 GB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02543/0.1943, allocations: 13.8 MB / 0.513 GB, free: 1.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006643/0.201, allocations: 3.516 MB / 0.5164 GB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007327/0.2084, allocations: 3.977 MB / 0.5203 GB, free: 10.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.2102, allocations: 0.5195 MB / 0.5208 GB, free: 9.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003817/0.214, allocations: 0.8668 MB / 0.5217 GB, free: 8.836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001735/0.2158, allocations: 1.662 MB / 0.5233 GB, free: 7.168 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002923/0.2187, allocations: 1.705 MB / 0.525 GB, free: 5.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2606/0.4793, allocations: 15.32 MB / 0.5399 GB, free: 21.83 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.4794, allocations: 0 / 0.5399 GB, free: 21.83 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.247e-06/0.4794, allocations: 3.812 kB / 0.5399 GB, free: 21.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000683/0.4801, allocations: 0 / 0.5399 GB, free: 21.83 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.03383/0.514, allocations: 9.131 MB / 0.5488 GB, free: 17.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.514, allocations: 9.094 kB / 0.5489 GB, free: 17.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03259/0.5466, allocations: 5.659 MB / 0.5544 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01365/0.5603, allocations: 5.598 MB / 0.5598 GB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006628/0.561, allocations: 0.5849 MB / 0.5604 GB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003467/0.5645, allocations: 0.7693 MB / 0.5612 GB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0342/0.5987, allocations: 12.71 MB / 0.5736 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003665/0.5991, allocations: 17.09 kB / 0.5736 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002973/0.6021, allocations: 328.2 kB / 0.5739 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005413/0.6026, allocations: 498.5 kB / 0.5744 GB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02934/0.632, allocations: 12.2 MB / 0.5863 GB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08467/0.7167, allocations: 43.82 MB / 0.6291 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02478/0.7415, allocations: 25.13 MB / 0.6536 GB, free: 15.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006992/0.7486, allocations: 2.964 MB / 0.6565 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006778/0.7493, allocations: 250.6 kB / 0.6568 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005488/0.7548, allocations: 2.577 MB / 0.6593 GB, free: 9.238 MB / 446.1 MB Notification: Performance of pre-optimization done (n=391): time 8.897e-06/0.7549, allocations: 0 / 0.6593 GB, free: 9.238 MB / 446.1 MB Notification: Performance of matching and sorting (n=397): time 0.0538/0.8087, allocations: 19.67 MB / 0.6785 GB, free: 5.465 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002174/0.8089, allocations: 359.5 kB / 0.6788 GB, free: 5.039 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006631/0.8156, allocations: 3.491 MB / 0.6822 GB, free: 1.543 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006927/0.8163, allocations: 89.7 kB / 0.6823 GB, free: 1.449 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002441/0.8188, allocations: 3.38 MB / 0.6856 GB, free: 14.05 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001719/0.8205, allocations: 1.348 MB / 0.687 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007049/0.8212, allocations: 116 kB / 0.6871 GB, free: 12.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004548/0.8217, allocations: 0.5258 MB / 0.6876 GB, free: 12.07 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004638/0.8263, allocations: 2.533 MB / 0.69 GB, free: 9.531 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006106/0.8324, allocations: 4.496 MB / 0.6944 GB, free: 4.184 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006071/0.8385, allocations: 3.539 MB / 0.6979 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.128e-05/0.8386, allocations: 19.95 kB / 0.6979 GB, free: 0.668 MB / 478.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01705/0.8557, allocations: 8.236 MB / 0.706 GB, free: 8.793 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.8558, allocations: 57.7 kB / 0.706 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/0.8559, allocations: 60 kB / 0.7061 GB, free: 8.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002764/0.8587, allocations: 1.002 MB / 0.707 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004675/0.8634, allocations: 1.264 MB / 0.7083 GB, free: 6.492 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2584/1.122, allocations: 8.216 MB / 0.7163 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005115/1.127, allocations: 362 kB / 0.7167 GB, free: 167.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.128, allocations: 260.9 kB / 0.7169 GB, free: 167.6 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 (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: 1 {(10,53.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007266/1.136, allocations: 2.898 MB / 0.7197 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.137, allocations: 389.4 kB / 0.7201 GB, free: 167.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/1.149, allocations: 6.181 MB / 0.7261 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-05/1.149, allocations: 41.06 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.992e-05/1.149, allocations: 10.16 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-05/1.149, allocations: 24.33 kB / 0.7262 GB, free: 166.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02309/1.172, allocations: 14.91 MB / 0.7408 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/1.172, allocations: 7.688 kB / 0.7408 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002571/1.175, allocations: 0.6805 MB / 0.7414 GB, free: 160.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/1.177, allocations: 0.8778 MB / 0.7423 GB, free: 159.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004113/1.177, allocations: 91.23 kB / 0.7424 GB, free: 159.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008803/1.186, allocations: 7.184 MB / 0.7494 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.896e-06/1.186, allocations: 9.531 kB / 0.7494 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01318/1.199, allocations: 8.745 MB / 0.7579 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002462/1.202, allocations: 0.9356 MB / 0.7589 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008404/1.203, allocations: 79.33 kB / 0.7589 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00215/1.205, allocations: 200 kB / 0.7591 GB, free: 150.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006338/1.206, allocations: 271.7 kB / 0.7594 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/1.206, allocations: 115.5 kB / 0.7595 GB, free: 149.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003965/1.21, allocations: 2.337 MB / 0.7618 GB, free: 147.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.51e-07/1.21, allocations: 0 / 0.7618 GB, free: 147.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007628/1.218, allocations: 1.457 MB / 0.7632 GB, free: 146.4 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 (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: 1 {(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008328/1.218, allocations: 247.9 kB / 0.7634 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01034/1.229, allocations: 6.436 MB / 0.7697 GB, free: 139.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.229, allocations: 0 / 0.7697 GB, free: 139.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005144/1.234, allocations: 3.088 MB / 0.7727 GB, free: 136.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/1.238, allocations: 0.7837 MB / 0.7735 GB, free: 136.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.263, allocations: 16.5 MB / 0.7896 GB, free: 119.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005056/1.268, allocations: 5.008 MB / 0.7945 GB, free: 114.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004976/1.273, allocations: 1.59 MB / 0.7961 GB, free: 112.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/1.275, allocations: 331.4 kB / 0.7964 GB, free: 112.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.273e-06/1.275, allocations: 0 / 0.7964 GB, free: 112.5 MB / 494.1 MB Notification: Performance of Templates: time 0.09035/1.365, allocations: 57.42 MB / 0.8525 GB, free: 55.42 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) Environment - environmentSimulation: