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.001536/0.001536, allocations: 88.22 kB / 19.65 MB, free: 272 kB / 13.93 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 0.957/0.957, allocations: 177.2 MB / 200 MB, free: 5.84 MB / 186.7 MB " [Timeout remaining time 179] 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.001743/0.001743, allocations: 159.5 kB / 256.6 MB, free: 13.15 MB / 250.7 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.02837/0.02837, allocations: 6.663 MB / 319.8 MB, free: 26.5 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 391.7 MB, free: 2.527 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.602e-05, allocations: 2.312 kB / 391.7 MB, free: 2.523 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1537/0.1537, allocations: 27.76 MB / 419.4 MB, free: 69.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.1688, allocations: 8.458 MB / 427.9 MB, free: 65.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005143/0.1739, allocations: 251.3 kB / 428.1 MB, free: 65.28 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009888/0.1838, allocations: 8.628 MB / 436.8 MB, free: 59.85 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007466/0.1913, allocations: 2.933 MB / 439.7 MB, free: 57.53 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003634/0.1949, allocations: 1.9 MB / 441.6 MB, free: 56.06 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008997/0.2039, allocations: 10.47 MB / 452.1 MB, free: 46.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01674/0.2206, allocations: 13.93 MB / 466 MB, free: 32.73 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01006/0.2307, allocations: 8.214 MB / 474.2 MB, free: 24.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007095/0.2378, allocations: 5.856 MB / 480.1 MB, free: 18.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003028/0.2408, allocations: 1.543 MB / 481.6 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004477/0.2453, allocations: 1.901 MB / 483.5 MB, free: 15.19 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002016/0.2473, allocations: 3.105 MB / 486.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005073/0.2524, allocations: 3.969 MB / 490.6 MB, free: 8.102 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.2636, allocations: 9.917 MB / 0.4888 GB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.2636, allocations: 0 / 0.4888 GB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2636, allocations: 0 / 0.4888 GB, free: 14.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005288/0.2642, allocations: 0 / 0.4888 GB, free: 14.16 MB / 346.7 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.02156/0.2857, allocations: 12.79 MB / 0.5013 GB, free: 1.262 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2858, allocations: 15.97 kB / 0.5013 GB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01703/0.3028, allocations: 7.049 MB / 0.5082 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00957/0.3123, allocations: 6.066 MB / 0.5141 GB, free: 4.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005923/0.3129, allocations: 0.7106 MB / 0.5148 GB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002272/0.3152, allocations: 0.9295 MB / 0.5157 GB, free: 2.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02057/0.3358, allocations: 8.179 MB / 0.5237 GB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002355/0.336, allocations: 11.95 kB / 0.5237 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009761/0.337, allocations: 392 kB / 0.5241 GB, free: 9.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004884/0.3375, allocations: 0.5155 MB / 0.5246 GB, free: 9.164 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/0.3518, allocations: 4.411 MB / 0.5289 GB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1877/0.5395, allocations: 38.65 MB / 0.5666 GB, free: 74.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007507/0.547, allocations: 7.19 MB / 0.5736 GB, free: 73.85 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.5485, allocations: 1.254 MB / 0.5749 GB, free: 73.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002209/0.5488, allocations: 118.1 kB / 0.575 GB, free: 73.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.57e-05/0.5488, allocations: 73.25 kB / 0.5751 GB, free: 73.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=372): time 6.453e-06/0.5488, allocations: 0 / 0.5751 GB, free: 73.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=380): time 0.01396/0.5628, allocations: 8.853 MB / 0.5837 GB, free: 72.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.5628, allocations: 94.77 kB / 0.5838 GB, free: 71.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003121/0.5659, allocations: 3.452 MB / 0.5872 GB, free: 71.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.5661, allocations: 84.33 kB / 0.5872 GB, free: 71.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.5673, allocations: 4.464 MB / 0.5916 GB, free: 68.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005375/0.5679, allocations: 1.398 MB / 0.593 GB, free: 68.03 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/0.5689, allocations: 1.306 MB / 0.5942 GB, free: 67.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.334e-05/0.569, allocations: 480.7 kB / 0.5947 GB, free: 67.44 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.5702, allocations: 0.8381 MB / 0.5955 GB, free: 67.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/0.5723, allocations: 4.571 MB / 0.6 GB, free: 62.88 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.5761, allocations: 6.041 MB / 0.6059 GB, free: 57.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-05/0.5762, allocations: 24 kB / 0.6059 GB, free: 57.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.006008/0.5822, allocations: 5.293 MB / 0.6111 GB, free: 53.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.5822, allocations: 48.03 kB / 0.6111 GB, free: 53.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.697e-05/0.5823, allocations: 80 kB / 0.6112 GB, free: 53.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.5838, allocations: 0.8234 MB / 0.612 GB, free: 53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/0.586, allocations: 1.363 MB / 0.6133 GB, free: 51.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004864/0.5909, allocations: 6.817 MB / 0.62 GB, free: 46.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.5928, allocations: 330.6 kB / 0.6203 GB, free: 46.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002483/0.593, allocations: 308 kB / 0.6206 GB, free: 45.75 MB / 394.7 MB 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.001526/0.5945, allocations: 0.5625 MB / 0.6211 GB, free: 45.28 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005051/0.5951, allocations: 0.5247 MB / 0.6217 GB, free: 44.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/0.5989, allocations: 3.338 MB / 0.6249 GB, free: 41.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.599, allocations: 44.42 kB / 0.625 GB, free: 41.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.599, allocations: 8 kB / 0.625 GB, free: 41.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.599, allocations: 19.92 kB / 0.625 GB, free: 41.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/0.6105, allocations: 10.48 MB / 0.6352 GB, free: 30.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.6106, allocations: 0 / 0.6352 GB, free: 30.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.6119, allocations: 0.6825 MB / 0.6359 GB, free: 30.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001311/0.6132, allocations: 0.679 MB / 0.6366 GB, free: 29.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.6133, allocations: 87.97 kB / 0.6366 GB, free: 29.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004073/0.6174, allocations: 6.272 MB / 0.6428 GB, free: 23.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6174, allocations: 4 kB / 0.6428 GB, free: 23.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004856/0.6223, allocations: 4.187 MB / 0.6469 GB, free: 18.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000998/0.6232, allocations: 0.7509 MB / 0.6476 GB, free: 17.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002684/0.6235, allocations: 71.95 kB / 0.6477 GB, free: 17.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008514/0.6244, allocations: 179.8 kB / 0.6478 GB, free: 17.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/0.6246, allocations: 274.3 kB / 0.6481 GB, free: 17.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.6248, allocations: 112 kB / 0.6482 GB, free: 17.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001515/0.6263, allocations: 1.578 MB / 0.6497 GB, free: 15.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6263, allocations: 0 / 0.6497 GB, free: 15.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005268/0.6315, allocations: 1.551 MB / 0.6512 GB, free: 14.24 MB / 394.7 MB 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.0004937/0.632, allocations: 256.3 kB / 0.6515 GB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006887/0.6389, allocations: 3.997 MB / 0.6554 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6389, allocations: 4 kB / 0.6554 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002823/0.6418, allocations: 1.967 MB / 0.6573 GB, free: 8.293 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/0.6452, allocations: 0.9273 MB / 0.6582 GB, free: 7.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/0.667, allocations: 13.38 MB / 0.6713 GB, free: 9.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/0.6695, allocations: 2.475 MB / 0.6737 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003595/0.6731, allocations: 1.571 MB / 0.6752 GB, free: 5.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006859/0.6738, allocations: 352.4 kB / 0.6756 GB, free: 5.477 MB / 410.7 MB Notification: Performance of SimCode: time 1.452e-06/0.6738, allocations: 1.203 kB / 0.6756 GB, free: 5.477 MB / 410.7 MB Notification: Performance of Templates: time 0.1989/0.8727, allocations: 55.48 MB / 0.7298 GB, free: 133.4 MB / 442.7 MB " [Timeout remaining time 659] 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=240 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.170119716785848]