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.001145/0.001145, allocations: 80.81 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.9709/0.9709, allocations: 177.2 MB / 200.3 MB, free: 4.832 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.001173/0.001173, allocations: 155.6 kB / 257 MB, free: 12.64 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.02511/0.02511, allocations: 6.658 MB / 266.9 MB, free: 2.895 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: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.848e-05, allocations: 6.25 kB / 285.7 MB, free: 84 kB / 266.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1312/0.1312, allocations: 27 MB / 312.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.1452, allocations: 8.863 MB / 321.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.1481, allocations: 254.7 kB / 321.8 MB, free: 9.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008008/0.1561, allocations: 8.597 MB / 330.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004484/0.1606, allocations: 2.929 MB / 333.4 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002274/0.1629, allocations: 1.874 MB / 335.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006714/0.1696, allocations: 10.49 MB / 345.7 MB, free: 1.949 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01274/0.1824, allocations: 14.31 MB / 360 MB, free: 3.445 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006923/0.1893, allocations: 8.3 MB / 368.3 MB, free: 11.13 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005176/0.1945, allocations: 5.996 MB / 374.3 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00156/0.196, allocations: 1.535 MB / 375.9 MB, free: 3.59 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.1982, allocations: 1.909 MB / 377.8 MB, free: 1.68 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001562/0.1998, allocations: 3.09 MB / 380.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003393/0.2031, allocations: 3.965 MB / 384.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007826/0.211, allocations: 9.894 MB / 394.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.211, allocations: 0 / 394.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.211, allocations: 0 / 394.7 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.2111, allocations: 0 / 394.7 MB, free: 0.6875 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.01323/0.2243, allocations: 11.46 MB / 406.2 MB, free: 5.133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.2244, allocations: 12.03 kB / 406.2 MB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01582/0.2402, allocations: 5.627 MB / 411.8 MB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004885/0.2451, allocations: 3.339 MB / 415.2 MB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003432/0.2454, allocations: 0.7143 MB / 415.9 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009725/0.2464, allocations: 0.9296 MB / 416.8 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009135/0.2555, allocations: 7.659 MB / 424.5 MB, free: 2.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.2557, allocations: 23.88 kB / 424.5 MB, free: 2.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006131/0.2563, allocations: 392 kB / 424.9 MB, free: 2.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00032/0.2566, allocations: 0.5116 MB / 425.4 MB, free: 1.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2229/0.4795, allocations: 3.853 MB / 429.2 MB, free: 71.79 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0272/0.5067, allocations: 29.46 MB / 458.7 MB, free: 62.31 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004563/0.5112, allocations: 4.78 MB / 463.5 MB, free: 61.29 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008492/0.5121, allocations: 0.9344 MB / 464.4 MB, free: 61.16 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.5123, allocations: 124.6 kB / 464.5 MB, free: 61.14 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.5123, allocations: 72.8 kB / 464.6 MB, free: 61.07 MB / 378.8 MB Notification: Performance of pre-optimization done (n=372): time 5.109e-06/0.5123, allocations: 3.984 kB / 464.6 MB, free: 61.07 MB / 378.8 MB Notification: Performance of matching and sorting (n=380): time 0.009216/0.5215, allocations: 6.475 MB / 471.1 MB, free: 56.5 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.852e-05/0.5216, allocations: 90.39 kB / 471.2 MB, free: 56.39 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.523, allocations: 2.505 MB / 473.7 MB, free: 54.84 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.5231, allocations: 85.7 kB / 473.8 MB, free: 54.75 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008673/0.524, allocations: 3.887 MB / 477.7 MB, free: 51.32 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004176/0.5244, allocations: 1.356 MB / 479 MB, free: 50.04 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008072/0.5252, allocations: 1.086 MB / 480.1 MB, free: 49.06 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 2.714e-05/0.5253, allocations: 308.9 kB / 480.4 MB, free: 48.76 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006197/0.5259, allocations: 0.5544 MB / 481 MB, free: 48.2 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.527, allocations: 3.092 MB / 484 MB, free: 44.13 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/0.5295, allocations: 4.444 MB / 488.5 MB, free: 39 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.146e-05/0.5295, allocations: 24 kB / 488.5 MB, free: 38.98 MB / 378.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.003701/0.5332, allocations: 3.878 MB / 492.4 MB, free: 35.64 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.5332, allocations: 40.53 kB / 492.4 MB, free: 35.6 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.796e-05/0.5333, allocations: 84 kB / 492.5 MB, free: 35.52 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.5345, allocations: 0.7498 MB / 493.3 MB, free: 34.77 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002098/0.5366, allocations: 1.335 MB / 494.6 MB, free: 33.54 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0034/0.54, allocations: 4.928 MB / 499.5 MB, free: 28.57 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/0.5414, allocations: 247.8 kB / 499.8 MB, free: 28.33 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.5416, allocations: 247.9 kB / 0.4883 GB, free: 28.09 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.001107/0.5427, allocations: 0.521 MB / 0.4888 GB, free: 27.66 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004115/0.5431, allocations: 363.6 kB / 0.4891 GB, free: 27.3 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00257/0.5457, allocations: 2.455 MB / 0.4915 GB, free: 24.86 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.5457, allocations: 36 kB / 0.4916 GB, free: 24.82 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5457, allocations: 8 kB / 0.4916 GB, free: 24.81 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.5457, allocations: 19.92 kB / 0.4916 GB, free: 24.79 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006789/0.5525, allocations: 6.523 MB / 0.498 GB, free: 18.87 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.5525, allocations: 8.062 kB / 0.498 GB, free: 18.86 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001263/0.5538, allocations: 0.617 MB / 0.4986 GB, free: 18.27 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.5549, allocations: 0.6212 MB / 0.4992 GB, free: 17.66 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.555, allocations: 79.97 kB / 0.4993 GB, free: 17.58 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.5579, allocations: 4.477 MB / 0.5036 GB, free: 13.02 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.5579, allocations: 4 kB / 0.5036 GB, free: 13.02 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.5613, allocations: 2.975 MB / 0.5065 GB, free: 10.04 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007364/0.562, allocations: 493 kB / 0.507 GB, free: 9.559 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002537/0.5622, allocations: 76.02 kB / 0.5071 GB, free: 9.484 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006847/0.5629, allocations: 87.98 kB / 0.5072 GB, free: 9.398 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.5632, allocations: 266.3 kB / 0.5074 GB, free: 9.141 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/0.5633, allocations: 79.97 kB / 0.5075 GB, free: 9.062 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0008439/0.5642, allocations: 1.124 MB / 0.5086 GB, free: 8.082 MB / 378.8 MB Notification: Performance of sort global known variables: time 9e-08/0.5642, allocations: 2.297 kB / 0.5086 GB, free: 8.082 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.002792/0.567, allocations: 1.551 MB / 0.5101 GB, free: 6.531 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.0003147/0.5673, allocations: 239.1 kB / 0.5103 GB, free: 6.328 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.57, allocations: 3.14 MB / 0.5134 GB, free: 3.484 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 9.11e-05/0.5701, allocations: 67.94 kB / 0.5135 GB, free: 3.414 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.5713, allocations: 1.535 MB / 0.515 GB, free: 1.957 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001818/0.5731, allocations: 0.9105 MB / 0.5159 GB, free: 1.086 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.588, allocations: 13.05 MB / 0.5286 GB, free: 3.98 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.5896, allocations: 1.783 MB / 0.5303 GB, free: 2.16 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.00172/0.5914, allocations: 0.6724 MB / 0.531 GB, free: 1.484 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001662/0.593, allocations: 0.9121 MB / 0.5319 GB, free: 0.5703 MB / 394.8 MB Notification: Performance of SimCode: time 1.433e-06/0.593, allocations: 0 / 0.5319 GB, free: 0.5703 MB / 394.8 MB Notification: Performance of Templates: time 0.2056/0.7986, allocations: 60.62 MB / 0.5911 GB, free: 125.4 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.6064758892171085]