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.001403/0.001403, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.514/1.514, allocations: 230.6 MB / 252.7 MB, free: 8.273 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.001694/0.001694, allocations: 203.6 kB / 309.2 MB, free: 3.117 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.04535/0.04535, allocations: 8.924 MB / 374.6 MB, free: 1.852 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="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: 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.002781/0.002781, allocations: 95.83 kB / 0.4892 GB, free: 7.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2853, allocations: 55.61 MB / 0.5435 GB, free: 26.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02103/0.3063, allocations: 27.87 MB / 0.5708 GB, free: 6.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01633/0.3227, allocations: 8.161 MB / 0.5787 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006079/0.3287, allocations: 248.2 kB / 0.579 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01976/0.3485, allocations: 8.051 MB / 0.5868 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.3592, allocations: 2.825 MB / 0.5896 GB, free: 9.738 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00572/0.3649, allocations: 1.89 MB / 0.5914 GB, free: 8.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01463/0.3796, allocations: 9.821 MB / 0.601 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03141/0.411, allocations: 13.9 MB / 0.6146 GB, free: 4.07 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01283/0.4238, allocations: 5.389 MB / 0.6199 GB, free: 14.67 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01564/0.4394, allocations: 6.039 MB / 0.6258 GB, free: 8.609 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00605/0.4455, allocations: 1.516 MB / 0.6272 GB, free: 7.094 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008307/0.4538, allocations: 1.906 MB / 0.6291 GB, free: 5.188 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007253/0.4611, allocations: 2.946 MB / 0.632 GB, free: 2.234 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01511/0.4762, allocations: 5.732 MB / 0.6376 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03956/0.5157, allocations: 20.34 MB / 0.6574 GB, free: 8.074 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.5157, allocations: 0 / 0.6574 GB, free: 8.074 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5157, allocations: 0 / 0.6574 GB, free: 8.074 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007102/0.5164, allocations: 0 / 0.6574 GB, free: 8.074 MB / 462.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.04053/0.557, allocations: 11.76 MB / 0.6689 GB, free: 12.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.28e-05/0.557, allocations: 12.03 kB / 0.6689 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006424/0.5635, allocations: 1.32 MB / 0.6702 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03212/0.5956, allocations: 5.562 MB / 0.6757 GB, free: 5.312 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/0.6111, allocations: 6.268 MB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007909/0.6119, allocations: 0.6864 MB / 0.6824 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00404/0.6159, allocations: 0.9061 MB / 0.6833 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4475/1.063, allocations: 14.89 MB / 0.6979 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004159/1.064, allocations: 19.61 kB / 0.6979 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002403/1.066, allocations: 378.5 kB / 0.6982 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005983/1.067, allocations: 0.5081 MB / 0.6987 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0276/1.094, allocations: 13.62 MB / 0.712 GB, free: 97.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0725/1.167, allocations: 45.61 MB / 0.7566 GB, free: 68.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.012/1.179, allocations: 7.936 MB / 0.7643 GB, free: 65.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003589/1.183, allocations: 2.749 MB / 0.767 GB, free: 63.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003401/1.183, allocations: 116.8 kB / 0.7671 GB, free: 63.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/1.183, allocations: 76.45 kB / 0.7672 GB, free: 63.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.25e-06/1.183, allocations: 0 / 0.7672 GB, free: 63.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.02533/1.208, allocations: 14.6 MB / 0.7815 GB, free: 49.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/1.208, allocations: 90.41 kB / 0.7816 GB, free: 49.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003814/1.212, allocations: 3.501 MB / 0.785 GB, free: 46.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003135/1.212, allocations: 89.64 kB / 0.7851 GB, free: 46.31 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/1.214, allocations: 4.1 MB / 0.7891 GB, free: 42.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007404/1.215, allocations: 1.37 MB / 0.7904 GB, free: 40.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/1.216, allocations: 1.152 MB / 0.7915 GB, free: 39.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.355e-05/1.216, allocations: 305.1 kB / 0.7918 GB, free: 39.53 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002839/1.219, allocations: 2.557 MB / 0.7943 GB, free: 36.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/1.222, allocations: 5.015 MB / 0.7992 GB, free: 30.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007269/1.23, allocations: 8.229 MB / 0.8072 GB, free: 21.39 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.48e-05/1.23, allocations: 24 kB / 0.8073 GB, free: 21.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01166/1.241, allocations: 8.511 MB / 0.8156 GB, free: 12.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.487e-05/1.241, allocations: 40 kB / 0.8156 GB, free: 12.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-05/1.242, allocations: 84 kB / 0.8157 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002011/1.244, allocations: 0.848 MB / 0.8165 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/1.248, allocations: 1.349 MB / 0.8178 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009061/1.257, allocations: 7.567 MB / 0.8252 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004021/1.261, allocations: 331.4 kB / 0.8255 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007069/1.262, allocations: 307.9 kB / 0.8258 GB, free: 2.195 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.005754/1.267, allocations: 3.478 MB / 0.8292 GB, free: 14.7 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/1.269, allocations: 405.4 kB / 0.8296 GB, free: 14.3 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.28, allocations: 5.832 MB / 0.8353 GB, free: 8.438 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.681e-05/1.28, allocations: 43.94 kB / 0.8354 GB, free: 8.395 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/1.28, allocations: 8 kB / 0.8354 GB, free: 8.387 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.823e-05/1.28, allocations: 27.91 kB / 0.8354 GB, free: 8.359 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02837/1.308, allocations: 14.51 MB / 0.8496 GB, free: 9.797 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/1.308, allocations: 4.562 kB / 0.8496 GB, free: 9.793 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002874/1.311, allocations: 0.6787 MB / 0.8502 GB, free: 9.113 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/1.313, allocations: 0.7129 MB / 0.8509 GB, free: 8.398 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002839/1.313, allocations: 87.97 kB / 0.851 GB, free: 8.312 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/1.324, allocations: 6.603 MB / 0.8575 GB, free: 1.594 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/1.324, allocations: 8 kB / 0.8575 GB, free: 1.586 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/1.338, allocations: 8.576 MB / 0.8658 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002729/1.341, allocations: 0.8212 MB / 0.8666 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008925/1.342, allocations: 79.94 kB / 0.8667 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.344, allocations: 179.8 kB / 0.8669 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006317/1.345, allocations: 274.4 kB / 0.8672 GB, free: 7.535 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002622/1.345, allocations: 116 kB / 0.8673 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004692/1.35, allocations: 2.334 MB / 0.8695 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.35, allocations: 0 / 0.8695 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007147/1.357, allocations: 1.516 MB / 0.871 GB, free: 3.582 MB / 0.5294 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.01557/1.372, allocations: 9.289 MB / 0.8801 GB, free: 10.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01149/1.384, allocations: 6.173 MB / 0.8861 GB, free: 3.977 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/1.384, allocations: 4 kB / 0.8861 GB, free: 3.973 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00545/1.389, allocations: 2.674 MB / 0.8887 GB, free: 1.289 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004637/1.394, allocations: 0.9042 MB / 0.8896 GB, free: 420 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3179/1.712, allocations: 51.41 MB / 0.9398 GB, free: 179.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007357/1.719, allocations: 5.896 MB / 0.9456 GB, free: 177.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005429/1.725, allocations: 1.857 MB / 0.9474 GB, free: 177.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004408/1.729, allocations: 3.099 MB / 0.9504 GB, free: 174.8 MB / 0.5763 GB Notification: Performance of SimCode: time 9.92e-07/1.729, allocations: 1.531 kB / 0.9504 GB, free: 174.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1674/1.897, allocations: 122.2 MB / 1.07 GB, free: 70.43 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.63/22.53, allocations: 18.02 kB / 1.07 GB, free: 70.41 MB / 0.5763 GB " [Timeout remaining time 637] (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: 25.733695643022656] Failed to read output from testmodel.py, exit status != 0: 22.709156905068085 22.729157553 22.209348457 Calling exit ...