Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.001328/0.001328, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.498/1.498, allocations: 230.6 MB / 252.6 MB, free: 8.34 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.001744/0.001744, allocations: 207.3 kB / 309.2 MB, free: 3.188 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.04497/0.04497, allocations: 8.918 MB / 374.6 MB, free: 1.934 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: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") [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.002734/0.002734, allocations: 85.69 kB / 0.4897 GB, free: 4.312 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1162, allocations: 55.62 MB / 0.544 GB, free: 4.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.03516/0.1513, allocations: 28.94 MB / 0.5723 GB, free: 7.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0197/0.1711, allocations: 8.599 MB / 0.5807 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005642/0.1767, allocations: 254.7 kB / 0.5809 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02045/0.1971, allocations: 8.274 MB / 0.589 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01113/0.2083, allocations: 2.937 MB / 0.5919 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007336/0.2156, allocations: 1.931 MB / 0.5938 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01576/0.2314, allocations: 10.13 MB / 0.6036 GB, free: 7.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03108/0.2625, allocations: 14.04 MB / 0.6174 GB, free: 9.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009763/0.2722, allocations: 5.506 MB / 0.6227 GB, free: 3.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01149/0.2837, allocations: 6.156 MB / 0.6288 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004741/0.2884, allocations: 1.543 MB / 0.6303 GB, free: 11.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006685/0.2951, allocations: 1.914 MB / 0.6321 GB, free: 9.938 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00508/0.3002, allocations: 3 MB / 0.6351 GB, free: 6.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01219/0.3124, allocations: 5.864 MB / 0.6408 GB, free: 1.043 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5578/0.8702, allocations: 20.69 MB / 0.661 GB, free: 40.09 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.8702, allocations: 1.031 kB / 0.661 GB, free: 40.09 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8702, allocations: 0 / 0.661 GB, free: 40.09 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007681/0.871, allocations: 0 / 0.661 GB, free: 40.09 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.05013/0.9211, allocations: 12.01 MB / 0.6727 GB, free: 36.78 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.9212, allocations: 10.44 kB / 0.6727 GB, free: 36.78 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03372/0.9549, allocations: 5.599 MB / 0.6782 GB, free: 36.21 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/0.9724, allocations: 6.394 MB / 0.6844 GB, free: 35.29 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007968/0.9732, allocations: 0.6997 MB / 0.6851 GB, free: 35.26 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00469/0.9778, allocations: 0.935 MB / 0.686 GB, free: 35.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04165/1.02, allocations: 15.11 MB / 0.7008 GB, free: 27.83 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005915/1.02, allocations: 11.83 kB / 0.7008 GB, free: 27.83 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004271/1.024, allocations: 397.6 kB / 0.7012 GB, free: 27.53 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000515/1.025, allocations: 0.5197 MB / 0.7017 GB, free: 27.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03053/1.055, allocations: 13.77 MB / 0.7151 GB, free: 14.54 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08926/1.145, allocations: 46.54 MB / 0.7606 GB, free: 15.82 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01667/1.161, allocations: 8.269 MB / 0.7687 GB, free: 8.828 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/1.167, allocations: 2.633 MB / 0.7712 GB, free: 6.195 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004742/1.167, allocations: 112.5 kB / 0.7713 GB, free: 6.105 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.258e-05/1.167, allocations: 80.11 kB / 0.7714 GB, free: 6.02 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=372): time 6.102e-06/1.167, allocations: 0 / 0.7714 GB, free: 6.02 MB / 0.4982 GB Notification: Performance of matching and sorting (n=380): time 0.03563/1.203, allocations: 14.67 MB / 0.7857 GB, free: 7.363 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/1.203, allocations: 94.39 kB / 0.7858 GB, free: 7.258 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006772/1.21, allocations: 3.769 MB / 0.7895 GB, free: 3.504 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002899/1.21, allocations: 85.7 kB / 0.7896 GB, free: 3.414 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003664/1.214, allocations: 4.232 MB / 0.7937 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001666/1.215, allocations: 1.367 MB / 0.7951 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002145/1.217, allocations: 1.18 MB / 0.7962 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001469/1.218, allocations: 309.1 kB / 0.7965 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004606/1.222, allocations: 2.573 MB / 0.799 GB, free: 9.746 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007106/1.229, allocations: 5.064 MB / 0.804 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/1.242, allocations: 8.27 MB / 0.812 GB, free: 10.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.867e-05/1.242, allocations: 24 kB / 0.8121 GB, free: 10.43 MB / 0.545 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01713/1.259, allocations: 8.638 MB / 0.8205 GB, free: 2.273 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001045/1.259, allocations: 40 kB / 0.8205 GB, free: 2.234 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001863/1.259, allocations: 80 kB / 0.8206 GB, free: 2.156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/1.262, allocations: 0.8689 MB / 0.8215 GB, free: 1.285 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005039/1.267, allocations: 1.37 MB / 0.8228 GB, free: 16 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0142/1.281, allocations: 8.832 MB / 0.8314 GB, free: 7.012 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004744/1.286, allocations: 331.6 kB / 0.8317 GB, free: 6.688 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001084/1.287, allocations: 308 kB / 0.832 GB, free: 6.387 MB / 0.5607 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007577/1.295, allocations: 3.511 MB / 0.8355 GB, free: 2.961 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.296, allocations: 440.8 kB / 0.8359 GB, free: 2.531 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/1.309, allocations: 5.831 MB / 0.8416 GB, free: 12.69 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-05/1.309, allocations: 40 kB / 0.8416 GB, free: 12.65 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-05/1.309, allocations: 8 kB / 0.8416 GB, free: 12.64 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-05/1.309, allocations: 19.92 kB / 0.8416 GB, free: 12.62 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03313/1.343, allocations: 14.49 MB / 0.8558 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.65e-05/1.343, allocations: 7.938 kB / 0.8558 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003261/1.346, allocations: 0.6686 MB / 0.8565 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/1.348, allocations: 0.725 MB / 0.8572 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005663/1.349, allocations: 83.97 kB / 0.8573 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/1.362, allocations: 7.857 MB / 0.8649 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/1.362, allocations: 7.938 kB / 0.8649 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01717/1.379, allocations: 8.512 MB / 0.8732 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003067/1.382, allocations: 0.8472 MB / 0.8741 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.383, allocations: 71.95 kB / 0.8741 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002897/1.386, allocations: 179.9 kB / 0.8743 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008084/1.387, allocations: 274.2 kB / 0.8746 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004053/1.388, allocations: 112 kB / 0.8747 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.005845/1.393, allocations: 2.528 MB / 0.8772 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/1.393, allocations: 0 / 0.8772 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007339/1.401, allocations: 1.555 MB / 0.8787 GB, free: 6.574 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * 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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000958/1.402, allocations: 261.5 kB / 0.8789 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01315/1.415, allocations: 6.303 MB / 0.8851 GB, free: 280 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.415, allocations: 448 / 0.8851 GB, free: 280 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.2269/1.642, allocations: 2.762 MB / 0.8878 GB, free: 235.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004472/1.646, allocations: 0.9681 MB / 0.8887 GB, free: 235.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/1.676, allocations: 15.99 MB / 0.9043 GB, free: 229.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006934/1.683, allocations: 5.971 MB / 0.9102 GB, free: 227.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00506/1.688, allocations: 1.863 MB / 0.912 GB, free: 227.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.689, allocations: 363.5 kB / 0.9123 GB, free: 227.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.132e-06/1.689, allocations: 0 / 0.9123 GB, free: 227.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1056/1.795, allocations: 66.13 MB / 0.9769 GB, free: 165.1 MB / 0.6075 GB " [Timeout remaining time 658] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.955836737062782] Failed to read output from testmodel.py, exit status != 0: 1.8042448840569705 1.814490145 0.941519023 Calling exit ...