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.001315/0.001315, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.423/1.423, allocations: 230.6 MB / 253.4 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.0017/0.0017, allocations: 211.7 kB / 310 MB, free: 3.145 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.04219/0.04219, allocations: 8.921 MB / 375.4 MB, free: 6.762 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.002313/0.002313, allocations: 83.86 kB / 0.49 GB, free: 44.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08674, allocations: 55.62 MB / 0.5443 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2346/0.3213, allocations: 27.87 MB / 0.5715 GB, free: 9.418 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.3363, allocations: 8.164 MB / 0.5795 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005857/0.3421, allocations: 248.7 kB / 0.5797 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01674/0.3588, allocations: 8.045 MB / 0.5876 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009275/0.3681, allocations: 2.811 MB / 0.5903 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005088/0.3732, allocations: 1.9 MB / 0.5922 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01292/0.3861, allocations: 9.827 MB / 0.6018 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02965/0.4158, allocations: 13.91 MB / 0.6154 GB, free: 4.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009558/0.4253, allocations: 5.386 MB / 0.6206 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01125/0.4366, allocations: 6.027 MB / 0.6265 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004323/0.4409, allocations: 1.52 MB / 0.628 GB, free: 9.301 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007435/0.4484, allocations: 1.906 MB / 0.6299 GB, free: 7.395 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005223/0.4536, allocations: 2.946 MB / 0.6327 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0137/0.4673, allocations: 5.732 MB / 0.6383 GB, free: 14.68 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02837/0.4957, allocations: 20.35 MB / 0.6582 GB, free: 10.27 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4957, allocations: 0 / 0.6582 GB, free: 10.27 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4957, allocations: 0 / 0.6582 GB, free: 10.27 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005664/0.4962, allocations: 0 / 0.6582 GB, free: 10.27 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.03604/0.5323, allocations: 11.75 MB / 0.6697 GB, free: 14.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.5323, allocations: 11.98 kB / 0.6697 GB, free: 14.42 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002703/0.5326, allocations: 251.2 kB / 0.6699 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00436/0.5369, allocations: 1.328 MB / 0.6712 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0306/0.5675, allocations: 5.551 MB / 0.6767 GB, free: 7.277 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.5816, allocations: 6.276 MB / 0.6828 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006688/0.5823, allocations: 0.6904 MB / 0.6835 GB, free: 248 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003199/0.5855, allocations: 0.9062 MB / 0.6843 GB, free: 15.33 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03331/0.6188, allocations: 14.89 MB / 0.6989 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002886/0.6191, allocations: 11.95 kB / 0.6989 GB, free: 400 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002045/0.6211, allocations: 384 kB / 0.6993 GB, free: 16 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005378/0.6216, allocations: 0.5152 MB / 0.6998 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02885/0.6505, allocations: 13.62 MB / 0.7131 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08329/0.7338, allocations: 45.61 MB / 0.7576 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/0.748, allocations: 7.933 MB / 0.7654 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004597/0.7526, allocations: 2.753 MB / 0.768 GB, free: 9.699 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000359/0.7529, allocations: 114.8 kB / 0.7682 GB, free: 9.586 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.418e-05/0.753, allocations: 73.52 kB / 0.7682 GB, free: 9.504 MB / 0.545 GB Notification: Performance of pre-optimization done (n=375): time 6.702e-06/0.753, allocations: 3.984 kB / 0.7682 GB, free: 9.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=382): time 0.4275/1.181, allocations: 14.6 MB / 0.7825 GB, free: 164.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/1.181, allocations: 91.06 kB / 0.7826 GB, free: 164.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005267/1.186, allocations: 3.494 MB / 0.786 GB, free: 163.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005951/1.186, allocations: 87.23 kB / 0.7861 GB, free: 163.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002269/1.189, allocations: 4.096 MB / 0.7901 GB, free: 161.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/1.19, allocations: 1.376 MB / 0.7914 GB, free: 160.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001631/1.192, allocations: 1.156 MB / 0.7925 GB, free: 159.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.236e-05/1.192, allocations: 306.2 kB / 0.7928 GB, free: 159.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003715/1.195, allocations: 2.557 MB / 0.7953 GB, free: 158.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005119/1.201, allocations: 5.022 MB / 0.8002 GB, free: 154.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009726/1.21, allocations: 8.227 MB / 0.8083 GB, free: 148.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/1.21, allocations: 23 kB / 0.8083 GB, free: 148.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01457/1.225, allocations: 8.51 MB / 0.8166 GB, free: 145 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/1.225, allocations: 43.2 kB / 0.8166 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/1.225, allocations: 86.91 kB / 0.8167 GB, free: 145 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002043/1.227, allocations: 0.8441 MB / 0.8175 GB, free: 144.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/1.231, allocations: 1.346 MB / 0.8189 GB, free: 144.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/1.24, allocations: 7.566 MB / 0.8262 GB, free: 140.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/1.244, allocations: 323.2 kB / 0.8266 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008948/1.245, allocations: 307.4 kB / 0.8268 GB, free: 140.3 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.004886/1.25, allocations: 3.48 MB / 0.8302 GB, free: 138.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008389/1.251, allocations: 412.5 kB / 0.8306 GB, free: 138.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008196/1.259, allocations: 5.831 MB / 0.8363 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-05/1.259, allocations: 39.12 kB / 0.8364 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/1.259, allocations: 8.594 kB / 0.8364 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.303e-05/1.259, allocations: 18.7 kB / 0.8364 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/1.28, allocations: 14.52 MB / 0.8506 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/1.28, allocations: 8.094 kB / 0.8506 GB, free: 123.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002318/1.283, allocations: 0.6787 MB / 0.8512 GB, free: 123.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001801/1.284, allocations: 0.7092 MB / 0.8519 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002523/1.285, allocations: 87.97 kB / 0.852 GB, free: 122.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00686/1.291, allocations: 6.595 MB / 0.8585 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.291, allocations: 9.156 kB / 0.8585 GB, free: 115.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009688/1.301, allocations: 8.57 MB / 0.8668 GB, free: 107 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/1.303, allocations: 0.8287 MB / 0.8676 GB, free: 106.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005494/1.304, allocations: 75.98 kB / 0.8677 GB, free: 106.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/1.305, allocations: 187 kB / 0.8679 GB, free: 105.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004079/1.306, allocations: 270.4 kB / 0.8682 GB, free: 105.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001876/1.306, allocations: 108 kB / 0.8683 GB, free: 105.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002488/1.308, allocations: 2.346 MB / 0.8705 GB, free: 103.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.308, allocations: 0 / 0.8705 GB, free: 103.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004575/1.313, allocations: 1.516 MB / 0.872 GB, free: 101.7 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.009728/1.323, allocations: 9.28 MB / 0.8811 GB, free: 92.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008385/1.331, allocations: 6.173 MB / 0.8871 GB, free: 86.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.331, allocations: 0 / 0.8871 GB, free: 86.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003782/1.335, allocations: 2.68 MB / 0.8897 GB, free: 83.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004024/1.339, allocations: 0.9082 MB / 0.8906 GB, free: 82.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06403/1.403, allocations: 51.42 MB / 0.9408 GB, free: 28.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004673/1.408, allocations: 5.898 MB / 0.9466 GB, free: 22.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003786/1.411, allocations: 1.856 MB / 0.9484 GB, free: 20.28 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003433/1.415, allocations: 3.104 MB / 0.9514 GB, free: 17.18 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.415, allocations: 0 / 0.9514 GB, free: 17.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3759/1.791, allocations: 122.3 MB / 1.071 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.85/21.64, allocations: 3.031 kB / 1.071 GB, free: 146.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.941908894921653] Failed to read output from testmodel.py, exit status != 0: 21.866764636943117 21.886298755 21.386336667 Calling exit ...