Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",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.00145/0.00145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 239.2 MB, free: 4.605 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.001562/0.001562, allocations: 192.4 kB / 289.6 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03434/0.03434, allocations: 8.787 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003247/0.003248, allocations: 76.86 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1391, allocations: 51.57 MB / 462.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02905/0.1682, allocations: 25.41 MB / 488.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.019/0.1872, allocations: 8.014 MB / 496.2 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005331/0.1926, allocations: 175.5 kB / 496.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01492/0.2075, allocations: 6.106 MB / 0.4907 GB, free: 6.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009391/0.2169, allocations: 2.744 MB / 0.4934 GB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005208/0.2222, allocations: 1.618 MB / 0.4949 GB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.2332, allocations: 7.231 MB / 0.502 GB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0223/0.2555, allocations: 13.35 MB / 0.515 GB, free: 13.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005644/0.2612, allocations: 3.724 MB / 0.5187 GB, free: 9.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006659/0.2679, allocations: 4.244 MB / 0.5228 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002961/0.2709, allocations: 1.074 MB / 0.5239 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004409/0.2753, allocations: 1.441 MB / 0.5253 GB, free: 2.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003407/0.2787, allocations: 2.139 MB / 0.5274 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.207/0.4857, allocations: 4.117 MB / 0.5314 GB, free: 23.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01802/0.5038, allocations: 14.36 MB / 0.5454 GB, free: 21.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.5038, allocations: 2.438 kB / 0.5454 GB, free: 21.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5038, allocations: 1.938 kB / 0.5454 GB, free: 21.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004765/0.5043, allocations: 0 / 0.5454 GB, free: 21.89 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.02795/0.5323, allocations: 8.808 MB / 0.554 GB, free: 17.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.5323, allocations: 10.47 kB / 0.554 GB, free: 17.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004026/0.5364, allocations: 1.042 MB / 0.555 GB, free: 17.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02624/0.5626, allocations: 4.386 MB / 0.5593 GB, free: 16.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.5735, allocations: 4.506 MB / 0.5637 GB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003894/0.5739, allocations: 493.9 kB / 0.5642 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002457/0.5764, allocations: 0.6261 MB / 0.5648 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02416/0.6005, allocations: 10.36 MB / 0.5749 GB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000205/0.6008, allocations: 11.75 kB / 0.5749 GB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00145/0.6023, allocations: 269 kB / 0.5752 GB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000368/0.6026, allocations: 413.7 kB / 0.5756 GB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.6241, allocations: 9.868 MB / 0.5852 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06854/0.6927, allocations: 35.69 MB / 0.6201 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02165/0.7144, allocations: 20.66 MB / 0.6403 GB, free: 5.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004622/0.7191, allocations: 2.303 MB / 0.6425 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004795/0.7196, allocations: 228.1 kB / 0.6427 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.701e-05/0.7197, allocations: 60.89 kB / 0.6428 GB, free: 2.691 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 5.61e-06/0.7197, allocations: 0 / 0.6428 GB, free: 2.691 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.0263/0.746, allocations: 10.87 MB / 0.6534 GB, free: 7.711 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.7461, allocations: 85.78 kB / 0.6535 GB, free: 7.613 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007327/0.7535, allocations: 3.025 MB / 0.6564 GB, free: 4.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006607/0.7541, allocations: 69.7 kB / 0.6565 GB, free: 4.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002899/0.7571, allocations: 2.862 MB / 0.6593 GB, free: 1.617 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001596/0.7587, allocations: 1.042 MB / 0.6603 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002801/0.7615, allocations: 0.9055 MB / 0.6612 GB, free: 15.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.62e-05/0.7616, allocations: 305.1 kB / 0.6615 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003687/0.7653, allocations: 2.035 MB / 0.6635 GB, free: 13.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005038/0.7704, allocations: 3.721 MB / 0.6671 GB, free: 8.844 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00885/0.7793, allocations: 6.048 MB / 0.673 GB, free: 2.227 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.333e-05/0.7793, allocations: 20 kB / 0.673 GB, free: 2.207 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01398/0.7933, allocations: 6.627 MB / 0.6795 GB, free: 11.89 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.7935, allocations: 31.98 kB / 0.6795 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.7936, allocations: 56 kB / 0.6796 GB, free: 11.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/0.7956, allocations: 0.6755 MB / 0.6802 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00437/0.8, allocations: 1.069 MB / 0.6813 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009134/0.8092, allocations: 6.223 MB / 0.6874 GB, free: 3.805 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004627/0.8138, allocations: 283.5 kB / 0.6876 GB, free: 3.527 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009707/0.8148, allocations: 228 kB / 0.6879 GB, free: 3.305 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.005279/0.8201, allocations: 2.313 MB / 0.6901 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/0.8212, allocations: 320.1 kB / 0.6904 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009129/0.8304, allocations: 4.639 MB / 0.695 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/0.8304, allocations: 32 kB / 0.695 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.634e-05/0.8305, allocations: 11.56 kB / 0.695 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/0.8305, allocations: 15.94 kB / 0.695 GB, free: 12.01 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02247/0.853, allocations: 11.25 MB / 0.706 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.853, allocations: 4.625 kB / 0.706 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/0.8553, allocations: 0.5391 MB / 0.7065 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1867/1.042, allocations: 0.5643 MB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005694/1.043, allocations: 67.36 kB / 0.7071 GB, free: 174 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006872/1.05, allocations: 5.457 MB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/1.05, allocations: 9.906 kB / 0.7125 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01177/1.061, allocations: 6.582 MB / 0.7189 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002072/1.063, allocations: 0.7214 MB / 0.7196 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001103/1.065, allocations: 65.17 kB / 0.7197 GB, free: 171.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/1.067, allocations: 148 kB / 0.7198 GB, free: 171.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004475/1.067, allocations: 207.5 kB / 0.72 GB, free: 171.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/1.067, allocations: 90.03 kB / 0.7201 GB, free: 171.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003427/1.071, allocations: 2.016 MB / 0.7221 GB, free: 170.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.071, allocations: 2.297 kB / 0.7221 GB, free: 170.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004382/1.075, allocations: 1.175 MB / 0.7232 GB, free: 170.6 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.00829/1.084, allocations: 7.253 MB / 0.7303 GB, free: 167.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01624/1.1, allocations: 8.297 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.1, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003368/1.103, allocations: 2.27 MB / 0.7406 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003514/1.107, allocations: 0.6398 MB / 0.7412 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05193/1.159, allocations: 44.51 MB / 0.7847 GB, free: 116.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003774/1.163, allocations: 4.16 MB / 0.7888 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003886/1.167, allocations: 1.327 MB / 0.7901 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003475/1.17, allocations: 2.245 MB / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 1.092e-06/1.17, allocations: 0 / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1261/1.296, allocations: 90.03 MB / 0.8802 GB, free: 19.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/12.35, allocations: 17.66 kB / 0.8802 GB, free: 19.26 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1)