Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") translateModel(HanserModelica.SynchronousMachines.SMEE_Slip4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009844/0.0009845, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.345/1.345, allocations: 223.2 MB / 238.9 MB, free: 5.66 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.001159/0.001159, allocations: 189 kB / 290.2 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03347/0.03347, allocations: 8.8 MB / 350.1 MB, free: 4.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003684, allocations: 13.84 kB / 413.1 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.0803, allocations: 52.55 MB / 465.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02073/0.1011, allocations: 20.41 MB / 486.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.1169, allocations: 7.584 MB / 493.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004237/0.1211, allocations: 151.6 kB / 493.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005989/0.1272, allocations: 1.516 MB / 495.3 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00903/0.1362, allocations: 2.709 MB / 498 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004553/0.1408, allocations: 1.252 MB / 499.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01113/0.1519, allocations: 6.25 MB / 0.4937 GB, free: 5.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02128/0.1732, allocations: 10.98 MB / 0.5044 GB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004831/0.1781, allocations: 2.558 MB / 0.5069 GB, free: 8.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0047/0.1828, allocations: 2.899 MB / 0.5097 GB, free: 5.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00169/0.1845, allocations: 424 kB / 0.5101 GB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003787/0.1883, allocations: 0.7222 MB / 0.5108 GB, free: 4.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002242/0.1906, allocations: 1.304 MB / 0.5121 GB, free: 2.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002623/0.1932, allocations: 1.385 MB / 0.5135 GB, free: 1.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.2081, allocations: 12.08 MB / 0.5252 GB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2082, allocations: 0 / 0.5252 GB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2082, allocations: 0 / 0.5252 GB, free: 5.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004525/0.2087, allocations: 0 / 0.5252 GB, free: 5.207 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.2636/0.4723, allocations: 7.407 MB / 0.5325 GB, free: 57.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4724, allocations: 10.61 kB / 0.5325 GB, free: 57.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03998/0.5124, allocations: 4.299 MB / 0.5367 GB, free: 57.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.5236, allocations: 4.428 MB / 0.541 GB, free: 56.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007391/0.5244, allocations: 488.9 kB / 0.5415 GB, free: 56.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003408/0.5278, allocations: 0.6271 MB / 0.5421 GB, free: 56.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02712/0.5549, allocations: 10.25 MB / 0.5521 GB, free: 52.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003315/0.5553, allocations: 7.875 kB / 0.5521 GB, free: 52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001879/0.5572, allocations: 268.1 kB / 0.5524 GB, free: 51.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004612/0.5577, allocations: 421.1 kB / 0.5528 GB, free: 51.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01808/0.5758, allocations: 9.817 MB / 0.5624 GB, free: 44.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05179/0.6276, allocations: 35.76 MB / 0.5973 GB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01712/0.6447, allocations: 20.62 MB / 0.6174 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004631/0.6452, allocations: 231.8 kB / 0.6176 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.593e-05/0.6453, allocations: 64.89 kB / 0.6177 GB, free: 464 kB / 382.1 MB Notification: Performance of pre-optimization done (n=295): time 4.589e-06/0.6453, allocations: 0 / 0.6177 GB, free: 464 kB / 382.1 MB Notification: Performance of matching and sorting (n=301): time 0.02318/0.6685, allocations: 10.83 MB / 0.6283 GB, free: 5.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.6686, allocations: 81.78 kB / 0.6283 GB, free: 5.398 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00531/0.674, allocations: 2.99 MB / 0.6313 GB, free: 2.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004554/0.6744, allocations: 73.7 kB / 0.6313 GB, free: 2.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002147/0.6766, allocations: 2.867 MB / 0.6341 GB, free: 15.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001433/0.678, allocations: 1.035 MB / 0.6351 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004824/0.6785, allocations: 88 kB / 0.6352 GB, free: 14.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0004386/0.679, allocations: 0.4922 MB / 0.6357 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003524/0.6825, allocations: 2.027 MB / 0.6377 GB, free: 11.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004521/0.6871, allocations: 3.697 MB / 0.6413 GB, free: 7.301 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004189/0.6913, allocations: 2.832 MB / 0.6441 GB, free: 4.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.074e-05/0.6913, allocations: 16 kB / 0.6441 GB, free: 4.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01116/0.7025, allocations: 6.611 MB / 0.6505 GB, free: 13.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.7026, allocations: 28 kB / 0.6506 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.448e-05/0.7027, allocations: 59.94 kB / 0.6506 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.7044, allocations: 0.6705 MB / 0.6513 GB, free: 13.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003834/0.7083, allocations: 1.069 MB / 0.6523 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008034/0.7163, allocations: 5.87 MB / 0.658 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00373/0.7201, allocations: 275.5 kB / 0.6583 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006699/0.7208, allocations: 228 kB / 0.6585 GB, free: 5.469 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 249 * 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 (562): * Single equations (assignments): 561 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004302/0.7251, allocations: 2.315 MB / 0.6608 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008037/0.7259, allocations: 320 kB / 0.6611 GB, free: 2.824 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007707/0.7336, allocations: 4.661 MB / 0.6656 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.7337, allocations: 32 kB / 0.6657 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.7337, allocations: 8 kB / 0.6657 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.942e-05/0.7337, allocations: 15.94 kB / 0.6657 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01846/0.7522, allocations: 10.99 MB / 0.6764 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.7523, allocations: 4 kB / 0.6764 GB, free: 2.855 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/0.7544, allocations: 0.5421 MB / 0.677 GB, free: 2.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.756, allocations: 0.5672 MB / 0.6775 GB, free: 1.742 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001716/0.7562, allocations: 67.98 kB / 0.6776 GB, free: 1.676 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007022/0.7632, allocations: 5.222 MB / 0.6827 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/0.7633, allocations: 7.938 kB / 0.6827 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01051/0.7738, allocations: 7.024 MB / 0.6896 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00228/0.7761, allocations: 0.7585 MB / 0.6903 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005681/0.7767, allocations: 56 kB / 0.6903 GB, free: 4.117 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/0.7785, allocations: 147.8 kB / 0.6905 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004954/0.779, allocations: 210 kB / 0.6907 GB, free: 3.766 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001857/0.7792, allocations: 87.98 kB / 0.6908 GB, free: 3.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003642/0.7828, allocations: 1.985 MB / 0.6927 GB, free: 1.691 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7828, allocations: 0 / 0.6927 GB, free: 1.691 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005049/0.7879, allocations: 1.176 MB / 0.6939 GB, free: 0.5195 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (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 {(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005473/0.7885, allocations: 226.1 kB / 0.6941 GB, free: 300 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008338/0.7968, allocations: 5.021 MB / 0.699 GB, free: 11.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/0.7969, allocations: 4 kB / 0.699 GB, free: 11.24 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004144/0.801, allocations: 2.238 MB / 0.7012 GB, free: 8.988 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003433/0.8045, allocations: 0.5781 MB / 0.7017 GB, free: 8.422 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2428/1.047, allocations: 13.18 MB / 0.7146 GB, free: 154.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006809/1.054, allocations: 4.251 MB / 0.7188 GB, free: 153.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004678/1.059, allocations: 1.325 MB / 0.72 GB, free: 153.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009797/1.06, allocations: 277 kB / 0.7203 GB, free: 153.4 MB / 478.1 MB Notification: Performance of SimCode: time 2.194e-06/1.06, allocations: 0 / 0.7203 GB, free: 153.4 MB / 478.1 MB Notification: Performance of Templates: time 0.07811/1.138, allocations: 44.29 MB / 0.7636 GB, free: 124.6 MB / 478.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) Environment - environmentSimulation: