Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009789/0.0009789, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.412/1.412, allocations: 223.3 MB / 239.4 MB, free: 5.398 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.001152/0.001152, allocations: 180.5 kB / 290.6 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03459/0.03458, allocations: 8.797 MB / 350.5 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003774, allocations: 11.72 kB / 413.8 MB, free: 42.8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.08975, allocations: 52.56 MB / 466.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.0226/0.1124, allocations: 23.93 MB / 490.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01404/0.1265, allocations: 7.789 MB / 498.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004364/0.1309, allocations: 159.5 kB / 498.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005427/0.1363, allocations: 1.816 MB / 0.4883 GB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008998/0.1454, allocations: 2.772 MB / 0.4911 GB, free: 8.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005479/0.1508, allocations: 1.695 MB / 0.4927 GB, free: 6.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0129/0.1638, allocations: 9.358 MB / 0.5018 GB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02988/0.1937, allocations: 17.63 MB / 0.5191 GB, free: 11.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005409/0.1991, allocations: 3.398 MB / 0.5224 GB, free: 8.234 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006235/0.2054, allocations: 4.108 MB / 0.5264 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002108/0.2075, allocations: 0.5195 MB / 0.5269 GB, free: 3.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.2112, allocations: 0.8902 MB / 0.5278 GB, free: 2.699 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002987/0.2143, allocations: 1.689 MB / 0.5294 GB, free: 1.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2175/0.4318, allocations: 4.031 MB / 0.5334 GB, free: 21.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02144/0.4533, allocations: 17.05 MB / 0.55 GB, free: 17.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.4534, allocations: 4.156 kB / 0.55 GB, free: 17.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4534, allocations: 0 / 0.55 GB, free: 17.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006112/0.454, allocations: 0 / 0.55 GB, free: 17.23 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.0296/0.4836, allocations: 9.051 MB / 0.5588 GB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.4837, allocations: 9.688 kB / 0.5589 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03281/0.5165, allocations: 5.66 MB / 0.5644 GB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01407/0.5306, allocations: 5.678 MB / 0.5699 GB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006705/0.5313, allocations: 0.5792 MB / 0.5705 GB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004002/0.5353, allocations: 0.7685 MB / 0.5712 GB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03543/0.5708, allocations: 12.77 MB / 0.5837 GB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004463/0.5713, allocations: 15.25 kB / 0.5837 GB, free: 5.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003389/0.5747, allocations: 324.7 kB / 0.584 GB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005538/0.5752, allocations: 0.4925 MB / 0.5845 GB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03026/0.6055, allocations: 12.26 MB / 0.5965 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0853/0.6909, allocations: 43.85 MB / 0.6393 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02522/0.7161, allocations: 25.15 MB / 0.6639 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006314/0.7225, allocations: 2.99 MB / 0.6668 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006485/0.7232, allocations: 240.8 kB / 0.667 GB, free: 13.35 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005362/0.7286, allocations: 2.586 MB / 0.6695 GB, free: 10.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 1.167e-05/0.7286, allocations: 0 / 0.6695 GB, free: 10.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.04282/0.7714, allocations: 18.17 MB / 0.6873 GB, free: 8.43 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.7716, allocations: 351.5 kB / 0.6876 GB, free: 8.012 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006153/0.7778, allocations: 3.519 MB / 0.6911 GB, free: 4.488 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/0.7788, allocations: 85.7 kB / 0.6911 GB, free: 4.398 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002576/0.7814, allocations: 3.383 MB / 0.6944 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001987/0.7834, allocations: 1.345 MB / 0.6958 GB, free: 15.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007914/0.7842, allocations: 442.2 kB / 0.6962 GB, free: 15.22 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.7843, allocations: 317 kB / 0.6965 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004135/0.7885, allocations: 2.552 MB / 0.699 GB, free: 12.35 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005403/0.7939, allocations: 4.52 MB / 0.7034 GB, free: 6.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2194/1.013, allocations: 7.449 MB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.076e-05/1.013, allocations: 16.19 kB / 0.7107 GB, free: 169.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01495/1.028, allocations: 8.282 MB / 0.7188 GB, free: 168.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.772e-05/1.028, allocations: 57.2 kB / 0.7188 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.763e-05/1.029, allocations: 62.25 kB / 0.7189 GB, free: 168.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002547/1.031, allocations: 1.003 MB / 0.7199 GB, free: 168.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004116/1.035, allocations: 1.264 MB / 0.7211 GB, free: 168.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/1.046, allocations: 8.241 MB / 0.7291 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/1.051, allocations: 352.8 kB / 0.7295 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005501/1.051, allocations: 270.6 kB / 0.7297 GB, free: 163.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 (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.00475/1.056, allocations: 2.903 MB / 0.7326 GB, free: 162 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007302/1.057, allocations: 390.6 kB / 0.7329 GB, free: 162 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009163/1.066, allocations: 6.192 MB / 0.739 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/1.066, allocations: 38.66 kB / 0.739 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/1.066, allocations: 11.81 kB / 0.739 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.228e-05/1.066, allocations: 22.83 kB / 0.7391 GB, free: 159.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02001/1.086, allocations: 14.94 MB / 0.7537 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/1.086, allocations: 8 kB / 0.7537 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/1.089, allocations: 0.6782 MB / 0.7543 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/1.091, allocations: 0.8784 MB / 0.7552 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002148/1.091, allocations: 83.98 kB / 0.7553 GB, free: 149.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008634/1.1, allocations: 7.208 MB / 0.7623 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/1.1, allocations: 12.03 kB / 0.7623 GB, free: 143 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/1.111, allocations: 8.779 MB / 0.7709 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/1.114, allocations: 0.9334 MB / 0.7718 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.115, allocations: 80 kB / 0.7719 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002428/1.118, allocations: 195.8 kB / 0.7721 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005227/1.118, allocations: 275.1 kB / 0.7723 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002016/1.118, allocations: 119.9 kB / 0.7724 GB, free: 132.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003545/1.122, allocations: 2.363 MB / 0.7747 GB, free: 130.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.2e-07/1.122, allocations: 0 / 0.7747 GB, free: 130.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005574/1.127, allocations: 1.455 MB / 0.7762 GB, free: 128.7 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.0006193/1.128, allocations: 247.2 kB / 0.7764 GB, free: 128.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009382/1.138, allocations: 6.478 MB / 0.7827 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/1.138, allocations: 4.125 kB / 0.7827 GB, free: 122 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004558/1.142, allocations: 3.088 MB / 0.7858 GB, free: 118.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006408/1.149, allocations: 0.791 MB / 0.7865 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/1.172, allocations: 17.27 MB / 0.8034 GB, free: 100.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004605/1.176, allocations: 5 MB / 0.8083 GB, free: 95.68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004581/1.181, allocations: 1.59 MB / 0.8098 GB, free: 94.08 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009974/1.182, allocations: 339.3 kB / 0.8101 GB, free: 93.75 MB / 494.1 MB Notification: Performance of SimCode: time 9.31e-07/1.182, allocations: 0 / 0.8101 GB, free: 93.75 MB / 494.1 MB Notification: Performance of Templates: time 0.08278/1.265, allocations: 58.66 MB / 0.8674 GB, free: 35.41 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) Environment - environmentSimulation: