Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001385, allocations: 112.6 kB / 16.37 MB, free: 6 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.414/1.414, allocations: 222.9 MB / 240 MB, free: 4.551 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.001846/0.001846, allocations: 176.5 kB / 290.3 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.034/0.034, allocations: 8.798 MB / 349.3 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 80.97 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09716, allocations: 51.57 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.02825/0.1254, allocations: 25.4 MB / 489.5 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.1419, allocations: 8.006 MB / 497.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005657/0.1476, allocations: 171.5 kB / 497.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01472/0.1624, allocations: 6.114 MB / 0.492 GB, free: 5.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009109/0.1715, allocations: 2.741 MB / 0.4947 GB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004731/0.1762, allocations: 1.624 MB / 0.4962 GB, free: 1.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01046/0.1867, allocations: 7.273 MB / 0.5033 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0199/0.2066, allocations: 13.31 MB / 0.5163 GB, free: 12.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006335/0.213, allocations: 3.736 MB / 0.52 GB, free: 8.848 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007946/0.221, allocations: 4.212 MB / 0.5241 GB, free: 4.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003377/0.2244, allocations: 1.074 MB / 0.5252 GB, free: 3.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005231/0.2297, allocations: 1.433 MB / 0.5266 GB, free: 2.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1938/0.4235, allocations: 2.143 MB / 0.5286 GB, free: 23.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007492/0.431, allocations: 4.108 MB / 0.5327 GB, free: 23.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02117/0.4522, allocations: 14.44 MB / 0.5468 GB, free: 21.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.4523, allocations: 1.906 kB / 0.5468 GB, free: 21.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4523, allocations: 0 / 0.5468 GB, free: 21.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005694/0.4529, allocations: 1.312 kB / 0.5468 GB, free: 21.8 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.03218/0.4851, allocations: 8.773 MB / 0.5553 GB, free: 17.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.4851, allocations: 9.688 kB / 0.5553 GB, free: 17.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02695/0.5121, allocations: 4.4 MB / 0.5596 GB, free: 16.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01313/0.5253, allocations: 4.624 MB / 0.5642 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005391/0.5258, allocations: 485.5 kB / 0.5646 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/0.5292, allocations: 0.6275 MB / 0.5652 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02385/0.5531, allocations: 10.35 MB / 0.5753 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001911/0.5533, allocations: 15.45 kB / 0.5753 GB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001094/0.5544, allocations: 266.2 kB / 0.5756 GB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003074/0.5547, allocations: 414.5 kB / 0.576 GB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.5719, allocations: 9.869 MB / 0.5856 GB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06566/0.6376, allocations: 35.3 MB / 0.6201 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01957/0.6572, allocations: 20.67 MB / 0.6403 GB, free: 6.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004522/0.6618, allocations: 2.303 MB / 0.6425 GB, free: 4.016 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005097/0.6623, allocations: 226.3 kB / 0.6427 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.643e-05/0.6624, allocations: 64.89 kB / 0.6428 GB, free: 3.691 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.34e-06/0.6624, allocations: 4 kB / 0.6428 GB, free: 3.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02186/0.6843, allocations: 10.86 MB / 0.6534 GB, free: 8.715 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.6844, allocations: 89.77 kB / 0.6535 GB, free: 8.613 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004166/0.6886, allocations: 3.025 MB / 0.6565 GB, free: 5.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001931/0.6888, allocations: 69.7 kB / 0.6565 GB, free: 5.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/0.6904, allocations: 2.861 MB / 0.6593 GB, free: 2.617 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007574/0.6912, allocations: 1.036 MB / 0.6603 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001281/0.6925, allocations: 0.9016 MB / 0.6612 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.084e-05/0.6926, allocations: 309.1 kB / 0.6615 GB, free: 380 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002745/0.6953, allocations: 2.024 MB / 0.6635 GB, free: 14.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003799/0.6991, allocations: 3.731 MB / 0.6671 GB, free: 9.848 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007076/0.7062, allocations: 6.043 MB / 0.673 GB, free: 3.234 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.888e-05/0.7063, allocations: 16 kB / 0.673 GB, free: 3.219 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01054/0.7168, allocations: 6.631 MB / 0.6795 GB, free: 12.89 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.7169, allocations: 28 kB / 0.6795 GB, free: 12.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.154e-05/0.717, allocations: 59.94 kB / 0.6796 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001783/0.7188, allocations: 0.6716 MB / 0.6803 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.7226, allocations: 1.065 MB / 0.6813 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009426/0.732, allocations: 6.223 MB / 0.6874 GB, free: 4.82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004875/0.7369, allocations: 283.5 kB / 0.6876 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/0.7383, allocations: 232 kB / 0.6879 GB, free: 4.316 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006228/0.7445, allocations: 2.31 MB / 0.6901 GB, free: 2.07 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/0.7456, allocations: 320 kB / 0.6904 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008035/0.7536, allocations: 4.631 MB / 0.695 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.693e-05/0.7536, allocations: 35.94 kB / 0.695 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.7537, allocations: 4 kB / 0.695 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.721e-05/0.7537, allocations: 15.94 kB / 0.695 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01867/0.7724, allocations: 11.09 MB / 0.7058 GB, free: 1.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.7724, allocations: 7.984 kB / 0.7058 GB, free: 1.922 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/0.7744, allocations: 0.5324 MB / 0.7064 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/0.7759, allocations: 0.5646 MB / 0.7069 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.7761, allocations: 71.98 kB / 0.707 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2128/0.9889, allocations: 5.444 MB / 0.7123 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.925e-06/0.989, allocations: 7.281 kB / 0.7123 GB, free: 173 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.9997, allocations: 6.586 MB / 0.7187 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.002, allocations: 0.7148 MB / 0.7194 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009371/1.003, allocations: 64.45 kB / 0.7195 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001849/1.005, allocations: 146.4 kB / 0.7196 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/1.006, allocations: 211.7 kB / 0.7198 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000199/1.006, allocations: 90.19 kB / 0.7199 GB, free: 172.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00361/1.01, allocations: 2.015 MB / 0.7219 GB, free: 171.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.683e-06/1.01, allocations: 3.938 kB / 0.7219 GB, free: 171.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005108/1.015, allocations: 1.167 MB / 0.723 GB, free: 171.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006804/1.015, allocations: 226.3 kB / 0.7232 GB, free: 171.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008163/1.024, allocations: 5.048 MB / 0.7282 GB, free: 169.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.024, allocations: 0 / 0.7282 GB, free: 169.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/1.027, allocations: 2.266 MB / 0.7304 GB, free: 168.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004647/1.032, allocations: 0.6504 MB / 0.731 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.053, allocations: 10.98 MB / 0.7417 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00408/1.057, allocations: 4.151 MB / 0.7458 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003438/1.06, allocations: 1.323 MB / 0.7471 GB, free: 158.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008352/1.061, allocations: 275.2 kB / 0.7474 GB, free: 157.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.203e-06/1.061, allocations: 0 / 0.7474 GB, free: 157.9 MB / 494.1 MB Notification: Performance of Templates: time 0.07021/1.131, allocations: 43.55 MB / 0.7899 GB, free: 116.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1)