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.001865/0.001865, allocations: 85.48 kB / 19.44 MB, free: 344 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 1.667/1.667, allocations: 177.1 MB / 199.7 MB, free: 5.805 MB / 186.7 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.00204/0.00204, allocations: 156.6 kB / 256.3 MB, free: 13.16 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.04114/0.04114, allocations: 6.655 MB / 319.4 MB, free: 26.57 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.773e-06/1.773e-06, allocations: 0 / 390.9 MB, free: 2.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.817e-05/2.995e-05, allocations: 2.312 kB / 391 MB, free: 2.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1631/0.1631, allocations: 27.55 MB / 418.5 MB, free: 69.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.1796, allocations: 8.458 MB / 427 MB, free: 65.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005733/0.1853, allocations: 256.3 kB / 427.2 MB, free: 65.39 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01728/0.2026, allocations: 8.588 MB / 435.8 MB, free: 60.07 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008561/0.2111, allocations: 2.927 MB / 438.7 MB, free: 57.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0046/0.2157, allocations: 1.904 MB / 440.6 MB, free: 56.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009809/0.2255, allocations: 10.47 MB / 451.1 MB, free: 47.21 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02084/0.2464, allocations: 13.93 MB / 465 MB, free: 33.15 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01665/0.263, allocations: 8.206 MB / 473.2 MB, free: 24.93 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009092/0.2721, allocations: 5.829 MB / 479.1 MB, free: 19.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003786/0.2759, allocations: 1.539 MB / 480.6 MB, free: 17.55 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005634/0.2815, allocations: 1.913 MB / 482.5 MB, free: 15.64 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003168/0.2847, allocations: 3.097 MB / 485.6 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007005/0.2917, allocations: 3.973 MB / 489.6 MB, free: 8.555 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02579/0.3175, allocations: 21.06 MB / 0.4987 GB, free: 3.441 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.307e-06/0.3175, allocations: 8 kB / 0.4987 GB, free: 3.434 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3175, allocations: 0 / 0.4987 GB, free: 3.434 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005138/0.318, allocations: 0 / 0.4987 GB, free: 3.434 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.04042/0.3584, allocations: 13.8 MB / 0.5121 GB, free: 5.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.3585, allocations: 8.031 kB / 0.5122 GB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03664/0.3951, allocations: 7.049 MB / 0.519 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/0.4115, allocations: 6.085 MB / 0.525 GB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008523/0.4124, allocations: 0.7067 MB / 0.5257 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00359/0.4159, allocations: 0.9373 MB / 0.5266 GB, free: 6.637 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04054/0.4565, allocations: 15.54 MB / 0.5418 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003029/0.4568, allocations: 15.95 kB / 0.5418 GB, free: 6.949 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.4586, allocations: 388 kB / 0.5422 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006619/0.4593, allocations: 0.5194 MB / 0.5427 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2793/0.7386, allocations: 12.17 MB / 0.5545 GB, free: 111.7 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08879/0.8274, allocations: 72.16 MB / 0.625 GB, free: 51.39 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01213/0.8395, allocations: 7.697 MB / 0.6325 GB, free: 44.91 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003064/0.8425, allocations: 2.259 MB / 0.6347 GB, free: 42.65 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.8429, allocations: 114.8 kB / 0.6349 GB, free: 42.54 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.683e-05/0.843, allocations: 76.31 kB / 0.6349 GB, free: 42.45 MB / 394.8 MB Notification: Performance of pre-optimization done (n=372): time 1.006e-05/0.843, allocations: 0 / 0.6349 GB, free: 42.45 MB / 394.8 MB Notification: Performance of matching and sorting (n=380): time 0.02514/0.8681, allocations: 12.82 MB / 0.6474 GB, free: 29.96 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.8681, allocations: 90.39 kB / 0.6475 GB, free: 29.86 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006163/0.8743, allocations: 5.328 MB / 0.6527 GB, free: 24.64 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000505/0.8748, allocations: 85.7 kB / 0.6528 GB, free: 24.55 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002068/0.8769, allocations: 4.73 MB / 0.6574 GB, free: 19.91 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.8781, allocations: 1.491 MB / 0.6589 GB, free: 18.44 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001856/0.88, allocations: 1.546 MB / 0.6604 GB, free: 16.88 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 5.634e-05/0.8801, allocations: 476.8 kB / 0.6609 GB, free: 16.41 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/0.8828, allocations: 2.112 MB / 0.6629 GB, free: 14.29 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00404/0.8868, allocations: 6.067 MB / 0.6688 GB, free: 6.617 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.8972, allocations: 9.125 MB / 0.6778 GB, free: 11.88 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.8974, allocations: 28 kB / 0.6778 GB, free: 11.86 MB / 410.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01732/0.9147, allocations: 8.012 MB / 0.6856 GB, free: 3.809 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.793e-05/0.9148, allocations: 43.94 kB / 0.6856 GB, free: 3.766 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001601/0.9149, allocations: 87.98 kB / 0.6857 GB, free: 3.68 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003761/0.9187, allocations: 1.025 MB / 0.6867 GB, free: 2.645 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00544/0.9241, allocations: 1.365 MB / 0.6881 GB, free: 1.277 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/0.9391, allocations: 9.777 MB / 0.6976 GB, free: 7.262 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004485/0.9436, allocations: 327.6 kB / 0.6979 GB, free: 6.941 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007988/0.9444, allocations: 308 kB / 0.6982 GB, free: 6.641 MB / 426.8 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.006263/0.9507, allocations: 3.254 MB / 0.7014 GB, free: 3.371 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/0.952, allocations: 0.5247 MB / 0.7019 GB, free: 2.844 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1544/1.106, allocations: 5.026 MB / 0.7068 GB, free: 119.5 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-05/1.106, allocations: 37.34 kB / 0.7069 GB, free: 119.5 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/1.106, allocations: 8.219 kB / 0.7069 GB, free: 119.5 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.185e-05/1.107, allocations: 20.39 kB / 0.7069 GB, free: 119.5 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02818/1.135, allocations: 15.76 MB / 0.7223 GB, free: 118.3 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.135, allocations: 2.5 kB / 0.7223 GB, free: 118.3 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/1.138, allocations: 0.6726 MB / 0.7229 GB, free: 118.3 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002821/1.141, allocations: 0.8715 MB / 0.7238 GB, free: 118.2 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004665/1.141, allocations: 86.38 kB / 0.7239 GB, free: 118.2 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008756/1.15, allocations: 8.788 MB / 0.7324 GB, free: 113.2 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.15, allocations: 3.688 kB / 0.7324 GB, free: 113.2 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/1.16, allocations: 7.147 MB / 0.7394 GB, free: 110.4 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/1.163, allocations: 0.7486 MB / 0.7402 GB, free: 110.2 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008565/1.164, allocations: 70.84 kB / 0.7402 GB, free: 110.2 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002078/1.166, allocations: 183.9 kB / 0.7404 GB, free: 110.1 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005514/1.166, allocations: 270.6 kB / 0.7407 GB, free: 110.1 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000239/1.167, allocations: 118.8 kB / 0.7408 GB, free: 110 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003845/1.171, allocations: 2.676 MB / 0.7434 GB, free: 108.9 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.31e-07/1.171, allocations: 1.312 kB / 0.7434 GB, free: 108.9 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.007713/1.178, allocations: 1.553 MB / 0.7449 GB, free: 108.8 MB / 426.8 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.0008227/1.179, allocations: 245.2 kB / 0.7451 GB, free: 108.6 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.009136/1.188, allocations: 6.225 MB / 0.7512 GB, free: 106.2 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.188, allocations: 0 / 0.7512 GB, free: 106.2 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003953/1.192, allocations: 2.767 MB / 0.7539 GB, free: 104.1 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004805/1.197, allocations: 0.9194 MB / 0.7548 GB, free: 103.5 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02329/1.22, allocations: 14.89 MB / 0.7694 GB, free: 88.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/1.225, allocations: 5.032 MB / 0.7743 GB, free: 83.81 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003767/1.228, allocations: 1.579 MB / 0.7758 GB, free: 82.23 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008639/1.229, allocations: 352.4 kB / 0.7761 GB, free: 81.89 MB / 426.8 MB Notification: Performance of SimCode: time 1.864e-06/1.229, allocations: 0 / 0.7761 GB, free: 81.89 MB / 426.8 MB Notification: Performance of Templates: time 0.08635/1.316, allocations: 55.45 MB / 0.8303 GB, free: 27.16 MB / 426.8 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: 7.995466834050603]