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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.88/0.88, allocations: 177.1 MB / 199.4 MB, free: 5.945 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 160.5 kB / 256 MB, free: 13.34 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02296/0.02296, allocations: 6.657 MB / 319 MB, free: 11.88 MB / 298.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 445.4 MB, free: 109.8 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.134e-05, allocations: 2.812 kB / 445.4 MB, free: 109.8 MB / 410.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.01797/0.01799, allocations: 23.87 MB / 469.3 MB, free: 94.08 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.03255, allocations: 7.833 MB / 477.1 MB, free: 88.54 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005459/0.03801, allocations: 251.6 kB / 477.4 MB, free: 88.45 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008726/0.04673, allocations: 7.826 MB / 485.2 MB, free: 82.74 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006552/0.05329, allocations: 2.792 MB / 488 MB, free: 80.17 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.05619, allocations: 1.832 MB / 489.8 MB, free: 78.35 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00679/0.06298, allocations: 10.14 MB / 500 MB, free: 68.18 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01288/0.07586, allocations: 13.78 MB / 0.5017 GB, free: 54.27 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007831/0.08369, allocations: 7.965 MB / 0.5095 GB, free: 46.29 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00615/0.08984, allocations: 5.173 MB / 0.5145 GB, free: 41.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002047/0.09188, allocations: 1.516 MB / 0.516 GB, free: 39.59 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002172/0.09406, allocations: 1.894 MB / 0.5179 GB, free: 37.7 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.09513, allocations: 3 MB / 0.5208 GB, free: 34.69 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002822/0.09795, allocations: 3.84 MB / 0.5245 GB, free: 30.84 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.108, allocations: 20.6 MB / 0.5447 GB, free: 10.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.108, allocations: 3.984 kB / 0.5447 GB, free: 10.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.108, allocations: 4 kB / 0.5447 GB, free: 10.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000263/0.1083, allocations: 0 / 0.5447 GB, free: 10.18 MB / 410.7 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.01787/0.1261, allocations: 11.65 MB / 0.556 GB, free: 14.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.1262, allocations: 16.03 kB / 0.5561 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00194/0.1281, allocations: 1.324 MB / 0.5573 GB, free: 13.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01561/0.1437, allocations: 5.562 MB / 0.5628 GB, free: 7.523 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.1539, allocations: 6.262 MB / 0.5689 GB, free: 1.191 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006433/0.1545, allocations: 0.6903 MB / 0.5696 GB, free: 0.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002006/0.1565, allocations: 0.9139 MB / 0.5705 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/0.1791, allocations: 15.04 MB / 0.5852 GB, free: 476 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001752/0.1793, allocations: 7.953 kB / 0.5852 GB, free: 468 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007141/0.18, allocations: 384 kB / 0.5855 GB, free: 84 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000377/0.1804, allocations: 0.5074 MB / 0.586 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01899/0.1994, allocations: 13.56 MB / 0.5993 GB, free: 2.008 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3599/0.5593, allocations: 41.84 MB / 0.6401 GB, free: 101.6 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008745/0.568, allocations: 7.86 MB / 0.6478 GB, free: 98.24 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003172/0.5712, allocations: 2.748 MB / 0.6505 GB, free: 96.84 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002689/0.5715, allocations: 90.42 kB / 0.6506 GB, free: 96.8 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.5715, allocations: 72.64 kB / 0.6506 GB, free: 96.73 MB / 458.8 MB Notification: Performance of pre-optimization done (n=375): time 6.983e-06/0.5715, allocations: 0 / 0.6506 GB, free: 96.73 MB / 458.8 MB Notification: Performance of matching and sorting (n=382): time 0.02143/0.593, allocations: 14.54 MB / 0.6648 GB, free: 85.71 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.593, allocations: 90.41 kB / 0.6649 GB, free: 85.61 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.5967, allocations: 3.626 MB / 0.6685 GB, free: 82.09 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006307/0.5974, allocations: 85.7 kB / 0.6685 GB, free: 82 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.5987, allocations: 4.084 MB / 0.6725 GB, free: 78.35 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.5998, allocations: 1.356 MB / 0.6739 GB, free: 77.01 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/0.6008, allocations: 1.144 MB / 0.675 GB, free: 75.86 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 2.867e-05/0.6009, allocations: 305.1 kB / 0.6753 GB, free: 75.55 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/0.6035, allocations: 2.557 MB / 0.6778 GB, free: 72.99 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003318/0.6068, allocations: 5.04 MB / 0.6827 GB, free: 66.79 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007183/0.614, allocations: 8.218 MB / 0.6907 GB, free: 57.39 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.18e-05/0.614, allocations: 24 kB / 0.6907 GB, free: 57.37 MB / 458.8 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01056/0.6246, allocations: 8.49 MB / 0.699 GB, free: 48.85 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.144e-05/0.6246, allocations: 43.94 kB / 0.6991 GB, free: 48.81 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.7e-05/0.6247, allocations: 87.98 kB / 0.6991 GB, free: 48.72 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.6262, allocations: 0.8391 MB / 0.7 GB, free: 47.89 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003017/0.6292, allocations: 1.338 MB / 0.7013 GB, free: 46.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006792/0.636, allocations: 7.39 MB / 0.7085 GB, free: 39.05 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003564/0.6395, allocations: 324 kB / 0.7088 GB, free: 38.73 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/0.6407, allocations: 300 kB / 0.7091 GB, free: 38.44 MB / 458.8 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.005308/0.646, allocations: 3.478 MB / 0.7125 GB, free: 34.95 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008367/0.6469, allocations: 421.3 kB / 0.7129 GB, free: 34.54 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006307/0.6532, allocations: 5.809 MB / 0.7186 GB, free: 28.69 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.6532, allocations: 46.19 kB / 0.7186 GB, free: 28.64 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.6532, allocations: 8 kB / 0.7186 GB, free: 28.64 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.436e-05/0.6532, allocations: 19.92 kB / 0.7186 GB, free: 28.62 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/0.6697, allocations: 13.89 MB / 0.7322 GB, free: 14.68 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.669e-06/0.6698, allocations: 8.562 kB / 0.7322 GB, free: 14.68 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.671, allocations: 0.6786 MB / 0.7329 GB, free: 14 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.6722, allocations: 0.6856 MB / 0.7335 GB, free: 13.31 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000174/0.6723, allocations: 91.91 kB / 0.7336 GB, free: 13.22 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004826/0.6772, allocations: 6.423 MB / 0.7399 GB, free: 6.684 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.6772, allocations: 7.938 kB / 0.7399 GB, free: 6.676 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008728/0.6859, allocations: 8.551 MB / 0.7482 GB, free: 14 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002131/0.688, allocations: 0.8251 MB / 0.7491 GB, free: 13.18 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005053/0.6885, allocations: 75.94 kB / 0.7491 GB, free: 13.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.6896, allocations: 179.9 kB / 0.7493 GB, free: 12.93 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006957/0.6903, allocations: 274.4 kB / 0.7496 GB, free: 12.66 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/0.6905, allocations: 116 kB / 0.7497 GB, free: 12.54 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.002816/0.6933, allocations: 2.334 MB / 0.752 GB, free: 10.22 MB / 474.8 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6933, allocations: 0.7656 kB / 0.752 GB, free: 10.22 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.004664/0.698, allocations: 1.512 MB / 0.7534 GB, free: 8.707 MB / 474.8 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.009864/0.7078, allocations: 9.246 MB / 0.7625 GB, free: 15.33 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.009018/0.7169, allocations: 6.177 MB / 0.7685 GB, free: 9.148 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/0.7169, allocations: 4 kB / 0.7685 GB, free: 9.145 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004509/0.7214, allocations: 2.658 MB / 0.7711 GB, free: 6.473 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003488/0.7249, allocations: 0.9029 MB / 0.772 GB, free: 5.609 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2169/0.9418, allocations: 51.31 MB / 0.8221 GB, free: 151 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004478/0.9463, allocations: 5.439 MB / 0.8274 GB, free: 149.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.0028/0.9491, allocations: 1.858 MB / 0.8292 GB, free: 149.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002175/0.9513, allocations: 3.099 MB / 0.8322 GB, free: 146.4 MB / 0.4949 GB Notification: Performance of SimCode: time 1.864e-06/0.9513, allocations: 0 / 0.8322 GB, free: 146.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1098/1.061, allocations: 118.8 MB / 0.9482 GB, free: 30.04 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/11.57, allocations: 4 kB / 0.9482 GB, free: 30.04 MB / 0.4949 GB " [Timeout remaining time 648] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.76574494689703] Failed to read output from testmodel.py, exit status != 0: 11.701778141781688 11.710038793 11.599582107 Calling exit ...