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.001292/0.001292, allocations: 99.62 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.333/1.333, allocations: 223.2 MB / 238.9 MB, free: 5.641 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.001238/0.001238, allocations: 196.2 kB / 290.2 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03192/0.03192, allocations: 8.793 MB / 350.1 MB, free: 4.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003303/0.0003304, allocations: 10.72 kB / 413.1 MB, free: 43.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09183/0.09218, allocations: 52.56 MB / 465.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.01996/0.1122, allocations: 20.4 MB / 486.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.1266, allocations: 7.584 MB / 493.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004507/0.1311, allocations: 151.6 kB / 493.8 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.1362, allocations: 1.516 MB / 495.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009859/0.1461, allocations: 2.732 MB / 498 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004148/0.1502, allocations: 1.242 MB / 499.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01041/0.1607, allocations: 6.246 MB / 0.4937 GB, free: 5.652 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02022/0.1809, allocations: 10.98 MB / 0.5044 GB, free: 10.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005482/0.1865, allocations: 2.554 MB / 0.5069 GB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005829/0.1923, allocations: 2.899 MB / 0.5097 GB, free: 5.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001702/0.194, allocations: 427.9 kB / 0.5101 GB, free: 4.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003024/0.1971, allocations: 0.73 MB / 0.5108 GB, free: 3.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001567/0.1987, allocations: 1.297 MB / 0.5121 GB, free: 2.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002542/0.2012, allocations: 1.381 MB / 0.5135 GB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01418/0.2154, allocations: 12.09 MB / 0.5253 GB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2155, allocations: 0 / 0.5253 GB, free: 5.145 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2155, allocations: 0 / 0.5253 GB, free: 5.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004299/0.2159, allocations: 0 / 0.5253 GB, free: 5.145 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.2546/0.4706, allocations: 7.41 MB / 0.5325 GB, free: 57.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.4706, allocations: 7 kB / 0.5325 GB, free: 57.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02617/0.4968, allocations: 4.297 MB / 0.5367 GB, free: 57.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01085/0.5077, allocations: 4.428 MB / 0.541 GB, free: 56.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005951/0.5083, allocations: 487.2 kB / 0.5415 GB, free: 56.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002673/0.511, allocations: 0.6264 MB / 0.5421 GB, free: 56.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02993/0.541, allocations: 10.25 MB / 0.5521 GB, free: 51.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002519/0.5413, allocations: 15.81 kB / 0.5521 GB, free: 51.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001074/0.5424, allocations: 264.8 kB / 0.5524 GB, free: 51.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004115/0.5428, allocations: 424.9 kB / 0.5528 GB, free: 51.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.561, allocations: 9.818 MB / 0.5624 GB, free: 44.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05333/0.6144, allocations: 35.75 MB / 0.5973 GB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01844/0.6329, allocations: 20.61 MB / 0.6174 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005658/0.6335, allocations: 227.2 kB / 0.6176 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.743e-05/0.6336, allocations: 68.88 kB / 0.6177 GB, free: 388 kB / 382.1 MB Notification: Performance of pre-optimization done (n=295): time 7.394e-06/0.6336, allocations: 0 / 0.6177 GB, free: 388 kB / 382.1 MB Notification: Performance of matching and sorting (n=301): time 0.02417/0.6578, allocations: 10.84 MB / 0.6283 GB, free: 5.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.76e-05/0.6579, allocations: 81.78 kB / 0.6284 GB, free: 5.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005738/0.6636, allocations: 2.986 MB / 0.6313 GB, free: 2.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004067/0.6641, allocations: 77.7 kB / 0.6313 GB, free: 2.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002309/0.6664, allocations: 2.864 MB / 0.6341 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/0.6677, allocations: 1.031 MB / 0.6351 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005791/0.6683, allocations: 99.94 kB / 0.6352 GB, free: 14.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0005326/0.6688, allocations: 0.4921 MB / 0.6357 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004064/0.6729, allocations: 2.02 MB / 0.6377 GB, free: 11.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005025/0.678, allocations: 3.701 MB / 0.6413 GB, free: 7.219 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00535/0.6833, allocations: 2.836 MB / 0.6441 GB, free: 4.367 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-05/0.6834, allocations: 16 kB / 0.6441 GB, free: 4.352 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01274/0.6962, allocations: 6.612 MB / 0.6505 GB, free: 13.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.98e-05/0.6963, allocations: 32 kB / 0.6506 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-05/0.6964, allocations: 52 kB / 0.6506 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/0.6983, allocations: 0.6666 MB / 0.6513 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004252/0.7025, allocations: 1.076 MB / 0.6523 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008703/0.7113, allocations: 5.858 MB / 0.658 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.7153, allocations: 275.5 kB / 0.6583 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008523/0.7162, allocations: 232 kB / 0.6585 GB, free: 5.391 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.005303/0.7215, allocations: 2.319 MB / 0.6608 GB, free: 3.059 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001019/0.7225, allocations: 316.1 kB / 0.6611 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008762/0.7313, allocations: 4.657 MB / 0.6656 GB, free: 14.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.643e-05/0.7313, allocations: 32 kB / 0.6657 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.7314, allocations: 8 kB / 0.6657 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-05/0.7314, allocations: 19.89 kB / 0.6657 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02245/0.7539, allocations: 11 MB / 0.6765 GB, free: 2.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/0.7539, allocations: 4 kB / 0.6765 GB, free: 2.766 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/0.7562, allocations: 0.5421 MB / 0.677 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/0.758, allocations: 0.5671 MB / 0.6775 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002918/0.7583, allocations: 67.97 kB / 0.6776 GB, free: 1.586 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007648/0.7659, allocations: 5.214 MB / 0.6827 GB, free: 12.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/0.766, allocations: 7.938 kB / 0.6827 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/0.7779, allocations: 7.024 MB / 0.6896 GB, free: 4.875 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/0.7802, allocations: 0.7546 MB / 0.6903 GB, free: 4.098 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009642/0.7812, allocations: 59.98 kB / 0.6904 GB, free: 4.039 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/0.7836, allocations: 143.9 kB / 0.6905 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004732/0.7841, allocations: 206 kB / 0.6907 GB, free: 3.695 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/0.7843, allocations: 95.97 kB / 0.6908 GB, free: 3.602 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004183/0.7885, allocations: 1.985 MB / 0.6927 GB, free: 1.613 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7885, allocations: 0 / 0.6927 GB, free: 1.613 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005374/0.7939, allocations: 1.176 MB / 0.6939 GB, free: 452 kB / 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.0006252/0.7945, allocations: 224.7 kB / 0.6941 GB, free: 220 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009347/0.8039, allocations: 5.019 MB / 0.699 GB, free: 11.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.8039, allocations: 4 kB / 0.699 GB, free: 11.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/0.8079, allocations: 2.238 MB / 0.7012 GB, free: 8.91 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003277/0.8112, allocations: 0.5729 MB / 0.7017 GB, free: 8.344 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2013/1.013, allocations: 13.18 MB / 0.7146 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004985/1.018, allocations: 4.254 MB / 0.7188 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004102/1.022, allocations: 1.324 MB / 0.7201 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000847/1.023, allocations: 278.5 kB / 0.7203 GB, free: 151.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/1.023, allocations: 0 / 0.7203 GB, free: 151.4 MB / 478.1 MB Notification: Performance of Templates: time 0.07265/1.095, allocations: 44.28 MB / 0.7636 GB, free: 122.7 MB / 478.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) Environment - environmentSimulation: