Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",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.0009891/0.0009891, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.304/1.304, allocations: 222.9 MB / 239 MB, free: 4.754 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.001347/0.001347, allocations: 200.4 kB / 289.3 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03468/0.03468, allocations: 8.795 MB / 348.2 MB, free: 4.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 76.75 kB / 410.7 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07833/0.07982, allocations: 51.56 MB / 462.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02528/0.1051, allocations: 27.16 MB / 489.4 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01453/0.1197, allocations: 7.909 MB / 497.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005275/0.125, allocations: 199.4 kB / 497.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01658/0.1417, allocations: 7.492 MB / 0.4932 GB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007707/0.1494, allocations: 2.455 MB / 0.4956 GB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004725/0.1542, allocations: 1.682 MB / 0.4972 GB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.165, allocations: 9.639 MB / 0.5066 GB, free: 5.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2017/0.3667, allocations: 24.5 MB / 0.5306 GB, free: 18.6 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007041/0.3738, allocations: 5.292 MB / 0.5357 GB, free: 18.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009686/0.3835, allocations: 5.993 MB / 0.5416 GB, free: 17.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005394/0.3889, allocations: 1.518 MB / 0.5431 GB, free: 17.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006877/0.3958, allocations: 1.89 MB / 0.5449 GB, free: 17.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00464/0.4005, allocations: 2.938 MB / 0.5478 GB, free: 17.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008991/0.4095, allocations: 5.73 MB / 0.5534 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01621/0.4257, allocations: 20.17 MB / 0.5731 GB, free: 6.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4258, allocations: 0 / 0.5731 GB, free: 6.551 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4258, allocations: 4 kB / 0.5731 GB, free: 6.547 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004492/0.4263, allocations: 0 / 0.5731 GB, free: 6.547 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03367/0.4599, allocations: 11.63 MB / 0.5844 GB, free: 15.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.46, allocations: 11.62 kB / 0.5844 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005429/0.4654, allocations: 1.32 MB / 0.5857 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03095/0.4964, allocations: 5.565 MB / 0.5912 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.5078, allocations: 6.01 MB / 0.597 GB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006144/0.5084, allocations: 0.6983 MB / 0.5977 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003444/0.5119, allocations: 0.904 MB / 0.5986 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03565/0.5476, allocations: 14.86 MB / 0.6131 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003139/0.5479, allocations: 23.17 kB / 0.6131 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002413/0.5503, allocations: 385.5 kB / 0.6135 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004915/0.5508, allocations: 0.5098 MB / 0.614 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02786/0.5787, allocations: 13.56 MB / 0.6272 GB, free: 4.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07882/0.6576, allocations: 46.59 MB / 0.6727 GB, free: 5.582 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02644/0.6841, allocations: 28.3 MB / 0.7004 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007441/0.6916, allocations: 3.022 MB / 0.7033 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006403/0.6922, allocations: 238.2 kB / 0.7036 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001048/0.6924, allocations: 73.52 kB / 0.7036 GB, free: 2.227 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 1.305e-05/0.6924, allocations: 7.984 kB / 0.7036 GB, free: 2.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2026/0.895, allocations: 14.56 MB / 0.7179 GB, free: 160.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.8951, allocations: 92.53 kB / 0.718 GB, free: 160.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005045/0.9002, allocations: 3.48 MB / 0.7214 GB, free: 160.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004564/0.9007, allocations: 84.83 kB / 0.7214 GB, free: 160.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001963/0.9026, allocations: 3.948 MB / 0.7253 GB, free: 158 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/0.9037, allocations: 1.311 MB / 0.7266 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/0.9054, allocations: 1.143 MB / 0.7277 GB, free: 157.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.649e-05/0.9054, allocations: 305.7 kB / 0.728 GB, free: 156.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003049/0.9085, allocations: 2.55 MB / 0.7305 GB, free: 156.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003915/0.9124, allocations: 5.006 MB / 0.7354 GB, free: 152.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008122/0.9205, allocations: 8.208 MB / 0.7434 GB, free: 147.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.227e-05/0.9206, allocations: 21.59 kB / 0.7434 GB, free: 147.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01224/0.9329, allocations: 8.487 MB / 0.7517 GB, free: 143.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.612e-05/0.9329, allocations: 39.94 kB / 0.7517 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.59e-05/0.933, allocations: 80.38 kB / 0.7518 GB, free: 143.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/0.9351, allocations: 0.8389 MB / 0.7526 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004381/0.9395, allocations: 1.346 MB / 0.7539 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008768/0.9482, allocations: 7.597 MB / 0.7613 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004192/0.9525, allocations: 328 kB / 0.7617 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008008/0.9533, allocations: 299.7 kB / 0.7619 GB, free: 138.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004956/0.9583, allocations: 3.482 MB / 0.7653 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008988/0.9592, allocations: 387 kB / 0.7657 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008062/0.9672, allocations: 5.844 MB / 0.7714 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.183e-05/0.9673, allocations: 40 kB / 0.7715 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.9673, allocations: 4 kB / 0.7715 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-05/0.9673, allocations: 27.45 kB / 0.7715 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0216/0.9889, allocations: 14.78 MB / 0.7859 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.989, allocations: 4 kB / 0.7859 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00237/0.9914, allocations: 0.6707 MB / 0.7866 GB, free: 114.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/0.9931, allocations: 0.6986 MB / 0.7873 GB, free: 114 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002403/0.9933, allocations: 83.97 kB / 0.7873 GB, free: 113.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006841/1, allocations: 6.636 MB / 0.7938 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1, allocations: 11.94 kB / 0.7938 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009874/1.01, allocations: 8.531 MB / 0.8022 GB, free: 98.49 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.012, allocations: 0.8553 MB / 0.803 GB, free: 97.61 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005832/1.012, allocations: 74.44 kB / 0.8031 GB, free: 97.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001772/1.014, allocations: 179.8 kB / 0.8032 GB, free: 97.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/1.015, allocations: 258.7 kB / 0.8035 GB, free: 97.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001993/1.015, allocations: 111.9 kB / 0.8036 GB, free: 97 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003006/1.018, allocations: 2.334 MB / 0.8059 GB, free: 94.68 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.018, allocations: 3.938 kB / 0.8059 GB, free: 94.67 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005534/1.023, allocations: 1.511 MB / 0.8074 GB, free: 93.16 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * 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,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01055/1.034, allocations: 9.235 MB / 0.8164 GB, free: 83.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02266/1.057, allocations: 12.56 MB / 0.8286 GB, free: 71.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/1.057, allocations: 0 / 0.8286 GB, free: 71.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/1.06, allocations: 2.873 MB / 0.8314 GB, free: 68.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004127/1.065, allocations: 0.9077 MB / 0.8323 GB, free: 67.53 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2517/1.316, allocations: 62.68 MB / 0.8935 GB, free: 159.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009181/1.325, allocations: 5.894 MB / 0.8993 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005151/1.331, allocations: 1.854 MB / 0.9011 GB, free: 158.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004786/1.335, allocations: 3.084 MB / 0.9041 GB, free: 158.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.336, allocations: 3.938 kB / 0.9041 GB, free: 158.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.142/1.477, allocations: 117 MB / 1.018 GB, free: 56.44 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001307/1.478, allocations: 208.4 kB / 1.019 GB, free: 56.19 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.931/5.408, allocations: 3.938 kB / 1.019 GB, free: 56.19 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)