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.001061/0.001061, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001585/0.002646, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.9616/0.9616, allocations: 177.2 MB / 188.2 MB, free: 4.484 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1695/1.131, allocations: 53.64 MB / 241.9 MB, free: 2.715 MB / 234.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.0008354/0.0008354, allocations: 147.5 kB / 242.8 MB, free: 1.848 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001079/0.001914, allocations: 482.1 kB / 243.2 MB, free: 1.395 MB / 234.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.02341/0.02341, allocations: 6.659 MB / 250.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004751/0.02817, allocations: 2.669 MB / 253.3 MB, free: 7.531 MB / 250.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.493e-06/1.493e-06, allocations: 0 / 254.6 MB, free: 6.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.113e-05/2.262e-05, allocations: 2.312 kB / 254.6 MB, free: 6.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02119/0.02121, allocations: 27.22 MB / 281.8 MB, free: 10.9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.03898, allocations: 8.918 MB / 290.7 MB, free: 1.949 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006322/0.0453, allocations: 254.7 kB / 291 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01338/0.05868, allocations: 8.629 MB / 299.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009169/0.06785, allocations: 2.912 MB / 302.5 MB, free: 6.102 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004814/0.07267, allocations: 1.881 MB / 304.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.08534, allocations: 10.53 MB / 314.9 MB, free: 9.648 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.212/0.2973, allocations: 13.98 MB / 328.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009652/0.307, allocations: 8.563 MB / 337.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004518/0.3115, allocations: 5.987 MB / 343.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001478/0.313, allocations: 1.535 MB / 345 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.315, allocations: 1.91 MB / 346.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.3163, allocations: 2.45 MB / 349.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002502/0.3188, allocations: 3.318 MB / 352.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005877/0.3246, allocations: 9.376 MB / 362 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.581e-05/0.3247, allocations: 0.875 kB / 362 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3247, allocations: 0 / 362 MB, free: 5.176 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001554/0.3248, allocations: 1.219 kB / 362 MB, free: 5.176 MB / 314.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.01819/0.343, allocations: 13.43 MB / 375.5 MB, free: 9.766 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.343, allocations: 10.22 kB / 375.5 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01734/0.3604, allocations: 5.633 MB / 381.1 MB, free: 4.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007523/0.3679, allocations: 3.336 MB / 384.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004637/0.3684, allocations: 0.7072 MB / 385.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002197/0.3706, allocations: 0.9277 MB / 386.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.016/0.3866, allocations: 7.667 MB / 393.7 MB, free: 8.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/0.3868, allocations: 16.53 kB / 393.8 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00132/0.3881, allocations: 393.8 kB / 394.2 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003771/0.3885, allocations: 0.5194 MB / 394.7 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.3986, allocations: 3.861 MB / 398.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04604/0.4446, allocations: 29.6 MB / 428.1 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005848/0.4505, allocations: 4.791 MB / 432.9 MB, free: 2.059 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.4517, allocations: 0.9332 MB / 433.9 MB, free: 1.156 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002221/0.4519, allocations: 122.8 kB / 434 MB, free: 1.035 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.4519, allocations: 80.89 kB / 434.1 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of pre-optimization done (n=372): time 5.761e-06/0.4519, allocations: 0 / 434.1 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of matching and sorting (n=380): time 0.01249/0.4644, allocations: 6.469 MB / 440.5 MB, free: 10.53 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.4645, allocations: 90.39 kB / 440.6 MB, free: 10.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00272/0.4672, allocations: 2.498 MB / 443.1 MB, free: 8.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.4674, allocations: 85.7 kB / 443.2 MB, free: 8.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001985/0.4694, allocations: 3.894 MB / 447.1 MB, free: 4.578 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008173/0.4702, allocations: 1.356 MB / 448.4 MB, free: 3.297 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001087/0.4713, allocations: 1.083 MB / 449.5 MB, free: 2.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.222e-05/0.4714, allocations: 305.1 kB / 449.8 MB, free: 2.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008618/0.4722, allocations: 0.5505 MB / 450.4 MB, free: 1.465 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.4745, allocations: 3.094 MB / 453.5 MB, free: 13.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003926/0.4785, allocations: 4.446 MB / 457.9 MB, free: 8.254 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.746e-05/0.4785, allocations: 24 kB / 457.9 MB, free: 8.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.005716/0.4842, allocations: 3.88 MB / 461.8 MB, free: 4.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.935e-05/0.4843, allocations: 42.03 kB / 461.9 MB, free: 4.848 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/0.4844, allocations: 80 kB / 461.9 MB, free: 4.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.486, allocations: 0.7592 MB / 462.7 MB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.4888, allocations: 1.446 MB / 464.1 MB, free: 2.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005023/0.4939, allocations: 4.921 MB / 469.1 MB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002529/0.4964, allocations: 239.8 kB / 469.3 MB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003854/0.4968, allocations: 248 kB / 469.5 MB, free: 13.23 MB / 426.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.002116/0.4989, allocations: 0.5207 MB / 470.1 MB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007177/0.4996, allocations: 371 kB / 470.4 MB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003313/0.5029, allocations: 2.442 MB / 472.9 MB, free: 9.996 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.503, allocations: 44 kB / 472.9 MB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.503, allocations: 11.94 kB / 472.9 MB, free: 9.941 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.503, allocations: 23.92 kB / 472.9 MB, free: 9.918 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.513, allocations: 6.527 MB / 479.5 MB, free: 3.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.513, allocations: 4 kB / 479.5 MB, free: 3.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.5146, allocations: 0.6811 MB / 480.2 MB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.516, allocations: 493.1 kB / 480.6 MB, free: 2.848 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.5172, allocations: 0.6239 MB / 481.3 MB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.5174, allocations: 79.91 kB / 481.3 MB, free: 2.156 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1593/0.6767, allocations: 4.467 MB / 485.8 MB, free: 98.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.31e-05/0.6767, allocations: 7.141 kB / 485.8 MB, free: 98.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004974/0.6817, allocations: 2.977 MB / 488.8 MB, free: 98.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005263/0.6822, allocations: 68.12 kB / 488.9 MB, free: 98.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008708/0.6831, allocations: 94.39 kB / 489 MB, free: 98.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003436/0.6834, allocations: 261 kB / 489.2 MB, free: 98.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.6836, allocations: 78.98 kB / 489.3 MB, free: 98.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001533/0.6851, allocations: 1.133 MB / 490.4 MB, free: 97.97 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6851, allocations: 0 / 490.4 MB, free: 97.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003748/0.6889, allocations: 1.546 MB / 492 MB, free: 97.97 MB / 426.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.0004303/0.6893, allocations: 237 kB / 492.2 MB, free: 97.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.6931, allocations: 3.14 MB / 495.3 MB, free: 97.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002069/0.6933, allocations: 94.52 kB / 495.4 MB, free: 97.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6948, allocations: 1.539 MB / 497 MB, free: 97.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/0.6973, allocations: 1.231 MB / 498.2 MB, free: 97.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05365/0.751, allocations: 13.4 MB / 0.4996 GB, free: 92.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001936/0.7529, allocations: 1.785 MB / 0.5013 GB, free: 91.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002055/0.755, allocations: 0.669 MB / 0.502 GB, free: 91.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/0.7565, allocations: 0.9064 MB / 0.5029 GB, free: 91.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.784e-06/0.7565, allocations: 0 / 0.5029 GB, free: 91.77 MB / 426.7 MB Notification: Performance of Templates: time 0.07378/0.8303, allocations: 62.93 MB / 0.5643 GB, free: 44.13 MB / 426.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: 4.773337342776358]