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.001824/0.001824, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 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 1.416/1.416, allocations: 230.6 MB / 253.5 MB, free: 14.47 MB / 206.1 MB " [Timeout remaining time 178] 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.001512/0.001512, allocations: 214.9 kB / 310 MB, free: 3.008 MB / 238.1 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.04015/0.04015, allocations: 8.912 MB / 375.4 MB, free: 6.602 MB / 302.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 79.88 kB / 0.4899 GB, free: 44.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.08438, allocations: 55.61 MB / 0.5442 GB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2269/0.3113, allocations: 23.83 MB / 0.5675 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.3248, allocations: 7.797 MB / 0.5751 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005132/0.3299, allocations: 247.9 kB / 0.5754 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01687/0.3468, allocations: 7.409 MB / 0.5826 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009796/0.3566, allocations: 2.746 MB / 0.5853 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005428/0.362, allocations: 1.813 MB / 0.587 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.3742, allocations: 9.828 MB / 0.5966 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0286/0.4029, allocations: 13.9 MB / 0.6102 GB, free: 7.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009956/0.4128, allocations: 5.391 MB / 0.6155 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01187/0.4247, allocations: 6.034 MB / 0.6214 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004432/0.4291, allocations: 1.52 MB / 0.6229 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006387/0.4355, allocations: 1.898 MB / 0.6247 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004886/0.4404, allocations: 2.954 MB / 0.6276 GB, free: 8.285 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009424/0.4498, allocations: 4.448 MB / 0.6319 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02748/0.4773, allocations: 20.43 MB / 0.6519 GB, free: 15.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4773, allocations: 3.938 kB / 0.6519 GB, free: 15.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4773, allocations: 0 / 0.6519 GB, free: 15.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004969/0.4778, allocations: 4 kB / 0.6519 GB, free: 15.31 MB / 446.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.03456/0.5123, allocations: 11.76 MB / 0.6634 GB, free: 3.473 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.5124, allocations: 11.98 kB / 0.6634 GB, free: 3.461 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000264/0.5127, allocations: 251.2 kB / 0.6636 GB, free: 3.215 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004223/0.5169, allocations: 1.32 MB / 0.6649 GB, free: 1.887 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03039/0.5473, allocations: 5.555 MB / 0.6703 GB, free: 12.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/0.5606, allocations: 6.272 MB / 0.6765 GB, free: 5.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007126/0.5614, allocations: 0.6865 MB / 0.6771 GB, free: 5.293 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003385/0.5647, allocations: 0.91 MB / 0.678 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0368/0.6015, allocations: 15.04 MB / 0.6927 GB, free: 5.262 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003477/0.6019, allocations: 19.94 kB / 0.6927 GB, free: 5.242 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002923/0.6048, allocations: 380 kB / 0.6931 GB, free: 4.871 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005975/0.6054, allocations: 0.5074 MB / 0.6936 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0284/0.6338, allocations: 13.62 MB / 0.7069 GB, free: 6.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07883/0.7126, allocations: 41.84 MB / 0.7478 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01418/0.7268, allocations: 7.854 MB / 0.7554 GB, free: 5.188 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004647/0.7315, allocations: 2.749 MB / 0.7581 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003411/0.7318, allocations: 94.88 kB / 0.7582 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.507e-05/0.7319, allocations: 73.98 kB / 0.7583 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=375): time 6.082e-06/0.7319, allocations: 0 / 0.7583 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of matching and sorting (n=382): time 0.03035/0.7622, allocations: 14.61 MB / 0.7725 GB, free: 3.578 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.436e-05/0.7623, allocations: 90.41 kB / 0.7726 GB, free: 3.477 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3802/1.142, allocations: 3.486 MB / 0.776 GB, free: 165.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006952/1.143, allocations: 87.89 kB / 0.7761 GB, free: 165.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002297/1.145, allocations: 4.097 MB / 0.7801 GB, free: 164.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001155/1.147, allocations: 1.374 MB / 0.7815 GB, free: 164.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00155/1.148, allocations: 1.153 MB / 0.7826 GB, free: 164.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.092e-05/1.148, allocations: 301.7 kB / 0.7829 GB, free: 163.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/1.152, allocations: 2.559 MB / 0.7854 GB, free: 163.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004645/1.156, allocations: 5.042 MB / 0.7903 GB, free: 159.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009158/1.166, allocations: 8.231 MB / 0.7983 GB, free: 153.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001412/1.166, allocations: 24.47 kB / 0.7984 GB, free: 153.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01529/1.181, allocations: 8.514 MB / 0.8067 GB, free: 150.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000103/1.181, allocations: 40.84 kB / 0.8067 GB, free: 150.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.181, allocations: 86.34 kB / 0.8068 GB, free: 150.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002392/1.184, allocations: 0.8468 MB / 0.8076 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004863/1.189, allocations: 1.34 MB / 0.8089 GB, free: 149.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009429/1.198, allocations: 7.442 MB / 0.8162 GB, free: 145.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/1.202, allocations: 332.3 kB / 0.8165 GB, free: 145.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006969/1.203, allocations: 301 kB / 0.8168 GB, free: 145.6 MB / 0.545 GB 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.004678/1.207, allocations: 3.478 MB / 0.8202 GB, free: 143.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007184/1.208, allocations: 422.1 kB / 0.8206 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007841/1.216, allocations: 5.832 MB / 0.8263 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/1.216, allocations: 40.22 kB / 0.8263 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/1.216, allocations: 7.219 kB / 0.8263 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.9e-05/1.216, allocations: 18.84 kB / 0.8264 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01956/1.236, allocations: 13.92 MB / 0.8399 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/1.236, allocations: 15.06 kB / 0.84 GB, free: 131.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.238, allocations: 0.674 MB / 0.8406 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/1.24, allocations: 0.7135 MB / 0.8413 GB, free: 130.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002325/1.24, allocations: 83.97 kB / 0.8414 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006904/1.247, allocations: 6.487 MB / 0.8477 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.247, allocations: 6.188 kB / 0.8477 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/1.257, allocations: 8.579 MB / 0.8561 GB, free: 114.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/1.259, allocations: 0.8199 MB / 0.8569 GB, free: 114.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005367/1.26, allocations: 69.12 kB / 0.857 GB, free: 114 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/1.261, allocations: 187.8 kB / 0.8572 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004863/1.262, allocations: 277.7 kB / 0.8574 GB, free: 113.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/1.262, allocations: 116 kB / 0.8575 GB, free: 113.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002869/1.265, allocations: 2.334 MB / 0.8598 GB, free: 111.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.265, allocations: 0 / 0.8598 GB, free: 111.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005194/1.27, allocations: 1.512 MB / 0.8613 GB, free: 109.6 MB / 0.545 GB 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.01026/1.28, allocations: 9.288 MB / 0.8704 GB, free: 100.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00847/1.289, allocations: 6.186 MB / 0.8764 GB, free: 94.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/1.289, allocations: 0.875 kB / 0.8764 GB, free: 94.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003713/1.292, allocations: 2.671 MB / 0.879 GB, free: 91.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004011/1.296, allocations: 0.9034 MB / 0.8799 GB, free: 90.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06544/1.362, allocations: 51.4 MB / 0.9301 GB, free: 36.06 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005014/1.367, allocations: 5.441 MB / 0.9354 GB, free: 30.57 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004024/1.371, allocations: 1.864 MB / 0.9372 GB, free: 28.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003343/1.374, allocations: 3.1 MB / 0.9402 GB, free: 25.59 MB / 0.545 GB Notification: Performance of SimCode: time 1.392e-06/1.374, allocations: 0 / 0.9402 GB, free: 25.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4001/1.774, allocations: 121.8 MB / 1.059 GB, free: 156.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.87/21.64, allocations: 10.53 kB / 1.059 GB, free: 156.1 MB / 0.5763 GB " [Timeout remaining time 638] (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: 24.95186107698828] Failed to read output from testmodel.py, exit status != 0: 21.862175092916004 21.872667385 21.392894172 Calling exit ...