Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 104.2 kB / 16.35 MB, free: 5.824 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.332/1.332, allocations: 222.9 MB / 240 MB, free: 4.523 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.00126/0.00126, allocations: 188.5 kB / 290.3 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05419/0.05419, allocations: 8.794 MB / 349.3 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 84.77 kB / 412.5 MB, free: 41.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.08308, allocations: 51.56 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02623/0.1093, allocations: 25.42 MB / 489.5 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.1264, allocations: 8.014 MB / 497.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005074/0.1315, allocations: 175.5 kB / 497.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01479/0.1463, allocations: 6.105 MB / 0.492 GB, free: 5.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009716/0.1561, allocations: 2.745 MB / 0.4947 GB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005073/0.1612, allocations: 1.619 MB / 0.4962 GB, free: 1.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01024/0.1714, allocations: 7.276 MB / 0.5034 GB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01673/0.1882, allocations: 13.31 MB / 0.5163 GB, free: 12.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005441/0.1937, allocations: 3.728 MB / 0.52 GB, free: 8.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006473/0.2002, allocations: 4.224 MB / 0.5241 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002448/0.2026, allocations: 1.074 MB / 0.5252 GB, free: 3.477 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004063/0.2067, allocations: 1.429 MB / 0.5266 GB, free: 2.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1864/0.3931, allocations: 2.141 MB / 0.5287 GB, free: 23.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005712/0.3989, allocations: 4.112 MB / 0.5327 GB, free: 23.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.4128, allocations: 14.44 MB / 0.5468 GB, free: 21.72 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4129, allocations: 0 / 0.5468 GB, free: 21.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.4129, allocations: 0 / 0.5468 GB, free: 21.72 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004386/0.4133, allocations: 0.875 kB / 0.5468 GB, free: 21.72 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.02959/0.4429, allocations: 8.768 MB / 0.5553 GB, free: 17.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.443, allocations: 10.28 kB / 0.5553 GB, free: 17.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02572/0.4687, allocations: 4.403 MB / 0.5596 GB, free: 16.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0099/0.4787, allocations: 4.621 MB / 0.5642 GB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000401/0.4791, allocations: 486 kB / 0.5646 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/0.4817, allocations: 0.6228 MB / 0.5652 GB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02267/0.5044, allocations: 10.36 MB / 0.5753 GB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/0.5046, allocations: 7.719 kB / 0.5754 GB, free: 9.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007912/0.5054, allocations: 267.2 kB / 0.5756 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003309/0.5058, allocations: 421.7 kB / 0.576 GB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01691/0.5227, allocations: 9.868 MB / 0.5856 GB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05658/0.5793, allocations: 35.28 MB / 0.6201 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0169/0.5962, allocations: 20.67 MB / 0.6403 GB, free: 6.281 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003567/0.5998, allocations: 2.313 MB / 0.6425 GB, free: 3.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/0.6001, allocations: 223.3 kB / 0.6428 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.6002, allocations: 64.89 kB / 0.6428 GB, free: 3.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.829e-06/0.6002, allocations: 0 / 0.6428 GB, free: 3.648 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.01934/0.6195, allocations: 10.87 MB / 0.6534 GB, free: 8.664 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.6196, allocations: 81.78 kB / 0.6535 GB, free: 8.57 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004187/0.6238, allocations: 3.025 MB / 0.6565 GB, free: 5.527 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002514/0.6241, allocations: 73.7 kB / 0.6565 GB, free: 5.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001648/0.6257, allocations: 2.867 MB / 0.6593 GB, free: 2.566 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008528/0.6266, allocations: 1.027 MB / 0.6603 GB, free: 1.547 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.6279, allocations: 0.9094 MB / 0.6612 GB, free: 0.625 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.199e-05/0.628, allocations: 309.1 kB / 0.6615 GB, free: 328 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002837/0.6308, allocations: 2.022 MB / 0.6635 GB, free: 14.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003821/0.6346, allocations: 3.727 MB / 0.6671 GB, free: 9.801 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007377/0.642, allocations: 6.043 MB / 0.673 GB, free: 3.184 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.113e-05/0.6421, allocations: 16 kB / 0.6731 GB, free: 3.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01083/0.653, allocations: 6.629 MB / 0.6795 GB, free: 12.84 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.915e-05/0.653, allocations: 28 kB / 0.6796 GB, free: 12.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-05/0.6531, allocations: 56 kB / 0.6796 GB, free: 12.76 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001714/0.6549, allocations: 0.672 MB / 0.6803 GB, free: 12.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003793/0.6587, allocations: 1.066 MB / 0.6813 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008177/0.6669, allocations: 6.232 MB / 0.6874 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003755/0.6706, allocations: 275.5 kB / 0.6877 GB, free: 4.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007114/0.6714, allocations: 236 kB / 0.6879 GB, free: 4.27 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.004465/0.6758, allocations: 2.31 MB / 0.6901 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009661/0.6768, allocations: 320.1 kB / 0.6904 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007559/0.6844, allocations: 4.625 MB / 0.695 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.6844, allocations: 39.88 kB / 0.695 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.6845, allocations: 11.98 kB / 0.695 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.951e-05/0.6845, allocations: 15.95 kB / 0.695 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/0.7026, allocations: 11.08 MB / 0.7058 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/0.7027, allocations: 8.062 kB / 0.7058 GB, free: 1.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002002/0.7047, allocations: 0.5354 MB / 0.7064 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.7062, allocations: 0.572 MB / 0.7069 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001779/0.7064, allocations: 63.98 kB / 0.707 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1805/0.8869, allocations: 5.445 MB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.8869, allocations: 12.97 kB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009439/0.8964, allocations: 6.578 MB / 0.7187 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/0.8981, allocations: 0.7256 MB / 0.7194 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004/0.8986, allocations: 60.84 kB / 0.7195 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.9, allocations: 149 kB / 0.7196 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/0.9003, allocations: 206.6 kB / 0.7198 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/0.9005, allocations: 90.14 kB / 0.7199 GB, free: 172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002515/0.903, allocations: 2.019 MB / 0.7219 GB, free: 171.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9031, allocations: 0 / 0.7219 GB, free: 171.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003176/0.9062, allocations: 1.173 MB / 0.723 GB, free: 171.1 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.0003508/0.9066, allocations: 228.1 kB / 0.7233 GB, free: 171 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005846/0.9124, allocations: 5.032 MB / 0.7282 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.9125, allocations: 7.859 kB / 0.7282 GB, free: 169.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002678/0.9151, allocations: 2.266 MB / 0.7304 GB, free: 168.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/0.9175, allocations: 0.6422 MB / 0.731 GB, free: 168 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.9305, allocations: 10.98 MB / 0.7418 GB, free: 162.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002816/0.9334, allocations: 4.147 MB / 0.7458 GB, free: 158.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002875/0.9363, allocations: 1.33 MB / 0.7471 GB, free: 158 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006911/0.937, allocations: 278.2 kB / 0.7474 GB, free: 157.7 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/0.937, allocations: 3.828 kB / 0.7474 GB, free: 157.7 MB / 494.1 MB Notification: Performance of Templates: time 0.09163/1.029, allocations: 43.55 MB / 0.7899 GB, free: 116.5 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)