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.001296/0.001296, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.424/1.424, allocations: 230.6 MB / 250.5 MB, free: 9.223 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.001538/0.001538, allocations: 208.7 kB / 306.7 MB, free: 4.289 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.04112/0.04112, allocations: 8.916 MB / 371.7 MB, free: 3.414 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.002428/0.002428, allocations: 83.88 kB / 496.5 MB, free: 9.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2807, allocations: 55.56 MB / 0.5391 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02146/0.3022, allocations: 27.81 MB / 0.5662 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.3178, allocations: 8.139 MB / 0.5742 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006334/0.3241, allocations: 250.9 kB / 0.5744 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01907/0.3432, allocations: 8.021 MB / 0.5823 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.3534, allocations: 2.746 MB / 0.5849 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006079/0.3595, allocations: 1.844 MB / 0.5868 GB, free: 8.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01416/0.3736, allocations: 9.757 MB / 0.5963 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03242/0.406, allocations: 16.22 MB / 0.6121 GB, free: 3.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.4164, allocations: 5.361 MB / 0.6174 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01087/0.4272, allocations: 6.019 MB / 0.6232 GB, free: 7.691 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004611/0.4318, allocations: 1.516 MB / 0.6247 GB, free: 6.176 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007311/0.4392, allocations: 1.898 MB / 0.6266 GB, free: 4.277 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005312/0.4445, allocations: 2.946 MB / 0.6294 GB, free: 1.324 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01198/0.4564, allocations: 5.732 MB / 0.635 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02791/0.4844, allocations: 20.34 MB / 0.6549 GB, free: 7.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4844, allocations: 0 / 0.6549 GB, free: 7.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4844, allocations: 0 / 0.6549 GB, free: 7.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006167/0.485, allocations: 3.938 kB / 0.6549 GB, free: 7.156 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.03691/0.5219, allocations: 11.84 MB / 0.6665 GB, free: 11.22 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.5219, allocations: 8.031 kB / 0.6665 GB, free: 11.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002895/0.5222, allocations: 251.2 kB / 0.6667 GB, free: 10.96 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00464/0.5269, allocations: 1.324 MB / 0.668 GB, free: 9.633 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03103/0.5579, allocations: 5.558 MB / 0.6734 GB, free: 4.062 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/0.5705, allocations: 6.219 MB / 0.6795 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007105/0.5712, allocations: 0.6942 MB / 0.6802 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003095/0.5743, allocations: 0.91 MB / 0.6811 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4623/1.037, allocations: 14.88 MB / 0.6956 GB, free: 102.4 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000403/1.037, allocations: 14.91 kB / 0.6956 GB, free: 102.4 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00274/1.04, allocations: 384.3 kB / 0.696 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006877/1.04, allocations: 0.5104 MB / 0.6965 GB, free: 102.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02985/1.07, allocations: 13.62 MB / 0.7098 GB, free: 97.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07825/1.149, allocations: 46.55 MB / 0.7552 GB, free: 66.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01501/1.164, allocations: 27.94 MB / 0.7825 GB, free: 38.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003955/1.167, allocations: 2.763 MB / 0.7852 GB, free: 37.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003611/1.168, allocations: 340.7 kB / 0.7856 GB, free: 36.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/1.168, allocations: 72.58 kB / 0.7856 GB, free: 36.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 5.6e-06/1.168, allocations: 0 / 0.7856 GB, free: 36.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.02508/1.193, allocations: 14.77 MB / 0.8 GB, free: 23.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/1.193, allocations: 90.41 kB / 0.8001 GB, free: 23.01 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00396/1.197, allocations: 3.491 MB / 0.8035 GB, free: 19.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004647/1.197, allocations: 85.7 kB / 0.8036 GB, free: 19.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/1.199, allocations: 4.103 MB / 0.8076 GB, free: 15.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009448/1.2, allocations: 1.378 MB / 0.809 GB, free: 14.16 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001321/1.201, allocations: 1.152 MB / 0.8101 GB, free: 12.99 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.665e-05/1.201, allocations: 301.1 kB / 0.8104 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00293/1.204, allocations: 2.561 MB / 0.8129 GB, free: 10.13 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/1.208, allocations: 5.013 MB / 0.8178 GB, free: 3.957 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/1.218, allocations: 8.223 MB / 0.8258 GB, free: 10.56 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-05/1.218, allocations: 24 kB / 0.8258 GB, free: 10.54 MB / 0.4982 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01632/1.235, allocations: 8.527 MB / 0.8342 GB, free: 1.984 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 7.504e-05/1.235, allocations: 40 kB / 0.8342 GB, free: 1.945 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/1.235, allocations: 84 kB / 0.8343 GB, free: 1.863 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/1.237, allocations: 0.846 MB / 0.8351 GB, free: 1.016 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005092/1.242, allocations: 1.341 MB / 0.8364 GB, free: 15.67 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/1.255, allocations: 7.67 MB / 0.8439 GB, free: 7.859 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/1.259, allocations: 328.4 kB / 0.8442 GB, free: 7.539 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.26, allocations: 307.9 kB / 0.8445 GB, free: 7.238 MB / 0.5138 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.006729/1.267, allocations: 3.479 MB / 0.8479 GB, free: 3.746 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.268, allocations: 405.4 kB / 0.8483 GB, free: 3.348 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/1.279, allocations: 5.84 MB / 0.854 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-05/1.279, allocations: 43.98 kB / 0.854 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.498e-05/1.279, allocations: 4 kB / 0.854 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-05/1.279, allocations: 23.92 kB / 0.8541 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02806/1.307, allocations: 14.49 MB / 0.8682 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.307, allocations: 4 kB / 0.8682 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00287/1.31, allocations: 0.6825 MB / 0.8689 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002172/1.312, allocations: 0.7097 MB / 0.8696 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003619/1.313, allocations: 87.97 kB / 0.8697 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/1.323, allocations: 6.703 MB / 0.8762 GB, free: 6.492 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.09e-05/1.323, allocations: 7.938 kB / 0.8762 GB, free: 6.484 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/1.338, allocations: 8.572 MB / 0.8846 GB, free: 13.78 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002477/1.34, allocations: 0.8809 MB / 0.8855 GB, free: 12.88 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/1.341, allocations: 71.98 kB / 0.8855 GB, free: 12.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/1.343, allocations: 187.7 kB / 0.8857 GB, free: 12.62 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006143/1.344, allocations: 254.7 kB / 0.8859 GB, free: 12.37 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.344, allocations: 119.9 kB / 0.8861 GB, free: 12.25 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004274/1.348, allocations: 2.342 MB / 0.8883 GB, free: 9.922 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.01e-07/1.348, allocations: 0 / 0.8883 GB, free: 9.922 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006877/1.355, allocations: 1.512 MB / 0.8898 GB, free: 8.41 MB / 0.5607 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.01604/1.371, allocations: 9.289 MB / 0.8989 GB, free: 14.99 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01203/1.383, allocations: 6.177 MB / 0.9049 GB, free: 8.809 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.383, allocations: 0 / 0.9049 GB, free: 8.809 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005763/1.389, allocations: 2.674 MB / 0.9075 GB, free: 6.125 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005487/1.395, allocations: 0.9037 MB / 0.9084 GB, free: 5.242 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3204/1.715, allocations: 51.28 MB / 0.9585 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006725/1.722, allocations: 5.896 MB / 0.9643 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004288/1.726, allocations: 1.855 MB / 0.9661 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004201/1.73, allocations: 3.099 MB / 0.9691 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.483e-06/1.73, allocations: 3.844 kB / 0.9691 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1514/1.881, allocations: 117.1 MB / 1.083 GB, free: 52.49 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.13/20.01, allocations: 8.062 kB / 1.083 GB, free: 52.48 MB / 0.5763 GB " [Timeout remaining time 640] (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: 23.201597712002695] Failed to read output from testmodel.py, exit status != 0: 20.20239741099067 20.210433274 19.72374189 Calling exit ...