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.001156/0.001156, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.457/1.457, allocations: 222.9 MB / 240 MB, free: 4.535 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.001246/0.001246, allocations: 188.5 kB / 290.3 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0347/0.0347, allocations: 8.797 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 79.75 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09078/0.09246, allocations: 51.56 MB / 464.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02512/0.1176, allocations: 25.43 MB / 489.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01713/0.1348, allocations: 8.014 MB / 497.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005248/0.1401, allocations: 171.5 kB / 497.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01361/0.1538, allocations: 6.109 MB / 0.492 GB, free: 5.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008091/0.1619, allocations: 2.745 MB / 0.4947 GB, free: 2.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004838/0.1667, allocations: 1.617 MB / 0.4962 GB, free: 1.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.177, allocations: 7.279 MB / 0.5034 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02004/0.197, allocations: 13.31 MB / 0.5164 GB, free: 12.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006245/0.2033, allocations: 3.732 MB / 0.52 GB, free: 8.82 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006646/0.21, allocations: 4.216 MB / 0.5241 GB, free: 4.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002693/0.2127, allocations: 1.078 MB / 0.5252 GB, free: 3.512 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.2168, allocations: 1.429 MB / 0.5266 GB, free: 2.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2102/0.427, allocations: 2.144 MB / 0.5287 GB, free: 23.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007342/0.4344, allocations: 4.108 MB / 0.5327 GB, free: 23.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01561/0.45, allocations: 14.44 MB / 0.5468 GB, free: 22.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.4501, allocations: 0 / 0.5468 GB, free: 22.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4501, allocations: 0 / 0.5468 GB, free: 22.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004132/0.4505, allocations: 1.375 kB / 0.5468 GB, free: 22.2 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.03423/0.4848, allocations: 8.771 MB / 0.5553 GB, free: 18.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4848, allocations: 8.906 kB / 0.5553 GB, free: 18.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02635/0.5112, allocations: 4.412 MB / 0.5597 GB, free: 16.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01177/0.523, allocations: 4.61 MB / 0.5642 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005126/0.5236, allocations: 485.7 kB / 0.5646 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003471/0.5271, allocations: 0.6282 MB / 0.5652 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02453/0.5516, allocations: 10.36 MB / 0.5753 GB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000181/0.5518, allocations: 7.781 kB / 0.5754 GB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001052/0.5529, allocations: 267.9 kB / 0.5756 GB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003258/0.5532, allocations: 418.1 kB / 0.576 GB, free: 9.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02011/0.5733, allocations: 9.87 MB / 0.5856 GB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07173/0.6451, allocations: 35.29 MB / 0.6201 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02141/0.6665, allocations: 20.66 MB / 0.6403 GB, free: 6.445 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00529/0.6719, allocations: 2.306 MB / 0.6425 GB, free: 4.137 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004892/0.6724, allocations: 226.6 kB / 0.6428 GB, free: 3.887 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.957e-05/0.6725, allocations: 64.89 kB / 0.6428 GB, free: 3.812 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.861e-06/0.6725, allocations: 0 / 0.6428 GB, free: 3.812 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02265/0.6952, allocations: 10.86 MB / 0.6534 GB, free: 8.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.6953, allocations: 81.78 kB / 0.6535 GB, free: 8.746 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004951/0.7002, allocations: 3.033 MB / 0.6565 GB, free: 5.695 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004322/0.7007, allocations: 73.7 kB / 0.6565 GB, free: 5.617 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/0.7025, allocations: 2.86 MB / 0.6593 GB, free: 2.738 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/0.7036, allocations: 1.041 MB / 0.6603 GB, free: 1.711 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001489/0.7051, allocations: 0.9016 MB / 0.6612 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.7053, allocations: 305.1 kB / 0.6615 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.7084, allocations: 2.02 MB / 0.6635 GB, free: 14.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/0.7126, allocations: 3.729 MB / 0.6671 GB, free: 9.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/0.7204, allocations: 6.044 MB / 0.673 GB, free: 3.363 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.631e-05/0.7204, allocations: 20 kB / 0.6731 GB, free: 3.344 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01184/0.7323, allocations: 6.632 MB / 0.6795 GB, free: 13.02 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-05/0.7324, allocations: 28 kB / 0.6796 GB, free: 12.99 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.7325, allocations: 56 kB / 0.6796 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/0.7346, allocations: 0.6674 MB / 0.6803 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00409/0.7387, allocations: 1.07 MB / 0.6813 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008704/0.7474, allocations: 6.22 MB / 0.6874 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/0.7514, allocations: 283.5 kB / 0.6877 GB, free: 4.672 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006106/0.752, allocations: 225.5 kB / 0.6879 GB, free: 4.453 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.004325/0.7563, allocations: 2.321 MB / 0.6901 GB, free: 2.195 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007862/0.7571, allocations: 320 kB / 0.6904 GB, free: 1.879 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/0.7649, allocations: 4.631 MB / 0.695 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.43e-05/0.7649, allocations: 31.94 kB / 0.695 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.7649, allocations: 11.94 kB / 0.695 GB, free: 13.17 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.765, allocations: 15.94 kB / 0.695 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01918/0.7842, allocations: 11.09 MB / 0.7058 GB, free: 2.051 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/0.7842, allocations: 4 kB / 0.7058 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/0.7863, allocations: 0.5267 MB / 0.7064 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.7879, allocations: 0.5761 MB / 0.7069 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002382/0.7882, allocations: 71.97 kB / 0.707 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1972/0.9854, allocations: 5.441 MB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.9854, allocations: 6.75 kB / 0.7123 GB, free: 172.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/0.996, allocations: 6.584 MB / 0.7187 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/0.9979, allocations: 0.7215 MB / 0.7194 GB, free: 172.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008853/0.9988, allocations: 58.31 kB / 0.7195 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/1.001, allocations: 146.3 kB / 0.7196 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/1.001, allocations: 214.5 kB / 0.7198 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001982/1.002, allocations: 92.12 kB / 0.7199 GB, free: 172 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003542/1.005, allocations: 2.013 MB / 0.7219 GB, free: 171.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.005, allocations: 3.812 kB / 0.7219 GB, free: 171.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004487/1.01, allocations: 1.172 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.0004277/1.01, allocations: 226.4 kB / 0.7233 GB, free: 171 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007088/1.017, allocations: 5.038 MB / 0.7282 GB, free: 169.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.017, allocations: 3.938 kB / 0.7282 GB, free: 169.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003087/1.02, 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.003318/1.024, allocations: 0.6435 MB / 0.731 GB, free: 168 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.042, allocations: 10.98 MB / 0.7418 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004157/1.046, allocations: 4.147 MB / 0.7458 GB, free: 159.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003525/1.049, allocations: 1.326 MB / 0.7471 GB, free: 158.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008318/1.05, allocations: 270.3 kB / 0.7474 GB, free: 158.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.994e-06/1.05, allocations: 0 / 0.7474 GB, free: 158.1 MB / 494.1 MB Notification: Performance of Templates: time 0.06912/1.119, allocations: 43.56 MB / 0.7899 GB, free: 116.9 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)