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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.294/2.294, allocations: 222.9 MB / 239.5 MB, free: 4.762 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.002402/0.002402, allocations: 188.5 kB / 289.8 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0525/0.0525, allocations: 8.798 MB / 348.7 MB, free: 4.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003072/0.003072, allocations: 80.16 kB / 411.1 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1544, allocations: 51.56 MB / 462.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.04692/0.2014, allocations: 25.02 MB / 487.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02715/0.2286, allocations: 7.871 MB / 495.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008142/0.2368, allocations: 167.5 kB / 495.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02705/0.2639, allocations: 7.227 MB / 0.4911 GB, free: 6.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01729/0.2812, allocations: 2.803 MB / 0.4939 GB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009873/0.2911, allocations: 1.891 MB / 0.4957 GB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02225/0.3134, allocations: 9.366 MB / 0.5048 GB, free: 8.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04202/0.3555, allocations: 14.38 MB / 0.5189 GB, free: 9.867 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01216/0.3677, allocations: 4.069 MB / 0.5229 GB, free: 5.785 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01361/0.3814, allocations: 4.99 MB / 0.5277 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3713/0.7528, allocations: 0.8527 MB / 0.5286 GB, free: 23.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01145/0.7643, allocations: 1.21 MB / 0.5298 GB, free: 23.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006845/0.7712, allocations: 2.166 MB / 0.5319 GB, free: 23.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01781/0.7891, allocations: 4.565 MB / 0.5363 GB, free: 23.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03031/0.8195, allocations: 15.76 MB / 0.5517 GB, free: 20.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.8196, allocations: 1.469 kB / 0.5517 GB, free: 20.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.8196, allocations: 0 / 0.5517 GB, free: 20.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007991/0.8204, allocations: 0.9688 kB / 0.5517 GB, free: 20.61 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.0711/0.8915, allocations: 10.81 MB / 0.5623 GB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.814e-05/0.8917, allocations: 8.812 kB / 0.5623 GB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06011/0.9518, allocations: 5.634 MB / 0.5678 GB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02335/0.9752, allocations: 5.667 MB / 0.5733 GB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/0.9764, allocations: 0.5821 MB / 0.5739 GB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006309/0.9827, allocations: 0.7654 MB / 0.5746 GB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05702/1.04, allocations: 12.76 MB / 0.5871 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004753/1.04, allocations: 11.91 kB / 0.5871 GB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004745/1.045, allocations: 328.3 kB / 0.5874 GB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007644/1.046, allocations: 0.4889 MB / 0.5879 GB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05036/1.096, allocations: 12.25 MB / 0.5999 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1407/1.237, allocations: 43.71 MB / 0.6425 GB, free: 8.234 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04432/1.281, allocations: 25.18 MB / 0.6671 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009486/1.291, allocations: 2.972 MB / 0.67 GB, free: 9.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008343/1.292, allocations: 246.7 kB / 0.6703 GB, free: 8.945 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008514/1.3, allocations: 2.582 MB / 0.6728 GB, free: 6.297 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.729e-05/1.3, allocations: 0 / 0.6728 GB, free: 6.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.08019/1.381, allocations: 18.11 MB / 0.6905 GB, free: 4.086 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002753/1.381, allocations: 355.5 kB / 0.6908 GB, free: 3.664 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/1.392, allocations: 3.522 MB / 0.6943 GB, free: 140 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.393, allocations: 85.7 kB / 0.6943 GB, free: 48 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004428/1.397, allocations: 3.373 MB / 0.6976 GB, free: 12.65 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003015/1.4, allocations: 1.352 MB / 0.6989 GB, free: 11.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004626/1.405, allocations: 1.081 MB / 0.7 GB, free: 10.22 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/1.405, allocations: 305.1 kB / 0.7003 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008255/1.414, allocations: 2.549 MB / 0.7028 GB, free: 7.367 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01189/1.426, allocations: 4.512 MB / 0.7072 GB, free: 2.004 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4068/1.832, allocations: 7.45 MB / 0.7145 GB, free: 165.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001273/1.833, allocations: 17.44 kB / 0.7145 GB, free: 165.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.03252/1.865, allocations: 8.276 MB / 0.7226 GB, free: 165.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/1.865, allocations: 57.39 kB / 0.7226 GB, free: 165.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/1.866, allocations: 63.28 kB / 0.7227 GB, free: 165.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005194/1.871, allocations: 0.9952 MB / 0.7237 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008872/1.88, allocations: 1.261 MB / 0.7249 GB, free: 165 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02184/1.902, allocations: 8.231 MB / 0.7329 GB, free: 161 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009518/1.911, allocations: 362 kB / 0.7333 GB, free: 160.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002403/1.914, allocations: 265.4 kB / 0.7335 GB, free: 160.8 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.01203/1.926, allocations: 2.905 MB / 0.7364 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00302/1.929, allocations: 383.1 kB / 0.7367 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02283/1.952, allocations: 6.18 MB / 0.7428 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.684e-05/1.952, allocations: 47.34 kB / 0.7428 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-05/1.952, allocations: 7.906 kB / 0.7428 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001562/1.952, allocations: 19.31 kB / 0.7428 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05348/2.006, allocations: 14.92 MB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.139e-05/2.006, allocations: 4 kB / 0.7574 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005505/2.011, allocations: 0.6821 MB / 0.7581 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004826/2.016, allocations: 0.8764 MB / 0.7589 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00116/2.017, allocations: 89.3 kB / 0.759 GB, free: 144.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/2.035, allocations: 7.196 MB / 0.766 GB, free: 138.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/2.035, allocations: 4 kB / 0.766 GB, free: 138.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02643/2.062, allocations: 8.771 MB / 0.7746 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004268/2.066, allocations: 0.9062 MB / 0.7755 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002439/2.069, allocations: 75.98 kB / 0.7756 GB, free: 128.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00547/2.074, allocations: 199.8 kB / 0.7758 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001749/2.076, allocations: 269.5 kB / 0.776 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001031/2.077, allocations: 119.9 kB / 0.7761 GB, free: 127.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008048/2.085, allocations: 2.363 MB / 0.7784 GB, free: 125.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.283e-06/2.085, allocations: 0 / 0.7784 GB, free: 125.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0137/2.099, allocations: 1.464 MB / 0.7799 GB, free: 123.8 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.001807/2.101, allocations: 246 kB / 0.7801 GB, free: 123.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02018/2.121, allocations: 6.458 MB / 0.7864 GB, free: 117.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.866e-05/2.121, allocations: 4.938 kB / 0.7864 GB, free: 117.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01009/2.131, allocations: 3.079 MB / 0.7894 GB, free: 113.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01149/2.143, allocations: 0.7775 MB / 0.7902 GB, free: 113.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05227/2.195, allocations: 16.98 MB / 0.8068 GB, free: 96.14 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0133/2.208, allocations: 4.857 MB / 0.8115 GB, free: 91.24 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00332/2.212, allocations: 371.3 kB / 0.8119 GB, free: 90.88 MB / 494.1 MB Notification: Performance of SimCode: time 1.593e-06/2.212, allocations: 4 kB / 0.8119 GB, free: 90.88 MB / 494.1 MB Notification: Performance of Templates: time 0.6175/2.829, allocations: 131.6 MB / 0.9404 GB, free: 122.2 MB / 494.1 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)