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.001337/0.001337, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.483/1.483, allocations: 230.6 MB / 253.4 MB, free: 14.29 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.001759/0.001759, allocations: 212.8 kB / 310 MB, free: 3.082 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.04198/0.04198, allocations: 8.916 MB / 375.3 MB, free: 6.59 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.002651/0.002651, allocations: 91.86 kB / 0.4904 GB, free: 44.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.09403, allocations: 55.61 MB / 0.5447 GB, free: 4.539 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2513/0.3453, allocations: 24.74 MB / 0.5689 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.3621, allocations: 8.225 MB / 0.5769 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006377/0.3684, allocations: 252 kB / 0.5771 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01894/0.3874, allocations: 7.613 MB / 0.5846 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01219/0.3996, allocations: 2.855 MB / 0.5873 GB, free: 4.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006205/0.4058, allocations: 1.845 MB / 0.5891 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0138/0.4196, allocations: 10.13 MB / 0.599 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02756/0.4471, allocations: 13.88 MB / 0.6126 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01097/0.4581, allocations: 5.514 MB / 0.618 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01249/0.4706, allocations: 5.87 MB / 0.6237 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004682/0.4753, allocations: 1.539 MB / 0.6252 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007177/0.4824, allocations: 1.89 MB / 0.6271 GB, free: 9.078 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005191/0.4876, allocations: 2.989 MB / 0.63 GB, free: 6.082 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0104/0.498, allocations: 4.564 MB / 0.6344 GB, free: 1.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02822/0.5262, allocations: 20.78 MB / 0.6547 GB, free: 12.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.5263, allocations: 0 / 0.6547 GB, free: 12.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5263, allocations: 0 / 0.6547 GB, free: 12.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006107/0.5269, allocations: 0 / 0.6547 GB, free: 12.66 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03762/0.5645, allocations: 12 MB / 0.6664 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.5645, allocations: 11.98 kB / 0.6665 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03137/0.5959, allocations: 5.605 MB / 0.6719 GB, free: 10.93 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01687/0.6128, allocations: 6.391 MB / 0.6782 GB, free: 4.449 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000858/0.6136, allocations: 0.7025 MB / 0.6789 GB, free: 3.746 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004281/0.6179, allocations: 0.9257 MB / 0.6798 GB, free: 2.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04155/0.6595, allocations: 15.26 MB / 0.6947 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004471/0.6599, allocations: 19.91 kB / 0.6947 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003245/0.6632, allocations: 392 kB / 0.6951 GB, free: 3.047 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006398/0.6638, allocations: 0.5155 MB / 0.6956 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03346/0.6973, allocations: 13.71 MB / 0.7089 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09334/0.7906, allocations: 41.29 MB / 0.7493 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01713/0.8077, allocations: 8.18 MB / 0.7573 GB, free: 3.41 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005479/0.8132, allocations: 2.64 MB / 0.7598 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000546/0.8138, allocations: 90.84 kB / 0.7599 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.8139, allocations: 69.48 kB / 0.76 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=372): time 1.099e-05/0.8139, allocations: 7.984 kB / 0.76 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of matching and sorting (n=380): time 0.03715/0.851, allocations: 14.58 MB / 0.7742 GB, free: 1.949 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.8512, allocations: 94.39 kB / 0.7743 GB, free: 1.844 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4695/1.321, allocations: 3.638 MB / 0.7779 GB, free: 163.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007131/1.321, allocations: 87.33 kB / 0.778 GB, free: 163.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002183/1.324, allocations: 4.233 MB / 0.7821 GB, free: 162.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001267/1.325, allocations: 1.373 MB / 0.7834 GB, free: 161.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001675/1.326, allocations: 1.174 MB / 0.7846 GB, free: 161.8 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.271e-05/1.326, allocations: 305.5 kB / 0.7849 GB, free: 161.5 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004057/1.331, allocations: 2.572 MB / 0.7874 GB, free: 161 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005505/1.336, allocations: 5.085 MB / 0.7924 GB, free: 156.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009992/1.346, allocations: 8.26 MB / 0.8004 GB, free: 151 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001726/1.346, allocations: 23.38 kB / 0.8005 GB, free: 151 MB / 0.545 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01702/1.363, allocations: 8.602 MB / 0.8089 GB, free: 147.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.363, allocations: 41.25 kB / 0.8089 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002175/1.364, allocations: 86.38 kB / 0.809 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00253/1.366, allocations: 0.848 MB / 0.8098 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005033/1.371, allocations: 1.371 MB / 0.8111 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009995/1.381, allocations: 8.561 MB / 0.8195 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/1.386, allocations: 330.1 kB / 0.8198 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009455/1.387, allocations: 306 kB / 0.8201 GB, free: 141.8 MB / 0.545 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.006043/1.393, allocations: 3.515 MB / 0.8235 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.394, allocations: 414 kB / 0.8239 GB, free: 139.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00866/1.402, allocations: 5.816 MB / 0.8296 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.619e-05/1.402, allocations: 42.16 kB / 0.8297 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/1.402, allocations: 7.656 kB / 0.8297 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.972e-05/1.403, allocations: 22.62 kB / 0.8297 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02073/1.423, allocations: 12.54 MB / 0.8419 GB, free: 129.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/1.423, allocations: 0 / 0.8419 GB, free: 129.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/1.426, allocations: 0.67 MB / 0.8426 GB, free: 128.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001819/1.427, allocations: 0.7068 MB / 0.8433 GB, free: 127.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003334/1.428, allocations: 83.92 kB / 0.8434 GB, free: 127.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00783/1.436, allocations: 7.611 MB / 0.8508 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.436, allocations: 4 kB / 0.8508 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01083/1.446, allocations: 8.472 MB / 0.8591 GB, free: 111.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002488/1.449, allocations: 0.8209 MB / 0.8599 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008241/1.45, allocations: 79.92 kB / 0.8599 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/1.452, allocations: 171.8 kB / 0.8601 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004332/1.452, allocations: 274.5 kB / 0.8604 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001997/1.452, allocations: 112 kB / 0.8605 GB, free: 110 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003041/1.455, allocations: 2.335 MB / 0.8628 GB, free: 107.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.1e-08/1.455, allocations: 0 / 0.8628 GB, free: 107.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005295/1.461, allocations: 1.555 MB / 0.8643 GB, free: 106.1 MB / 0.545 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.0006106/1.461, allocations: 242.2 kB / 0.8645 GB, free: 105.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009212/1.471, allocations: 6.307 MB / 0.8707 GB, free: 99.56 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/1.471, allocations: 0 / 0.8707 GB, free: 99.56 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004085/1.475, allocations: 2.756 MB / 0.8734 GB, free: 96.79 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/1.479, allocations: 0.9094 MB / 0.8742 GB, free: 95.93 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.505, allocations: 15.7 MB / 0.8896 GB, free: 80.14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007281/1.513, allocations: 5.336 MB / 0.8948 GB, free: 74.76 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/1.514, allocations: 395.3 kB / 0.8952 GB, free: 74.37 MB / 0.545 GB Notification: Performance of SimCode: time 1.714e-06/1.514, allocations: 4 kB / 0.8952 GB, free: 74.37 MB / 0.545 GB Notification: Performance of Templates: time 0.4966/2.011, allocations: 209.5 MB / 1.1 GB, free: 112.2 MB / 0.5763 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: 17.419148353859782] Failed to read output from testmodel.py, exit status != 0: 2.020567470230162 2.030960286 1.502009016 Calling exit ...