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.001115/0.001115, 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.405/1.405, allocations: 222.9 MB / 239.3 MB, free: 4.57 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.00158/0.001579, allocations: 196.5 kB / 289.6 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0522/0.0522, allocations: 8.79 MB / 348.5 MB, free: 4.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 78.66 kB / 411.2 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08412/0.08605, allocations: 51.57 MB / 462.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02787/0.114, allocations: 27.64 MB / 490.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01561/0.1296, allocations: 8.03 MB / 498.4 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004807/0.1344, allocations: 207.4 kB / 498.6 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01758/0.152, allocations: 7.92 MB / 0.4947 GB, free: 2.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009359/0.1614, allocations: 2.701 MB / 0.4973 GB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005514/0.1669, allocations: 1.823 MB / 0.4991 GB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01204/0.179, allocations: 9.612 MB / 0.5085 GB, free: 4.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2447/0.4238, allocations: 21.26 MB / 0.5292 GB, free: 16.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007946/0.4317, allocations: 5.233 MB / 0.5344 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008972/0.4407, allocations: 5.944 MB / 0.5402 GB, free: 14.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004269/0.445, allocations: 1.518 MB / 0.5416 GB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005756/0.4508, allocations: 1.886 MB / 0.5435 GB, free: 14.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003635/0.4544, allocations: 2.944 MB / 0.5464 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009343/0.4638, allocations: 5.732 MB / 0.552 GB, free: 13.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01362/0.4774, allocations: 20.16 MB / 0.5716 GB, free: 4.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.4775, allocations: 4 kB / 0.5716 GB, free: 4.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4775, allocations: 3 kB / 0.5717 GB, free: 4.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004188/0.4779, allocations: 0 / 0.5717 GB, free: 4.391 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.02981/0.5077, allocations: 11.62 MB / 0.583 GB, free: 13.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.5078, allocations: 9.969 kB / 0.583 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003125/0.5109, allocations: 1.32 MB / 0.5843 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03087/0.5418, allocations: 5.573 MB / 0.5897 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.5549, allocations: 6.008 MB / 0.5956 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001029/0.556, allocations: 0.6912 MB / 0.5963 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004693/0.5607, allocations: 0.9073 MB / 0.5972 GB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03727/0.598, allocations: 14.86 MB / 0.6117 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003869/0.5984, allocations: 27.73 kB / 0.6117 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003013/0.6014, allocations: 382.4 kB / 0.6121 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006005/0.602, allocations: 0.5036 MB / 0.6126 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02949/0.6316, allocations: 13.57 MB / 0.6258 GB, free: 4.004 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08226/0.7138, allocations: 46.62 MB / 0.6714 GB, free: 5.125 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02222/0.7361, allocations: 28.31 MB / 0.699 GB, free: 5.129 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004768/0.7409, allocations: 3.025 MB / 0.702 GB, free: 2.102 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003413/0.7413, allocations: 240.9 kB / 0.7022 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.309e-05/0.7413, allocations: 73.52 kB / 0.7023 GB, free: 1.762 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.47e-06/0.7413, allocations: 0 / 0.7023 GB, free: 1.762 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.1922/0.9336, allocations: 14.62 MB / 0.7165 GB, free: 160.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.9336, allocations: 90.12 kB / 0.7166 GB, free: 160.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0051/0.9387, allocations: 3.48 MB / 0.72 GB, free: 160.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003882/0.9391, allocations: 92.64 kB / 0.7201 GB, free: 160.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001933/0.9411, allocations: 3.949 MB / 0.724 GB, free: 158.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.9421, allocations: 1.31 MB / 0.7252 GB, free: 157.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/0.9436, allocations: 1.14 MB / 0.7264 GB, free: 157.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.511e-05/0.9437, allocations: 303.4 kB / 0.7266 GB, free: 157.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003084/0.9467, allocations: 2.553 MB / 0.7291 GB, free: 157.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003886/0.9506, allocations: 5.018 MB / 0.734 GB, free: 153.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007989/0.9586, allocations: 8.213 MB / 0.7421 GB, free: 147.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.206e-05/0.9587, allocations: 31.95 kB / 0.7421 GB, free: 147.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01169/0.9704, allocations: 8.499 MB / 0.7504 GB, free: 143.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.825e-05/0.9705, allocations: 38.88 kB / 0.7504 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/0.9706, allocations: 81.91 kB / 0.7505 GB, free: 143.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002138/0.9728, allocations: 0.8457 MB / 0.7513 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004054/0.9768, allocations: 1.34 MB / 0.7526 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008755/0.9856, allocations: 7.673 MB / 0.7601 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.9896, allocations: 317.1 kB / 0.7604 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004376/0.9901, allocations: 303.4 kB / 0.7607 GB, free: 137.7 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.005456/0.9955, allocations: 3.479 MB / 0.7641 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008439/0.9964, allocations: 395.1 kB / 0.7645 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008397/1.005, allocations: 5.858 MB / 0.7702 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/1.005, allocations: 40 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.005, allocations: 11.94 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.078e-05/1.005, allocations: 18.52 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02007/1.025, allocations: 14.8 MB / 0.7847 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/1.025, allocations: 4 kB / 0.7847 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002482/1.027, allocations: 0.6767 MB / 0.7854 GB, free: 113.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/1.029, allocations: 0.7056 MB / 0.7861 GB, free: 113.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/1.03, allocations: 79.98 kB / 0.7862 GB, free: 113.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007346/1.037, allocations: 6.707 MB / 0.7927 GB, free: 106.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.037, allocations: 8.312 kB / 0.7927 GB, free: 106.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/1.047, allocations: 8.555 MB / 0.8011 GB, free: 97.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/1.049, allocations: 0.8553 MB / 0.8019 GB, free: 96.74 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005297/1.049, allocations: 72.05 kB / 0.802 GB, free: 96.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/1.051, allocations: 183.8 kB / 0.8022 GB, free: 96.49 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004411/1.052, allocations: 254.6 kB / 0.8024 GB, free: 96.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/1.052, allocations: 119.9 kB / 0.8025 GB, free: 96.12 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002909/1.055, allocations: 2.33 MB / 0.8048 GB, free: 93.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.055, allocations: 0 / 0.8048 GB, free: 93.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004934/1.06, allocations: 1.515 MB / 0.8063 GB, free: 92.29 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.0101/1.07, allocations: 9.256 MB / 0.8153 GB, free: 82.91 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02315/1.093, allocations: 12.58 MB / 0.8276 GB, free: 70.37 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.093, allocations: 8.062 kB / 0.8276 GB, free: 70.36 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003798/1.097, allocations: 2.868 MB / 0.8304 GB, free: 67.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004172/1.101, allocations: 0.8989 MB / 0.8313 GB, free: 66.63 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2299/1.331, allocations: 59.06 MB / 0.889 GB, free: 163.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006436/1.337, allocations: 5.891 MB / 0.8947 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005883/1.343, allocations: 1.854 MB / 0.8965 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004971/1.348, allocations: 3.086 MB / 0.8995 GB, free: 162.6 MB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/1.348, allocations: 4 kB / 0.8995 GB, free: 162.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1479/1.496, allocations: 117.2 MB / 1.014 GB, free: 59.53 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/13.13, allocations: 2.969 kB / 1.014 GB, free: 59.53 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)