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.001806/0.001806, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.439/1.439, allocations: 177.2 MB / 200.1 MB, free: 9.27 MB / 190.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.001616/0.001616, allocations: 165.4 kB / 256.6 MB, free: 0.7578 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.03878/0.03878, allocations: 6.665 MB / 319.6 MB, free: 12.07 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.002639/0.002639, allocations: 83.88 kB / 446.4 MB, free: 2.773 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3055, allocations: 55.59 MB / 0.4903 GB, free: 76.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02226/0.3278, allocations: 24.75 MB / 0.5144 GB, free: 59.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.3446, allocations: 8.227 MB / 0.5225 GB, free: 54.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005848/0.3505, allocations: 251 kB / 0.5227 GB, free: 53.96 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01677/0.3673, allocations: 8.004 MB / 0.5305 GB, free: 49.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009418/0.3767, allocations: 2.863 MB / 0.5333 GB, free: 47.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005746/0.3824, allocations: 1.86 MB / 0.5351 GB, free: 46.56 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.3972, allocations: 10.12 MB / 0.545 GB, free: 41.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02575/0.423, allocations: 13.88 MB / 0.5586 GB, free: 33.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009547/0.4325, allocations: 5.505 MB / 0.564 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01242/0.4449, allocations: 5.877 MB / 0.5697 GB, free: 27.98 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005843/0.4508, allocations: 1.543 MB / 0.5712 GB, free: 26.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008998/0.4598, allocations: 1.888 MB / 0.573 GB, free: 24.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007046/0.4668, allocations: 2.997 MB / 0.576 GB, free: 21.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01142/0.4782, allocations: 4.549 MB / 0.5804 GB, free: 17.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0239/0.5021, allocations: 20.78 MB / 0.6007 GB, free: 12.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.5021, allocations: 0 / 0.6007 GB, free: 12.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5021, allocations: 3.938 kB / 0.6007 GB, free: 12.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006483/0.5028, allocations: 0 / 0.6007 GB, free: 12.42 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.04245/0.5452, allocations: 12 MB / 0.6124 GB, free: 332 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5453, allocations: 12.03 kB / 0.6124 GB, free: 320 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03352/0.5788, allocations: 5.607 MB / 0.6179 GB, free: 10.69 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01631/0.5951, allocations: 6.393 MB / 0.6242 GB, free: 4.207 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000992/0.5961, allocations: 0.7064 MB / 0.6249 GB, free: 3.5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005033/0.6011, allocations: 0.9218 MB / 0.6258 GB, free: 2.578 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0448/0.646, allocations: 15.26 MB / 0.6407 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004934/0.6464, allocations: 19.89 kB / 0.6407 GB, free: 3.184 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002996/0.6494, allocations: 391.9 kB / 0.6411 GB, free: 2.801 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006935/0.6501, allocations: 0.5155 MB / 0.6416 GB, free: 2.281 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05079/0.7009, allocations: 13.72 MB / 0.655 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4892/1.19, allocations: 41.32 MB / 0.6953 GB, free: 83.78 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02516/1.215, allocations: 8.167 MB / 0.7033 GB, free: 81.54 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007539/1.223, allocations: 2.633 MB / 0.7059 GB, free: 80.55 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006309/1.223, allocations: 95.73 kB / 0.7059 GB, free: 80.54 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.74e-05/1.224, allocations: 75.17 kB / 0.706 GB, free: 80.46 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=372): time 1.617e-05/1.224, allocations: 1.375 kB / 0.706 GB, free: 80.46 MB / 0.4982 GB Notification: Performance of matching and sorting (n=380): time 0.03853/1.262, allocations: 14.58 MB / 0.7203 GB, free: 74.54 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/1.262, allocations: 90.83 kB / 0.7203 GB, free: 74.48 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00878/1.271, allocations: 3.642 MB / 0.7239 GB, free: 73.15 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0006664/1.272, allocations: 86.86 kB / 0.724 GB, free: 73.07 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003311/1.275, allocations: 4.248 MB / 0.7281 GB, free: 70.32 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/1.277, allocations: 1.368 MB / 0.7295 GB, free: 69.27 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002892/1.279, allocations: 1.18 MB / 0.7306 GB, free: 68.69 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.484e-05/1.279, allocations: 305.1 kB / 0.7309 GB, free: 68.39 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004135/1.284, allocations: 2.579 MB / 0.7334 GB, free: 67.43 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004579/1.288, allocations: 5.077 MB / 0.7384 GB, free: 63.23 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007781/1.296, allocations: 8.262 MB / 0.7465 GB, free: 57.36 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.674e-05/1.296, allocations: 30.06 kB / 0.7465 GB, free: 57.35 MB / 0.4982 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01149/1.308, allocations: 8.595 MB / 0.7549 GB, free: 53.07 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 5.24e-05/1.308, allocations: 38.44 kB / 0.7549 GB, free: 53.07 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-05/1.308, allocations: 82.81 kB / 0.755 GB, free: 53.07 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/1.31, allocations: 0.8607 MB / 0.7558 GB, free: 52.53 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003919/1.314, allocations: 1.361 MB / 0.7572 GB, free: 51.16 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009005/1.323, allocations: 8.575 MB / 0.7655 GB, free: 42.38 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/1.326, allocations: 331.7 kB / 0.7659 GB, free: 42.06 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005947/1.327, allocations: 308 kB / 0.7661 GB, free: 41.76 MB / 0.4982 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.004809/1.332, allocations: 3.517 MB / 0.7696 GB, free: 38.23 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/1.333, allocations: 409.4 kB / 0.77 GB, free: 37.82 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009458/1.342, allocations: 5.823 MB / 0.7757 GB, free: 31.96 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.649e-05/1.342, allocations: 40 kB / 0.7757 GB, free: 31.92 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.681e-05/1.342, allocations: 8 kB / 0.7757 GB, free: 31.91 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-05/1.343, allocations: 19.92 kB / 0.7757 GB, free: 31.89 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02108/1.364, allocations: 12.54 MB / 0.788 GB, free: 19.33 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/1.364, allocations: 7.938 kB / 0.788 GB, free: 19.32 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.366, allocations: 0.6635 MB / 0.7886 GB, free: 18.66 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/1.368, allocations: 0.7172 MB / 0.7893 GB, free: 17.93 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/1.368, allocations: 83.97 kB / 0.7894 GB, free: 17.85 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007718/1.376, allocations: 7.604 MB / 0.7968 GB, free: 10.06 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.376, allocations: 4.031 kB / 0.7968 GB, free: 10.05 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01048/1.386, allocations: 8.479 MB / 0.8051 GB, free: 1.469 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/1.388, allocations: 0.8095 MB / 0.8059 GB, free: 0.6562 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007666/1.389, allocations: 79.95 kB / 0.806 GB, free: 0.5781 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002016/1.391, allocations: 183.8 kB / 0.8062 GB, free: 408 kB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004026/1.391, allocations: 266.5 kB / 0.8064 GB, free: 140 kB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/1.392, allocations: 112 kB / 0.8065 GB, free: 28 kB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004406/1.396, allocations: 2.343 MB / 0.8088 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.6e-07/1.396, allocations: 0 / 0.8088 GB, free: 13.7 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006149/1.402, allocations: 1.547 MB / 0.8103 GB, free: 12.15 MB / 0.5138 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.0006791/1.403, allocations: 256.7 kB / 0.8106 GB, free: 11.89 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01194/1.415, allocations: 6.298 MB / 0.8167 GB, free: 5.57 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/1.415, allocations: 384 / 0.8167 GB, free: 5.57 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005221/1.42, allocations: 2.754 MB / 0.8194 GB, free: 2.789 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005207/1.425, allocations: 0.8941 MB / 0.8203 GB, free: 1.914 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03233/1.458, allocations: 15.95 MB / 0.8359 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01213/1.47, allocations: 5.527 MB / 0.8412 GB, free: 12.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005816/1.476, allocations: 1.837 MB / 0.843 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/1.477, allocations: 348.4 kB / 0.8434 GB, free: 10.12 MB / 0.545 GB Notification: Performance of SimCode: time 1.423e-06/1.477, allocations: 0 / 0.8434 GB, free: 10.12 MB / 0.545 GB Notification: Performance of Templates: time 0.3549/1.832, allocations: 55.72 MB / 0.8978 GB, free: 165.4 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 -s ida -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.330700766993687] Failed to read output from testmodel.py, exit status != 0: 1.84215470100753 1.851065951 1.346150123 Calling exit ...