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.0007243/0.0007243, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.8993/0.8993, allocations: 177.2 MB / 200.3 MB, free: 5.281 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.001154/0.001154, allocations: 164.9 kB / 257 MB, free: 12.8 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.0244/0.0244, allocations: 6.656 MB / 266.9 MB, free: 3.043 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.703e-06/1.703e-06, allocations: 0 / 285.7 MB, free: 304 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.414e-05/2.584e-05, allocations: 2.312 kB / 285.7 MB, free: 300 kB / 266.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1202/0.1202, allocations: 26.98 MB / 312.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01484/0.1351, allocations: 8.855 MB / 321.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004324/0.1394, allocations: 254.8 kB / 321.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009587/0.149, allocations: 8.666 MB / 330.4 MB, free: 1.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006779/0.1558, allocations: 2.949 MB / 333.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00298/0.1588, allocations: 1.898 MB / 335.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008711/0.1675, allocations: 10.49 MB / 345.7 MB, free: 2.328 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01529/0.1828, allocations: 14.31 MB / 360.1 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009893/0.1927, allocations: 8.304 MB / 368.4 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007391/0.2, allocations: 5.992 MB / 374.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002572/0.2026, allocations: 1.535 MB / 375.9 MB, free: 3.961 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003975/0.2066, allocations: 1.894 MB / 377.8 MB, free: 2.066 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002719/0.2093, allocations: 3.094 MB / 380.9 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005886/0.2152, allocations: 3.961 MB / 384.8 MB, free: 11 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.2272, allocations: 9.894 MB / 394.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2272, allocations: 0 / 394.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2272, allocations: 0 / 394.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003466/0.2276, allocations: 0 / 394.7 MB, free: 1.074 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.01691/0.2445, allocations: 11.46 MB / 406.2 MB, free: 5.516 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2445, allocations: 12.03 kB / 406.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01462/0.2591, allocations: 5.623 MB / 411.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00668/0.2658, allocations: 3.339 MB / 415.2 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004252/0.2662, allocations: 0.7104 MB / 415.9 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001479/0.2677, allocations: 0.9296 MB / 416.8 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.2788, allocations: 7.671 MB / 424.5 MB, free: 3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001601/0.2789, allocations: 15.89 kB / 424.5 MB, free: 2.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006788/0.2796, allocations: 388 kB / 424.9 MB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003407/0.2799, allocations: 0.5194 MB / 425.4 MB, free: 2.082 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2222/0.5022, allocations: 3.847 MB / 429.2 MB, free: 71.77 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03645/0.5386, allocations: 29.45 MB / 458.7 MB, free: 62.48 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00632/0.5449, allocations: 4.802 MB / 463.5 MB, free: 61.45 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/0.5462, allocations: 0.9338 MB / 464.4 MB, free: 61.32 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002533/0.5464, allocations: 123.2 kB / 464.5 MB, free: 61.3 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/0.5465, allocations: 74.25 kB / 464.6 MB, free: 61.23 MB / 378.8 MB Notification: Performance of pre-optimization done (n=372): time 7.043e-06/0.5465, allocations: 0 / 464.6 MB, free: 61.23 MB / 378.8 MB Notification: Performance of matching and sorting (n=380): time 0.01323/0.5597, allocations: 6.474 MB / 471.1 MB, free: 57.01 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.5598, allocations: 93.95 kB / 471.2 MB, free: 56.91 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002276/0.562, allocations: 2.503 MB / 473.7 MB, free: 55.3 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.5622, allocations: 85.7 kB / 473.8 MB, free: 55.21 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.5636, allocations: 3.887 MB / 477.7 MB, free: 51.79 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006475/0.5642, allocations: 1.358 MB / 479 MB, free: 50.5 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/0.5653, allocations: 1.088 MB / 480.1 MB, free: 49.52 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.316e-05/0.5654, allocations: 305.1 kB / 480.4 MB, free: 49.22 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008817/0.5662, allocations: 0.5544 MB / 481 MB, free: 48.66 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0016/0.5678, allocations: 3.084 MB / 484 MB, free: 44.6 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003612/0.5715, allocations: 4.446 MB / 488.5 MB, free: 39.47 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.421e-05/0.5715, allocations: 24 kB / 488.5 MB, free: 39.45 MB / 378.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.008694/0.5802, allocations: 3.88 MB / 492.4 MB, free: 36.1 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.5802, allocations: 40 kB / 492.4 MB, free: 36.06 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.078e-05/0.5803, allocations: 84 kB / 492.5 MB, free: 35.98 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004841/0.5852, allocations: 0.7511 MB / 493.3 MB, free: 35.23 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006104/0.5913, allocations: 1.261 MB / 494.5 MB, free: 34.07 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.6021, allocations: 4.916 MB / 499.4 MB, free: 29.12 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005946/0.6081, allocations: 239.7 kB / 499.7 MB, free: 28.89 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004232/0.6085, allocations: 252 kB / 499.9 MB, free: 28.64 MB / 378.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.001861/0.6103, allocations: 0.52 MB / 0.4887 GB, free: 28.21 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003761/0.6141, allocations: 361 kB / 0.4891 GB, free: 27.86 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006746/0.6208, allocations: 2.455 MB / 0.4915 GB, free: 25.41 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.6209, allocations: 40 kB / 0.4915 GB, free: 25.37 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.6209, allocations: 8 kB / 0.4915 GB, free: 25.36 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.547e-05/0.6209, allocations: 19.92 kB / 0.4915 GB, free: 25.34 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.6399, allocations: 6.532 MB / 0.4979 GB, free: 19.41 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.6399, allocations: 7.938 kB / 0.4979 GB, free: 19.41 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.6411, allocations: 0.5763 MB / 0.4985 GB, free: 18.86 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001166/0.6422, allocations: 0.6192 MB / 0.4991 GB, free: 18.25 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.6424, allocations: 75.97 kB / 0.4991 GB, free: 18.18 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002991/0.6454, allocations: 4.463 MB / 0.5035 GB, free: 13.63 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.6454, allocations: 7.469 kB / 0.5035 GB, free: 13.63 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003323/0.6487, allocations: 2.964 MB / 0.5064 GB, free: 10.66 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008953/0.6496, allocations: 491.3 kB / 0.5069 GB, free: 10.18 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003282/0.6499, allocations: 76 kB / 0.5069 GB, free: 10.1 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007737/0.6507, allocations: 96 kB / 0.507 GB, free: 10.01 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002733/0.651, allocations: 266.2 kB / 0.5073 GB, free: 9.75 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.6511, allocations: 75.97 kB / 0.5074 GB, free: 9.676 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0009594/0.6521, allocations: 1.126 MB / 0.5085 GB, free: 8.695 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6521, allocations: 0 / 0.5085 GB, free: 8.695 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.003384/0.6554, allocations: 1.551 MB / 0.51 GB, free: 7.145 MB / 378.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.0003671/0.6558, allocations: 241.1 kB / 0.5102 GB, free: 6.941 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.003083/0.6589, allocations: 3.123 MB / 0.5133 GB, free: 4.109 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 0.0001003/0.659, allocations: 63.94 kB / 0.5133 GB, free: 4.043 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.6603, allocations: 1.553 MB / 0.5148 GB, free: 2.57 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.6623, allocations: 0.9135 MB / 0.5157 GB, free: 1.699 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01518/0.6775, allocations: 13.05 MB / 0.5285 GB, free: 4.594 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.6791, allocations: 1.779 MB / 0.5302 GB, free: 2.777 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.001928/0.681, allocations: 0.6742 MB / 0.5309 GB, free: 2.098 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/0.6825, allocations: 0.905 MB / 0.5317 GB, free: 1.191 MB / 394.8 MB Notification: Performance of SimCode: time 1.673e-06/0.6825, allocations: 0 / 0.5317 GB, free: 1.191 MB / 394.8 MB Notification: Performance of Templates: time 0.1967/0.8792, allocations: 60.63 MB / 0.591 GB, free: 126.1 MB / 442.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: 4.390664685983211]