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.00115/0.00115, 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.352/1.352, allocations: 222.9 MB / 239.3 MB, free: 4.633 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.001383/0.001383, allocations: 195.9 kB / 289.6 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03522/0.03522, allocations: 8.803 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 75.8 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07896/0.08047, allocations: 51.56 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip3): time 0.02499/0.1055, allocations: 25.42 MB / 488.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.1202, allocations: 8.014 MB / 496.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004234/0.1245, allocations: 175.5 kB / 496.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01411/0.1386, allocations: 6.102 MB / 0.4907 GB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00877/0.1474, allocations: 2.75 MB / 0.4934 GB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004963/0.1524, allocations: 1.615 MB / 0.4949 GB, free: 2.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.1629, allocations: 7.225 MB / 0.502 GB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02216/0.1851, allocations: 13.36 MB / 0.515 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00581/0.191, allocations: 3.724 MB / 0.5187 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006602/0.1976, allocations: 4.244 MB / 0.5228 GB, free: 5.309 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003023/0.2007, allocations: 1.07 MB / 0.5239 GB, free: 4.238 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004309/0.205, allocations: 1.445 MB / 0.5253 GB, free: 2.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003275/0.2083, allocations: 2.143 MB / 0.5274 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2171/0.4254, allocations: 4.111 MB / 0.5314 GB, free: 23.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01753/0.443, allocations: 14.36 MB / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.076e-06/0.4431, allocations: 1.281 kB / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4431, allocations: 0 / 0.5454 GB, free: 21.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005144/0.4436, allocations: 0 / 0.5454 GB, free: 21.95 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.03247/0.4761, allocations: 8.803 MB / 0.554 GB, free: 18.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4762, allocations: 9.281 kB / 0.554 GB, free: 18.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004573/0.4807, allocations: 1.042 MB / 0.555 GB, free: 17.78 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02701/0.5078, allocations: 4.385 MB / 0.5593 GB, free: 16.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009819/0.5176, allocations: 4.516 MB / 0.5637 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003477/0.518, allocations: 490.4 kB / 0.5642 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00242/0.5204, allocations: 0.6289 MB / 0.5648 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02189/0.5423, allocations: 10.36 MB / 0.5749 GB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001629/0.5425, allocations: 18.69 kB / 0.5749 GB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009013/0.5434, allocations: 268.8 kB / 0.5752 GB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/0.5437, allocations: 417.8 kB / 0.5756 GB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01493/0.5587, allocations: 9.861 MB / 0.5852 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0621/0.6208, allocations: 35.69 MB / 0.6201 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02105/0.6419, allocations: 20.65 MB / 0.6402 GB, free: 5.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/0.6465, allocations: 2.307 MB / 0.6425 GB, free: 3.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005274/0.6471, allocations: 225.3 kB / 0.6427 GB, free: 2.781 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.649e-05/0.6472, allocations: 64.89 kB / 0.6428 GB, free: 2.707 MB / 430.1 MB Notification: Performance of pre-optimization done (n=295): time 6.302e-06/0.6472, allocations: 4 kB / 0.6428 GB, free: 2.703 MB / 430.1 MB Notification: Performance of matching and sorting (n=301): time 0.02446/0.6717, allocations: 10.88 MB / 0.6534 GB, free: 7.715 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.6718, allocations: 81.78 kB / 0.6535 GB, free: 7.621 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00577/0.6776, allocations: 3.021 MB / 0.6564 GB, free: 4.582 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004528/0.678, allocations: 73.7 kB / 0.6565 GB, free: 4.504 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00194/0.68, allocations: 2.866 MB / 0.6593 GB, free: 1.621 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/0.6812, allocations: 1.032 MB / 0.6603 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00259/0.6838, allocations: 0.9094 MB / 0.6612 GB, free: 15.68 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.6839, allocations: 309.1 kB / 0.6615 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003369/0.6873, allocations: 2.024 MB / 0.6635 GB, free: 13.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004527/0.6919, allocations: 3.726 MB / 0.6671 GB, free: 8.852 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007955/0.6998, allocations: 6.048 MB / 0.673 GB, free: 2.234 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-05/0.6999, allocations: 16 kB / 0.673 GB, free: 2.219 MB / 462.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01228/0.7122, allocations: 6.623 MB / 0.6795 GB, free: 11.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.316e-05/0.7123, allocations: 30.19 kB / 0.6795 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.755e-05/0.7124, allocations: 59.84 kB / 0.6796 GB, free: 11.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001951/0.7143, allocations: 0.6798 MB / 0.6802 GB, free: 11.14 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004461/0.7188, allocations: 1.063 MB / 0.6813 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.7293, allocations: 6.24 MB / 0.6874 GB, free: 3.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004682/0.734, allocations: 271.5 kB / 0.6876 GB, free: 3.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/0.7351, allocations: 232 kB / 0.6879 GB, free: 3.316 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.005656/0.7407, allocations: 2.317 MB / 0.6901 GB, free: 1.062 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/0.742, allocations: 320 kB / 0.6904 GB, free: 0.7461 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/0.7521, allocations: 4.633 MB / 0.6949 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.981e-05/0.7522, allocations: 32 kB / 0.695 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.137e-05/0.7522, allocations: 4 kB / 0.695 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.052e-05/0.7523, allocations: 15.94 kB / 0.695 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02336/0.7757, allocations: 11.27 MB / 0.706 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/0.7757, allocations: 4 kB / 0.706 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/0.7781, allocations: 0.5283 MB / 0.7065 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2225/1.001, allocations: 0.567 MB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006087/1.001, allocations: 66.58 kB / 0.7071 GB, free: 174.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006876/1.008, allocations: 5.453 MB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/1.008, allocations: 16.39 kB / 0.7125 GB, free: 172.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01115/1.019, allocations: 6.587 MB / 0.7189 GB, free: 172.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/1.021, allocations: 0.7194 MB / 0.7196 GB, free: 171.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005432/1.022, allocations: 56.38 kB / 0.7197 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001614/1.023, allocations: 150.8 kB / 0.7198 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000478/1.024, allocations: 206.6 kB / 0.72 GB, free: 171.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/1.024, allocations: 89.97 kB / 0.7201 GB, free: 171.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002915/1.027, allocations: 2.016 MB / 0.7221 GB, free: 170.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.027, allocations: 2.297 kB / 0.7221 GB, free: 170.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004069/1.031, allocations: 1.176 MB / 0.7232 GB, free: 170.8 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.008076/1.039, allocations: 7.268 MB / 0.7303 GB, free: 167.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0156/1.055, allocations: 8.286 MB / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/1.055, allocations: 0 / 0.7384 GB, free: 164.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003061/1.058, allocations: 2.272 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.003265/1.061, allocations: 0.6449 MB / 0.7413 GB, free: 162 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05478/1.116, 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.005499/1.121, allocations: 4.147 MB / 0.7888 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004168/1.126, allocations: 1.329 MB / 0.7901 GB, free: 111.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00312/1.129, allocations: 2.249 MB / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of SimCode: time 8.91e-07/1.129, allocations: 0 / 0.7923 GB, free: 109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1205/1.249, allocations: 90.04 MB / 0.8802 GB, free: 19.26 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/12.47, allocations: 3.938 kB / 0.8802 GB, free: 19.26 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)