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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.00091/0.0009102, 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.315/1.315, allocations: 223.2 MB / 238.9 MB, free: 5.664 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.00113/0.00113, allocations: 180 kB / 290.2 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0324/0.0324, allocations: 8.78 MB / 350 MB, free: 4.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003584/0.0003584, allocations: 12.19 kB / 413.2 MB, free: 43.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0961/0.09647, allocations: 52.56 MB / 465.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02149/0.118, allocations: 20.4 MB / 486.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01502/0.1331, allocations: 7.595 MB / 493.7 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004493/0.1376, allocations: 147.6 kB / 493.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00693/0.1446, allocations: 1.516 MB / 495.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009953/0.1546, allocations: 2.717 MB / 498.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004282/0.1589, allocations: 1.248 MB / 499.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01114/0.17, allocations: 6.238 MB / 0.4937 GB, free: 5.578 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01962/0.1897, allocations: 10.97 MB / 0.5045 GB, free: 10.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004213/0.1939, allocations: 2.562 MB / 0.507 GB, free: 7.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004598/0.1986, allocations: 2.872 MB / 0.5098 GB, free: 5.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001779/0.2004, allocations: 427.9 kB / 0.5102 GB, free: 4.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004182/0.2046, allocations: 0.7222 MB / 0.5109 GB, free: 3.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002559/0.2072, allocations: 1.308 MB / 0.5122 GB, free: 2.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003008/0.2102, allocations: 1.385 MB / 0.5135 GB, free: 1.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0154/0.2256, allocations: 12.08 MB / 0.5253 GB, free: 5.094 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2257, allocations: 0 / 0.5253 GB, free: 5.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.2257, allocations: 0 / 0.5253 GB, free: 5.094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004945/0.2262, allocations: 0 / 0.5253 GB, free: 5.094 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.217/0.4432, allocations: 7.397 MB / 0.5325 GB, free: 57.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.4433, allocations: 10.09 kB / 0.5325 GB, free: 57.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003375/0.4467, allocations: 1.047 MB / 0.5336 GB, free: 57.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02515/0.4718, allocations: 4.301 MB / 0.5378 GB, free: 57.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01138/0.4833, allocations: 4.432 MB / 0.5421 GB, free: 56.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005754/0.4839, allocations: 486.9 kB / 0.5426 GB, free: 56.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/0.4865, allocations: 0.6301 MB / 0.5432 GB, free: 56.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02189/0.5084, allocations: 10.26 MB / 0.5532 GB, free: 51.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001869/0.5087, allocations: 11.81 kB / 0.5532 GB, free: 51.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001154/0.5098, allocations: 268.9 kB / 0.5535 GB, free: 51.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003582/0.5102, allocations: 423 kB / 0.5539 GB, free: 50.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01725/0.5274, allocations: 9.824 MB / 0.5634 GB, free: 43.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05006/0.5775, allocations: 35.76 MB / 0.5984 GB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/0.5951, allocations: 20.63 MB / 0.6185 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005137/0.5957, allocations: 228.9 kB / 0.6187 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.5957, allocations: 60.89 kB / 0.6188 GB, free: 15.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=295): time 4.98e-06/0.5958, allocations: 0 / 0.6188 GB, free: 15.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=301): time 0.021/0.6168, allocations: 10.83 MB / 0.6294 GB, free: 4.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.6169, allocations: 81.78 kB / 0.6294 GB, free: 4.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004668/0.6215, allocations: 2.99 MB / 0.6324 GB, free: 1.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004987/0.6221, allocations: 77.7 kB / 0.6324 GB, free: 1.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/0.6239, allocations: 2.867 MB / 0.6352 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/0.6251, allocations: 1.039 MB / 0.6362 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.6253, allocations: 88 kB / 0.6363 GB, free: 13.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002964/0.6256, allocations: 0.4922 MB / 0.6368 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/0.6286, allocations: 2.02 MB / 0.6388 GB, free: 10.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003864/0.6325, allocations: 3.705 MB / 0.6424 GB, free: 6.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003823/0.6363, allocations: 2.828 MB / 0.6452 GB, free: 3.258 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-05/0.6364, allocations: 16 kB / 0.6452 GB, free: 3.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01081/0.6472, allocations: 6.616 MB / 0.6516 GB, free: 12.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/0.6473, allocations: 28 kB / 0.6517 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.393e-05/0.6474, allocations: 55.95 kB / 0.6517 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00179/0.6492, allocations: 0.6663 MB / 0.6524 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00416/0.6533, allocations: 1.076 MB / 0.6534 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008002/0.6614, allocations: 5.862 MB / 0.6591 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/0.665, allocations: 275.4 kB / 0.6594 GB, free: 4.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005806/0.6656, allocations: 228 kB / 0.6596 GB, free: 4.273 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.004116/0.6697, allocations: 2.323 MB / 0.6619 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/0.6704, allocations: 320 kB / 0.6622 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007766/0.6781, allocations: 4.649 MB / 0.6667 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-05/0.6782, allocations: 35.94 kB / 0.6668 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.6782, allocations: 7.953 kB / 0.6668 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.471e-05/0.6783, allocations: 23.92 kB / 0.6668 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01909/0.6974, allocations: 11 MB / 0.6776 GB, free: 1.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.6974, allocations: 4 kB / 0.6776 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/0.6995, allocations: 0.5382 MB / 0.6781 GB, free: 1.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.7011, allocations: 0.5715 MB / 0.6786 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/0.7013, allocations: 71.92 kB / 0.6787 GB, free: 472 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006969/0.7083, allocations: 5.21 MB / 0.6838 GB, free: 11.12 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.7083, allocations: 11.92 kB / 0.6838 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.7183, allocations: 7.019 MB / 0.6907 GB, free: 3.75 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/0.7202, allocations: 0.7507 MB / 0.6914 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004759/0.7207, allocations: 67.94 kB / 0.6915 GB, free: 2.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/0.7222, allocations: 139.9 kB / 0.6916 GB, free: 2.773 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003539/0.7226, allocations: 210.1 kB / 0.6918 GB, free: 2.566 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001667/0.7227, allocations: 83.98 kB / 0.6919 GB, free: 2.484 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002974/0.7257, allocations: 1.993 MB / 0.6938 GB, free: 500 kB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7257, allocations: 0 / 0.6938 GB, free: 500 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.004369/0.7301, allocations: 1.175 MB / 0.695 GB, free: 15.31 MB / 478.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.01092/0.741, allocations: 8.741 MB / 0.7035 GB, free: 6.344 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008494/0.7496, allocations: 5.018 MB / 0.7084 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7496, allocations: 0 / 0.7084 GB, free: 1.301 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1928/0.9425, allocations: 2.236 MB / 0.7106 GB, free: 159.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.9456, allocations: 0.5681 MB / 0.7111 GB, free: 159.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07564/1.021, allocations: 69.38 MB / 0.7789 GB, free: 108.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004363/1.026, allocations: 4.256 MB / 0.7831 GB, free: 106.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003857/1.03, allocations: 1.322 MB / 0.7843 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003014/1.033, allocations: 2.247 MB / 0.7865 GB, free: 103.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.914e-06/1.033, allocations: 0 / 0.7865 GB, free: 103.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/1.149, allocations: 85.75 MB / 0.8703 GB, free: 19.64 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002168/1.149, allocations: 189.7 kB / 0.8705 GB, free: 19.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.793/4.942, allocations: 0 / 0.8705 GB, free: 19.4 MB / 478.1 MB (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/linux/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) Environment - environmentSimulation: