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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005266/0.005266, allocations: 101.4 kB / 15.73 MB, free: 6.039 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.401/1.401, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00149/0.00149, allocations: 196.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03625/0.03625, allocations: 8.808 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002283, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09892/0.1012, allocations: 51.56 MB / 0.503 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02884/0.1301, allocations: 25.43 MB / 0.5278 GB, free: 412 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2131/0.3432, allocations: 7.998 MB / 0.5356 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004689/0.348, allocations: 172.2 kB / 0.5358 GB, free: 4.371 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01325/0.3612, allocations: 6.112 MB / 0.5417 GB, free: 3.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008457/0.3697, allocations: 2.736 MB / 0.5444 GB, free: 3.039 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004847/0.3746, allocations: 1.62 MB / 0.546 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01111/0.3857, allocations: 7.273 MB / 0.5531 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02177/0.4075, allocations: 13.43 MB / 0.5662 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00687/0.4144, allocations: 3.735 MB / 0.5699 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00767/0.4221, allocations: 4.216 MB / 0.574 GB, free: 6.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003043/0.4252, allocations: 1.074 MB / 0.575 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005385/0.4306, allocations: 1.437 MB / 0.5764 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003626/0.4343, allocations: 2.149 MB / 0.5785 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008361/0.4427, allocations: 4.108 MB / 0.5825 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02035/0.4631, allocations: 14.47 MB / 0.5967 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.4631, allocations: 4 kB / 0.5967 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.4631, allocations: 0 / 0.5967 GB, free: 15.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004211/0.4636, allocations: 0 / 0.5967 GB, free: 15.17 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.02668/0.4903, allocations: 8.926 MB / 0.6054 GB, free: 6.219 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4903, allocations: 8.031 kB / 0.6054 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003247/0.4936, allocations: 1.044 MB / 0.6064 GB, free: 5.168 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02511/0.5187, allocations: 4.443 MB / 0.6108 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.5294, allocations: 4.632 MB / 0.6153 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005794/0.53, allocations: 488 kB / 0.6157 GB, free: 11.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002773/0.5328, allocations: 0.6258 MB / 0.6164 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02756/0.5604, allocations: 10.37 MB / 0.6265 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003136/0.5608, allocations: 11.95 kB / 0.6265 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002004/0.5628, allocations: 264.2 kB / 0.6267 GB, free: 356 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005366/0.5633, allocations: 417.7 kB / 0.6271 GB, free: 15.94 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02161/0.5849, allocations: 9.876 MB / 0.6368 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06588/0.6509, allocations: 35.4 MB / 0.6714 GB, free: 1.656 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02281/0.6737, allocations: 20.66 MB / 0.6915 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004289/0.6781, allocations: 2.304 MB / 0.6938 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004603/0.6785, allocations: 223.9 kB / 0.694 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.725e-05/0.6787, allocations: 64.89 kB / 0.6941 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 8.707e-06/0.6787, allocations: 0 / 0.6941 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02678/0.7055, allocations: 10.96 MB / 0.7048 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.85e-05/0.7056, allocations: 81.78 kB / 0.7048 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006275/0.7119, allocations: 3.029 MB / 0.7078 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005703/0.7125, allocations: 77.7 kB / 0.7079 GB, free: 9.406 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002814/0.7153, allocations: 2.964 MB / 0.7108 GB, free: 6.438 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001447/0.7168, allocations: 1.087 MB / 0.7118 GB, free: 5.363 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002657/0.7195, allocations: 0.9099 MB / 0.7127 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.7196, allocations: 301.1 kB / 0.713 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003833/0.7235, allocations: 2.027 MB / 0.715 GB, free: 2.109 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005629/0.7292, allocations: 3.728 MB / 0.7186 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009793/0.739, allocations: 6.043 MB / 0.7245 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.165e-05/0.7391, allocations: 16 kB / 0.7245 GB, free: 6.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01457/0.7537, allocations: 6.654 MB / 0.731 GB, free: 40 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.809e-05/0.7538, allocations: 29.56 kB / 0.7311 GB, free: 12 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1976/0.9514, allocations: 53.3 kB / 0.7311 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/0.9535, allocations: 0.6682 MB / 0.7318 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/0.9573, allocations: 1.068 MB / 0.7328 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008397/0.9658, allocations: 6.221 MB / 0.7389 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003698/0.9695, allocations: 282.1 kB / 0.7392 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007855/0.9703, allocations: 228.2 kB / 0.7394 GB, free: 165.3 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.004322/0.9747, allocations: 2.315 MB / 0.7416 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009327/0.9756, allocations: 340.8 kB / 0.742 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008311/0.9839, allocations: 4.627 MB / 0.7465 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-05/0.984, allocations: 30.34 kB / 0.7465 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.146e-05/0.984, allocations: 9.172 kB / 0.7465 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.241e-05/0.9841, allocations: 19.48 kB / 0.7465 GB, free: 164.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/1.003, allocations: 11.09 MB / 0.7574 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/1.003, allocations: 6.781 kB / 0.7574 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.005, allocations: 0.5343 MB / 0.7579 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/1.007, allocations: 0.5696 MB / 0.7585 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000309/1.007, allocations: 66.53 kB / 0.7585 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006086/1.013, allocations: 5.458 MB / 0.7638 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.595e-06/1.013, allocations: 13.38 kB / 0.7639 GB, free: 156.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00865/1.022, allocations: 6.601 MB / 0.7703 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/1.024, allocations: 0.743 MB / 0.771 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005391/1.024, allocations: 61.59 kB / 0.7711 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/1.026, allocations: 147.5 kB / 0.7712 GB, free: 153.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003913/1.026, allocations: 206.7 kB / 0.7714 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/1.026, allocations: 90.75 kB / 0.7715 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002692/1.029, allocations: 2.018 MB / 0.7735 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.4e-07/1.029, allocations: 0 / 0.7735 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004595/1.034, allocations: 1.173 MB / 0.7746 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.00887/1.043, allocations: 7.287 MB / 0.7817 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007782/1.05, allocations: 5.034 MB / 0.7867 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.05, allocations: 4.875 kB / 0.7867 GB, free: 145.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/1.054, allocations: 2.274 MB / 0.7889 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/1.057, allocations: 0.6455 MB / 0.7895 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05354/1.111, allocations: 39.05 MB / 0.8277 GB, free: 101.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003843/1.115, allocations: 4.15 MB / 0.8317 GB, free: 97.05 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003534/1.118, allocations: 1.326 MB / 0.833 GB, free: 95.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003426/1.122, allocations: 2.241 MB / 0.8352 GB, free: 93.48 MB / 0.5294 GB Notification: Performance of SimCode: time 1.263e-06/1.122, allocations: 3.938 kB / 0.8352 GB, free: 93.48 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1278/1.25, allocations: 88.44 MB / 0.9216 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/17.43, allocations: 3.984 kB / 0.9216 GB, free: 5.387 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)