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.007355/0.007355, allocations: 102.2 kB / 15.73 MB, free: 6.469 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.456/1.456, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001381/0.001381, allocations: 192.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03587/0.03587, allocations: 8.794 MB / 348.7 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 83.88 kB / 463.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09945/0.101, allocations: 51.56 MB / 0.503 GB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02519/0.1263, allocations: 25.42 MB / 0.5278 GB, free: 432 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2233/0.3496, allocations: 7.999 MB / 0.5356 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005241/0.3549, allocations: 173.7 kB / 0.5358 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01415/0.3691, allocations: 6.106 MB / 0.5417 GB, free: 3.816 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009855/0.379, allocations: 2.745 MB / 0.5444 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.3841, allocations: 1.618 MB / 0.546 GB, free: 2.895 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.3958, allocations: 7.274 MB / 0.5531 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02147/0.4173, allocations: 13.35 MB / 0.5661 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00599/0.4233, allocations: 3.748 MB / 0.5698 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006664/0.43, allocations: 4.222 MB / 0.5739 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002451/0.4325, allocations: 1.074 MB / 0.575 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004328/0.4368, allocations: 1.433 MB / 0.5764 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002799/0.4396, allocations: 2.145 MB / 0.5785 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007142/0.4468, allocations: 4.111 MB / 0.5825 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01459/0.4614, allocations: 14.44 MB / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4615, allocations: 0 / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4615, allocations: 0 / 0.5966 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002788/0.4618, allocations: 0 / 0.5966 GB, free: 14.91 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.02312/0.4849, allocations: 8.77 MB / 0.6051 GB, free: 6.125 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4849, allocations: 12.02 kB / 0.6051 GB, free: 6.113 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002599/0.4875, allocations: 1.043 MB / 0.6062 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02485/0.5124, allocations: 4.405 MB / 0.6105 GB, free: 0.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009858/0.5223, allocations: 4.621 MB / 0.615 GB, free: 12.06 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004497/0.5228, allocations: 493.2 kB / 0.6155 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002062/0.5248, allocations: 0.6213 MB / 0.6161 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.548, allocations: 10.36 MB / 0.6262 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002372/0.5483, allocations: 15.89 kB / 0.6262 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001321/0.5496, allocations: 272 kB / 0.6264 GB, free: 300 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004311/0.5501, allocations: 417.7 kB / 0.6268 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.5684, allocations: 9.868 MB / 0.6365 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05812/0.6265, allocations: 35.3 MB / 0.671 GB, free: 1.691 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/0.6486, allocations: 20.67 MB / 0.6911 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004159/0.6528, allocations: 2.3 MB / 0.6934 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004481/0.6533, allocations: 226.9 kB / 0.6936 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.882e-05/0.6534, allocations: 64.89 kB / 0.6937 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=295): time 4.859e-06/0.6534, allocations: 0 / 0.6937 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of matching and sorting (n=301): time 0.02408/0.6775, allocations: 10.88 MB / 0.7043 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.6776, allocations: 85.78 kB / 0.7044 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005962/0.6836, allocations: 3.017 MB / 0.7073 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000357/0.684, allocations: 73.69 kB / 0.7074 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002173/0.6862, allocations: 2.871 MB / 0.7102 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001151/0.6873, allocations: 1.035 MB / 0.7112 GB, free: 5.617 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001911/0.6893, allocations: 0.9094 MB / 0.7121 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.6894, allocations: 301.1 kB / 0.7124 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003433/0.6928, allocations: 2.027 MB / 0.7144 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004796/0.6976, allocations: 3.724 MB / 0.718 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008757/0.7064, allocations: 6.055 MB / 0.7239 GB, free: 6.992 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.927e-05/0.7065, allocations: 19.94 kB / 0.7239 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01325/0.7198, allocations: 6.622 MB / 0.7304 GB, free: 316 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.516e-05/0.7199, allocations: 37.72 kB / 0.7304 GB, free: 280 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.72, allocations: 56 kB / 0.7305 GB, free: 224 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2363/0.9563, allocations: 0.6677 MB / 0.7311 GB, free: 167 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004038/0.9604, allocations: 1.065 MB / 0.7322 GB, free: 167 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00882/0.9693, allocations: 6.214 MB / 0.7382 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003834/0.9731, allocations: 280.5 kB / 0.7385 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000962/0.9741, allocations: 229.7 kB / 0.7387 GB, free: 165.4 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.004464/0.9786, allocations: 2.31 MB / 0.741 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009482/0.9796, allocations: 326 kB / 0.7413 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009512/0.9891, allocations: 4.632 MB / 0.7458 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.375e-05/0.9891, allocations: 29.88 kB / 0.7458 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.553e-05/0.9892, allocations: 6.344 kB / 0.7459 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.383e-05/0.9892, allocations: 15.61 kB / 0.7459 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02473/1.014, allocations: 11.09 MB / 0.7567 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.794e-05/1.014, allocations: 6.75 kB / 0.7567 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00237/1.016, allocations: 0.5311 MB / 0.7572 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00173/1.018, allocations: 0.5693 MB / 0.7578 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003521/1.019, allocations: 71.12 kB / 0.7578 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007022/1.026, allocations: 5.449 MB / 0.7632 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/1.026, allocations: 15.78 kB / 0.7632 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/1.036, allocations: 6.588 MB / 0.7696 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001885/1.038, allocations: 0.7191 MB / 0.7703 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008417/1.039, allocations: 59.19 kB / 0.7704 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/1.041, allocations: 151 kB / 0.7705 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004147/1.041, allocations: 206.4 kB / 0.7707 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/1.042, allocations: 89.81 kB / 0.7708 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003609/1.045, allocations: 2.018 MB / 0.7728 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.41e-07/1.045, allocations: 0 / 0.7728 GB, free: 152.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005509/1.051, allocations: 1.172 MB / 0.7739 GB, free: 152.5 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.01017/1.061, allocations: 7.267 MB / 0.781 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009083/1.07, allocations: 5.035 MB / 0.7859 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.07, allocations: 8.125 kB / 0.7859 GB, free: 145.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0036/1.074, allocations: 2.266 MB / 0.7882 GB, free: 143.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/1.078, allocations: 0.6496 MB / 0.7888 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06158/1.14, allocations: 38.86 MB / 0.8267 GB, free: 101.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005743/1.145, allocations: 4.15 MB / 0.8308 GB, free: 97.71 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003979/1.149, allocations: 1.318 MB / 0.8321 GB, free: 96.39 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003428/1.153, allocations: 2.249 MB / 0.8343 GB, free: 94.14 MB / 0.5294 GB Notification: Performance of SimCode: time 1.563e-06/1.153, allocations: 0 / 0.8343 GB, free: 94.14 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1358/1.289, allocations: 88.92 MB / 0.9211 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.48/18.77, allocations: 3.984 kB / 0.9211 GB, free: 5.57 MB / 0.5294 GB (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)