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.001353/0.001353, allocations: 103.6 kB / 18.95 MB, free: 2.664 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.438/1.438, allocations: 230.6 MB / 252.7 MB, free: 14.25 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.001783/0.001783, allocations: 210.4 kB / 309.2 MB, free: 3.125 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.0418/0.0418, allocations: 8.921 MB / 374.6 MB, free: 6.633 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.002487/0.002487, allocations: 93.75 kB / 0.4892 GB, free: 44.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09127/0.09375, allocations: 55.6 MB / 0.5435 GB, free: 5.039 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2394/0.3331, allocations: 23.84 MB / 0.5667 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.3485, allocations: 7.824 MB / 0.5744 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005346/0.3538, allocations: 248.9 kB / 0.5746 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0162/0.37, allocations: 7.405 MB / 0.5819 GB, free: 7.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008726/0.3787, allocations: 2.741 MB / 0.5845 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005645/0.3844, allocations: 1.81 MB / 0.5863 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.3971, allocations: 9.826 MB / 0.5959 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02743/0.4245, allocations: 13.73 MB / 0.6093 GB, free: 7.234 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009651/0.4341, allocations: 5.393 MB / 0.6146 GB, free: 4.109 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01081/0.4449, allocations: 5.763 MB / 0.6202 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003913/0.4489, allocations: 1.516 MB / 0.6217 GB, free: 13.65 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006656/0.4555, allocations: 1.89 MB / 0.6235 GB, free: 11.76 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004602/0.4601, allocations: 2.946 MB / 0.6264 GB, free: 8.809 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008212/0.4683, allocations: 4.44 MB / 0.6307 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02534/0.4937, allocations: 20.44 MB / 0.6507 GB, free: 15.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.4937, allocations: 0 / 0.6507 GB, free: 15.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.4937, allocations: 0 / 0.6507 GB, free: 15.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000631/0.4943, allocations: 3.984 kB / 0.6507 GB, free: 15.85 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.03443/0.5287, allocations: 11.76 MB / 0.6622 GB, free: 4.008 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.5288, allocations: 15.98 kB / 0.6622 GB, free: 3.992 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003949/0.5327, allocations: 1.316 MB / 0.6635 GB, free: 2.668 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/0.5619, allocations: 5.562 MB / 0.6689 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/0.5788, allocations: 6.261 MB / 0.675 GB, free: 6.766 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007541/0.5795, allocations: 0.6903 MB / 0.6757 GB, free: 6.074 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003803/0.5833, allocations: 0.9139 MB / 0.6766 GB, free: 5.16 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03633/0.6197, allocations: 15.03 MB / 0.6913 GB, free: 6.047 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003715/0.62, allocations: 19.89 kB / 0.6913 GB, free: 6.027 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002701/0.6227, allocations: 383.9 kB / 0.6917 GB, free: 5.652 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00057/0.6233, allocations: 0.5113 MB / 0.6922 GB, free: 5.141 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02993/0.6532, allocations: 13.55 MB / 0.7054 GB, free: 7.578 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07716/0.7304, allocations: 41.82 MB / 0.7462 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01393/0.7443, allocations: 7.839 MB / 0.7539 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004478/0.7488, allocations: 2.745 MB / 0.7566 GB, free: 3.309 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/0.7491, allocations: 90.88 kB / 0.7567 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.313e-05/0.7492, allocations: 77.52 kB / 0.7567 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=375): time 5.991e-06/0.7492, allocations: 0 / 0.7567 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=382): time 0.02995/0.7791, allocations: 14.54 MB / 0.7709 GB, free: 4.523 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/0.7792, allocations: 90.41 kB / 0.771 GB, free: 4.422 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005625/0.7848, allocations: 3.623 MB / 0.7746 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006177/0.7855, allocations: 89.7 kB / 0.7746 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.3866/1.172, allocations: 4.095 MB / 0.7786 GB, free: 163.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00142/1.174, allocations: 1.374 MB / 0.78 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001587/1.175, allocations: 1.156 MB / 0.7811 GB, free: 163 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.991e-05/1.175, allocations: 302.5 kB / 0.7814 GB, free: 162.7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00344/1.179, allocations: 2.551 MB / 0.7839 GB, free: 162.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004716/1.183, allocations: 5.036 MB / 0.7888 GB, free: 159.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009093/1.192, allocations: 8.224 MB / 0.7968 GB, free: 153.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001226/1.193, allocations: 24.53 kB / 0.7969 GB, free: 153.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01404/1.207, allocations: 8.504 MB / 0.8052 GB, free: 150.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.464e-05/1.207, allocations: 40.41 kB / 0.8052 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001569/1.207, allocations: 82.41 kB / 0.8053 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002086/1.209, allocations: 0.8338 MB / 0.8061 GB, free: 149.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/1.213, allocations: 1.34 MB / 0.8074 GB, free: 149.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009315/1.222, allocations: 7.373 MB / 0.8146 GB, free: 145.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/1.226, allocations: 324.2 kB / 0.8149 GB, free: 145.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005818/1.227, allocations: 304 kB / 0.8152 GB, free: 145.5 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.004481/1.231, allocations: 3.484 MB / 0.8186 GB, free: 143.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007174/1.232, allocations: 409.7 kB / 0.819 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007683/1.24, allocations: 5.829 MB / 0.8247 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/1.24, allocations: 42.34 kB / 0.8247 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/1.24, allocations: 7.625 kB / 0.8247 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.729e-05/1.24, allocations: 19.12 kB / 0.8248 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02069/1.26, allocations: 13.9 MB / 0.8383 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/1.26, allocations: 4.562 kB / 0.8383 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002248/1.263, allocations: 0.6766 MB / 0.839 GB, free: 131.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001605/1.264, allocations: 0.6937 MB / 0.8397 GB, free: 131.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001901/1.264, allocations: 83.97 kB / 0.8398 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006778/1.271, allocations: 6.413 MB / 0.846 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.271, allocations: 11.94 kB / 0.846 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0094/1.281, allocations: 8.556 MB / 0.8544 GB, free: 115.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/1.283, allocations: 0.8299 MB / 0.8552 GB, free: 115.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004907/1.283, allocations: 72 kB / 0.8553 GB, free: 115 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/1.285, allocations: 175.8 kB / 0.8554 GB, free: 114.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003938/1.285, allocations: 274.4 kB / 0.8557 GB, free: 114.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001856/1.285, allocations: 116 kB / 0.8558 GB, free: 114.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002682/1.288, allocations: 2.342 MB / 0.8581 GB, free: 112.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.288, allocations: 0 / 0.8581 GB, free: 112.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004552/1.293, allocations: 1.508 MB / 0.8596 GB, free: 110.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.009912/1.302, allocations: 9.264 MB / 0.8686 GB, free: 101.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008509/1.311, allocations: 6.16 MB / 0.8746 GB, free: 95.09 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/1.311, allocations: 0 / 0.8746 GB, free: 95.09 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003337/1.314, allocations: 2.669 MB / 0.8772 GB, free: 92.42 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003683/1.318, allocations: 0.9097 MB / 0.8781 GB, free: 91.56 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0656/1.384, allocations: 51.31 MB / 0.9282 GB, free: 37.22 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004997/1.389, allocations: 5.445 MB / 0.9335 GB, free: 31.72 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003923/1.392, allocations: 1.856 MB / 0.9354 GB, free: 29.86 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003336/1.396, allocations: 3.104 MB / 0.9384 GB, free: 26.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.222e-06/1.396, allocations: 0 / 0.9384 GB, free: 26.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3912/1.787, allocations: 119 MB / 1.055 GB, free: 160.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.16/17.94, allocations: 4.594 kB / 1.055 GB, free: 160.2 MB / 0.5763 GB " [Timeout remaining time 642] (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: 21.02594948001206] Failed to read output from testmodel.py, exit status != 0: 18.110495880711824 18.120711026 17.624581695 Calling exit ...