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.009639/0.009639, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001318/0.001318, allocations: 188.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03489/0.03489, allocations: 8.801 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 87.81 kB / 464 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09258, allocations: 51.56 MB / 0.5034 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2244/0.317, allocations: 25.42 MB / 0.5283 GB, free: 4.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0133/0.3303, allocations: 8.019 MB / 0.5361 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004044/0.3344, allocations: 175.8 kB / 0.5363 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0121/0.3465, allocations: 6.101 MB / 0.5422 GB, free: 4.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008629/0.3552, allocations: 2.735 MB / 0.5449 GB, free: 3.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004593/0.3598, allocations: 1.617 MB / 0.5465 GB, free: 3.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009796/0.3696, allocations: 7.279 MB / 0.5536 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01959/0.3892, allocations: 13.34 MB / 0.5666 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007181/0.3964, allocations: 3.748 MB / 0.5703 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007652/0.4041, allocations: 4.223 MB / 0.5744 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002105/0.4063, allocations: 1.07 MB / 0.5754 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004484/0.4108, allocations: 1.433 MB / 0.5768 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003035/0.4138, allocations: 2.148 MB / 0.5789 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005302/0.4192, allocations: 4.113 MB / 0.5829 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01576/0.4349, allocations: 14.44 MB / 0.597 GB, free: 15 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.435, allocations: 8 kB / 0.5971 GB, free: 14.99 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.435, allocations: 4 kB / 0.5971 GB, free: 14.99 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003564/0.4353, allocations: 0 / 0.5971 GB, free: 14.99 MB / 414.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.02528/0.4606, allocations: 8.775 MB / 0.6056 GB, free: 6.199 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4607, allocations: 12.03 kB / 0.6056 GB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02426/0.485, allocations: 4.394 MB / 0.6099 GB, free: 1.836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.4951, allocations: 4.611 MB / 0.6144 GB, free: 13.2 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005508/0.4956, allocations: 486.4 kB / 0.6149 GB, free: 12.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002771/0.4984, allocations: 0.6372 MB / 0.6155 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02719/0.5256, allocations: 10.34 MB / 0.6256 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002974/0.526, allocations: 23.77 kB / 0.6256 GB, free: 1.688 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002091/0.5281, allocations: 262.8 kB / 0.6259 GB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00046/0.5286, allocations: 421.7 kB / 0.6263 GB, free: 1.027 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0211/0.5497, allocations: 9.864 MB / 0.6359 GB, free: 7.145 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05923/0.6089, allocations: 35.3 MB / 0.6704 GB, free: 2.848 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0196/0.6286, allocations: 20.67 MB / 0.6906 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004044/0.6326, allocations: 2.308 MB / 0.6928 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/0.6331, allocations: 227.9 kB / 0.6931 GB, free: 8.973 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.908e-05/0.6332, allocations: 68.89 kB / 0.6931 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 5.18e-06/0.6332, allocations: 0 / 0.6931 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02398/0.6572, allocations: 10.87 MB / 0.7037 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.6573, allocations: 85.78 kB / 0.7038 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005511/0.6628, allocations: 3.017 MB / 0.7068 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004691/0.6633, allocations: 81.69 kB / 0.7068 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002296/0.6656, allocations: 2.861 MB / 0.7096 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001456/0.6671, allocations: 1.032 MB / 0.7106 GB, free: 6.762 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/0.6695, allocations: 0.9055 MB / 0.7115 GB, free: 5.844 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.635e-05/0.6696, allocations: 301.1 kB / 0.7118 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003432/0.6731, allocations: 2.024 MB / 0.7138 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004874/0.678, allocations: 3.724 MB / 0.7174 GB, free: 15 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008193/0.6862, allocations: 6.047 MB / 0.7233 GB, free: 8.152 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.436e-05/0.6863, allocations: 16 kB / 0.7233 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01182/0.6981, allocations: 6.634 MB / 0.7298 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.178e-05/0.6982, allocations: 28 kB / 0.7298 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001038/0.6983, allocations: 56 kB / 0.7299 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001919/0.7002, allocations: 0.672 MB / 0.7306 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2783/0.9786, allocations: 1.066 MB / 0.7316 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008291/0.9869, allocations: 6.219 MB / 0.7377 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00374/0.9906, allocations: 284.6 kB / 0.7379 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006062/0.9913, allocations: 226.8 kB / 0.7382 GB, free: 165 MB / 0.5294 GB 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.00394/0.9952, allocations: 2.315 MB / 0.7404 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006578/0.9959, allocations: 324 kB / 0.7407 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00733/1.003, allocations: 4.629 MB / 0.7453 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/1.003, allocations: 30.28 kB / 0.7453 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.003, allocations: 6.391 kB / 0.7453 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.68e-05/1.003, allocations: 16.28 kB / 0.7453 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01686/1.02, allocations: 11.08 MB / 0.7561 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/1.02, allocations: 7.562 kB / 0.7561 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/1.022, allocations: 0.5361 MB / 0.7567 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/1.024, allocations: 0.5623 MB / 0.7572 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/1.024, allocations: 69.98 kB / 0.7573 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006157/1.03, allocations: 5.45 MB / 0.7626 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.03, allocations: 11.81 kB / 0.7626 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008451/1.038, allocations: 6.582 MB / 0.769 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002278/1.041, allocations: 0.7274 MB / 0.7697 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004704/1.041, allocations: 59.84 kB / 0.7698 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/1.043, allocations: 141.8 kB / 0.7699 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004656/1.043, allocations: 209.1 kB / 0.7701 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/1.043, allocations: 91.94 kB / 0.7702 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00317/1.047, allocations: 2.017 MB / 0.7722 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.047, allocations: 0 / 0.7722 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004183/1.051, allocations: 1.173 MB / 0.7733 GB, free: 152.2 MB / 0.5294 GB 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.0004757/1.051, allocations: 235 kB / 0.7736 GB, free: 152 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006931/1.058, allocations: 5.038 MB / 0.7785 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/1.058, allocations: 0 / 0.7785 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002967/1.061, allocations: 2.269 MB / 0.7807 GB, free: 149.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/1.064, allocations: 0.6441 MB / 0.7813 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/1.079, allocations: 10.98 MB / 0.7921 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002874/1.082, allocations: 4.15 MB / 0.7961 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003023/1.085, allocations: 1.322 MB / 0.7974 GB, free: 134.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007009/1.085, allocations: 275.4 kB / 0.7977 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.853e-06/1.085, allocations: 0 / 0.7977 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.06621/1.152, allocations: 45.25 MB / 0.8419 GB, free: 89.33 MB / 0.5294 GB 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)