Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.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_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3",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.001113/0.001113, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.297/1.297, allocations: 222.9 MB / 239 MB, free: 4.707 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.001188/0.001188, allocations: 192.5 kB / 289.3 MB, free: 2.453 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03384/0.03384, allocations: 8.794 MB / 348.2 MB, free: 4.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 83.16 kB / 410.7 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0868/0.08828, allocations: 51.56 MB / 462.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.0253/0.1136, allocations: 24.99 MB / 487.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.1289, allocations: 7.905 MB / 495.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004335/0.1333, allocations: 167.5 kB / 495.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01296/0.1463, allocations: 5.767 MB / 0.4893 GB, free: 7.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007823/0.1541, allocations: 2.494 MB / 0.4918 GB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004749/0.1589, allocations: 1.505 MB / 0.4932 GB, free: 3.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00959/0.1685, allocations: 7.261 MB / 0.5003 GB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02531/0.1938, allocations: 15.27 MB / 0.5153 GB, free: 13.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007088/0.201, allocations: 3.763 MB / 0.5189 GB, free: 9.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008494/0.2095, allocations: 4.29 MB / 0.5231 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004012/0.2136, allocations: 1.07 MB / 0.5242 GB, free: 3.934 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004891/0.2185, allocations: 1.449 MB / 0.5256 GB, free: 2.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003287/0.2218, allocations: 2.143 MB / 0.5277 GB, free: 344 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2013/0.4231, allocations: 4.11 MB / 0.5317 GB, free: 24.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.437, allocations: 14.36 MB / 0.5457 GB, free: 22.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.4371, allocations: 1.094 kB / 0.5457 GB, free: 22.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4371, allocations: 0 / 0.5457 GB, free: 22.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004755/0.4376, allocations: 0 / 0.5457 GB, free: 22.88 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.02829/0.4659, allocations: 8.799 MB / 0.5543 GB, free: 18.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.4659, allocations: 13.75 kB / 0.5543 GB, free: 18.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00354/0.4695, allocations: 1.048 MB / 0.5553 GB, free: 18.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02534/0.4948, allocations: 4.381 MB / 0.5596 GB, free: 17.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01008/0.5049, allocations: 4.506 MB / 0.564 GB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003245/0.5053, allocations: 491.8 kB / 0.5645 GB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001937/0.5072, allocations: 0.6304 MB / 0.5651 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/0.5247, allocations: 10.36 MB / 0.5752 GB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/0.5249, allocations: 11.53 kB / 0.5752 GB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007177/0.5256, allocations: 266.2 kB / 0.5755 GB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002834/0.5259, allocations: 419.1 kB / 0.5759 GB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.5416, allocations: 9.859 MB / 0.5855 GB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05984/0.6015, allocations: 35.69 MB / 0.6204 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01787/0.6194, allocations: 20.66 MB / 0.6405 GB, free: 6.207 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003767/0.6232, allocations: 2.312 MB / 0.6428 GB, free: 3.895 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003501/0.6236, allocations: 226.3 kB / 0.643 GB, free: 3.645 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.418e-05/0.6236, allocations: 68.27 kB / 0.6431 GB, free: 3.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 4.258e-06/0.6236, allocations: 0 / 0.6431 GB, free: 3.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02097/0.6446, allocations: 10.87 MB / 0.6537 GB, free: 8.586 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.6447, allocations: 81.78 kB / 0.6538 GB, free: 8.492 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004276/0.649, allocations: 3.021 MB / 0.6567 GB, free: 5.453 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.6492, allocations: 73.7 kB / 0.6568 GB, free: 5.375 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.6509, allocations: 2.87 MB / 0.6596 GB, free: 2.484 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008072/0.6517, allocations: 1.036 MB / 0.6606 GB, free: 1.457 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001343/0.653, allocations: 0.9055 MB / 0.6615 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.6532, allocations: 305.1 kB / 0.6618 GB, free: 244 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002973/0.6561, allocations: 2.025 MB / 0.6638 GB, free: 14.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004244/0.6604, allocations: 3.722 MB / 0.6674 GB, free: 9.727 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007151/0.6676, allocations: 6.044 MB / 0.6733 GB, free: 3.109 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.158e-05/0.6676, allocations: 16 kB / 0.6733 GB, free: 3.094 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01013/0.6777, allocations: 6.634 MB / 0.6798 GB, free: 12.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.6778, allocations: 30.09 kB / 0.6798 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.325e-05/0.6779, allocations: 60 kB / 0.6799 GB, free: 12.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.6796, allocations: 0.6796 MB / 0.6805 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003422/0.6831, allocations: 1.061 MB / 0.6816 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008394/0.6915, allocations: 6.23 MB / 0.6877 GB, free: 4.688 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003277/0.6948, allocations: 279.5 kB / 0.6879 GB, free: 4.414 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003705/0.6952, allocations: 232 kB / 0.6881 GB, free: 4.188 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.003596/0.6988, allocations: 2.313 MB / 0.6904 GB, free: 1.941 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005865/0.6994, allocations: 320.1 kB / 0.6907 GB, free: 1.625 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007177/0.7065, allocations: 4.635 MB / 0.6952 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/0.7066, allocations: 32 kB / 0.6953 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.7066, allocations: 12 kB / 0.6953 GB, free: 12.92 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.542e-05/0.7066, allocations: 11.95 kB / 0.6953 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/0.7236, allocations: 11.26 MB / 0.7063 GB, free: 1.535 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.7236, allocations: 4 kB / 0.7063 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002153/0.7258, allocations: 0.5361 MB / 0.7068 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/0.7273, allocations: 0.5724 MB / 0.7074 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/0.7275, allocations: 71.98 kB / 0.7074 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1969/0.9245, allocations: 5.45 MB / 0.7128 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.9245, allocations: 9.562 kB / 0.7128 GB, free: 173.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009737/0.9342, allocations: 6.582 MB / 0.7192 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001714/0.936, allocations: 0.722 MB / 0.7199 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004832/0.9365, allocations: 60.25 kB / 0.72 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/0.9381, allocations: 151 kB / 0.7201 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004865/0.9386, allocations: 210.1 kB / 0.7203 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/0.9388, allocations: 87.94 kB / 0.7204 GB, free: 172.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002654/0.9414, allocations: 2.022 MB / 0.7224 GB, free: 171.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9415, allocations: 0 / 0.7224 GB, free: 171.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003625/0.9451, allocations: 1.168 MB / 0.7235 GB, free: 171.4 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.008093/0.9532, allocations: 7.263 MB / 0.7306 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01556/0.9688, allocations: 8.295 MB / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.9688, allocations: 0 / 0.7387 GB, free: 165.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002965/0.9718, allocations: 2.269 MB / 0.7409 GB, free: 163.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003235/0.975, allocations: 0.6434 MB / 0.7415 GB, free: 162.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06885/1.044, allocations: 47.12 MB / 0.7876 GB, free: 114.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003193/1.047, allocations: 4.149 MB / 0.7916 GB, free: 110.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0035/1.051, allocations: 1.326 MB / 0.7929 GB, free: 109.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/1.053, allocations: 2.241 MB / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/1.053, allocations: 0 / 0.7951 GB, free: 107.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6856/1.739, allocations: 89.97 MB / 0.883 GB, free: 17.49 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/1.739, allocations: 218.1 kB / 0.8832 GB, free: 17.23 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.8/5.539, allocations: 3.938 kB / 0.8832 GB, free: 17.23 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip3.pipe 2>&1)