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.001287/0.001287, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.9783/0.9783, allocations: 177.1 MB / 200.5 MB, free: 5.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.00145/0.00145, allocations: 175.3 kB / 257 MB, free: 13.2 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.02398/0.02398, allocations: 6.66 MB / 320.1 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 2.204e-06/2.204e-06, allocations: 0 / 391.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.881e-05/3.102e-05, allocations: 2.312 kB / 391.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.1582/0.1582, allocations: 27.6 MB / 419.3 MB, free: 68.56 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01856/0.1768, allocations: 8.435 MB / 427.7 MB, free: 65.31 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006148/0.183, allocations: 256.1 kB / 428 MB, free: 65.23 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01154/0.1945, allocations: 8.598 MB / 436.6 MB, free: 59.9 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009185/0.2037, allocations: 2.926 MB / 439.5 MB, free: 57.58 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004874/0.2086, allocations: 1.899 MB / 441.4 MB, free: 56.12 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0103/0.2189, allocations: 10.47 MB / 451.9 MB, free: 47.08 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01677/0.2356, allocations: 13.93 MB / 465.8 MB, free: 33.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01051/0.2461, allocations: 8.198 MB / 474 MB, free: 24.81 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00838/0.2545, allocations: 5.84 MB / 479.8 MB, free: 18.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004145/0.2587, allocations: 1.539 MB / 481.4 MB, free: 17.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00613/0.2648, allocations: 1.913 MB / 483.3 MB, free: 15.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003677/0.2685, allocations: 3.097 MB / 486.4 MB, free: 12.4 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007555/0.276, allocations: 3.973 MB / 490.4 MB, free: 8.418 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.2884, allocations: 9.914 MB / 0.4886 GB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2884, allocations: 4 kB / 0.4886 GB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2884, allocations: 4 kB / 0.4886 GB, free: 14.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004239/0.2888, allocations: 0 / 0.4886 GB, free: 14.47 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.02707/0.3159, allocations: 12.79 MB / 0.5011 GB, free: 1.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.316, allocations: 12.03 kB / 0.5011 GB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02254/0.3385, allocations: 7.057 MB / 0.508 GB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009391/0.3479, allocations: 6.059 MB / 0.5139 GB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005199/0.3484, allocations: 0.7028 MB / 0.5146 GB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002097/0.3505, allocations: 0.9334 MB / 0.5155 GB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/0.3692, allocations: 8.179 MB / 0.5235 GB, free: 10.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002967/0.3695, allocations: 19.94 kB / 0.5235 GB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001418/0.3709, allocations: 392 kB / 0.5238 GB, free: 9.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004045/0.3713, allocations: 0.5116 MB / 0.5243 GB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/0.385, allocations: 4.407 MB / 0.5287 GB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2723/0.6573, allocations: 38.65 MB / 0.5664 GB, free: 101.8 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007693/0.665, allocations: 7.186 MB / 0.5734 GB, free: 101.4 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.6667, allocations: 1.252 MB / 0.5746 GB, free: 101.4 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002188/0.6669, allocations: 121.6 kB / 0.5748 GB, free: 101.4 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.6669, allocations: 77.62 kB / 0.5748 GB, free: 101.3 MB / 394.8 MB Notification: Performance of pre-optimization done (n=372): time 8.205e-06/0.6669, allocations: 0.75 kB / 0.5748 GB, free: 101.3 MB / 394.8 MB Notification: Performance of matching and sorting (n=380): time 0.01518/0.6821, allocations: 8.838 MB / 0.5835 GB, free: 99.76 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.6822, allocations: 95.17 kB / 0.5836 GB, free: 99.69 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/0.6854, allocations: 3.457 MB / 0.5869 GB, free: 99.24 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.6856, allocations: 90.08 kB / 0.587 GB, free: 99.21 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.6871, allocations: 4.47 MB / 0.5914 GB, free: 97.21 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006459/0.6877, allocations: 1.398 MB / 0.5927 GB, free: 96.34 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/0.6888, allocations: 1.309 MB / 0.594 GB, free: 96.03 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 4.082e-05/0.6888, allocations: 480.7 kB / 0.5945 GB, free: 95.56 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.6901, allocations: 0.8352 MB / 0.5953 GB, free: 95.45 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/0.6921, allocations: 4.569 MB / 0.5998 GB, free: 89.34 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003837/0.696, allocations: 6.042 MB / 0.6057 GB, free: 81.69 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-05/0.696, allocations: 24 kB / 0.6057 GB, free: 81.67 MB / 394.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.006226/0.7022, allocations: 5.291 MB / 0.6109 GB, free: 76.34 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.7023, allocations: 40 kB / 0.6109 GB, free: 76.3 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.771e-05/0.7023, allocations: 84 kB / 0.611 GB, free: 76.22 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001586/0.7039, allocations: 0.8211 MB / 0.6118 GB, free: 75.39 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/0.7062, allocations: 1.373 MB / 0.6131 GB, free: 74.02 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004951/0.7111, allocations: 6.805 MB / 0.6198 GB, free: 66.96 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00261/0.7137, allocations: 332.6 kB / 0.6201 GB, free: 66.64 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004353/0.7141, allocations: 312 kB / 0.6204 GB, free: 66.34 MB / 394.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.002067/0.7162, allocations: 0.5684 MB / 0.6209 GB, free: 65.75 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/0.717, allocations: 0.5208 MB / 0.6214 GB, free: 65.23 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004204/0.7212, allocations: 3.325 MB / 0.6247 GB, free: 61.87 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/0.7212, allocations: 40 kB / 0.6247 GB, free: 61.83 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.7212, allocations: 8.875 kB / 0.6247 GB, free: 61.82 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.7212, allocations: 23.92 kB / 0.6248 GB, free: 61.8 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01189/0.7331, allocations: 10.5 MB / 0.635 GB, free: 51.27 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.7331, allocations: 4 kB / 0.635 GB, free: 51.27 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.7345, allocations: 0.667 MB / 0.6357 GB, free: 50.6 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/0.7358, allocations: 0.6841 MB / 0.6363 GB, free: 49.91 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001278/0.7359, allocations: 83.97 kB / 0.6364 GB, free: 49.82 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004129/0.7401, allocations: 6.272 MB / 0.6425 GB, free: 43.32 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7401, allocations: 4 kB / 0.6425 GB, free: 43.31 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005029/0.7451, allocations: 4.175 MB / 0.6466 GB, free: 39.02 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.7462, allocations: 0.7547 MB / 0.6474 GB, free: 38.26 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003007/0.7465, allocations: 79.97 kB / 0.6474 GB, free: 38.18 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000885/0.7473, allocations: 175.8 kB / 0.6476 GB, free: 38.01 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003213/0.7477, allocations: 266.5 kB / 0.6478 GB, free: 37.75 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/0.7478, allocations: 112 kB / 0.648 GB, free: 37.64 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.001692/0.7495, allocations: 1.578 MB / 0.6495 GB, free: 36.07 MB / 394.8 MB Notification: Performance of sort global known variables: time 9e-08/0.7495, allocations: 0 / 0.6495 GB, free: 36.07 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.004123/0.7536, allocations: 1.551 MB / 0.651 GB, free: 34.52 MB / 394.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.0004244/0.754, allocations: 255.5 kB / 0.6513 GB, free: 34.27 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.004898/0.7589, allocations: 3.999 MB / 0.6552 GB, free: 30.23 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7589, allocations: 0 / 0.6552 GB, free: 30.23 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.7609, allocations: 1.976 MB / 0.6571 GB, free: 28.21 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.7635, allocations: 0.9246 MB / 0.658 GB, free: 27.36 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.779, allocations: 13.36 MB / 0.671 GB, free: 13.83 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001566/0.7805, allocations: 2.478 MB / 0.6735 GB, free: 11.32 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.002707/0.7833, allocations: 1.575 MB / 0.675 GB, free: 9.734 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006368/0.7839, allocations: 356.3 kB / 0.6753 GB, free: 9.387 MB / 394.8 MB Notification: Performance of SimCode: time 1.112e-06/0.7839, allocations: 0 / 0.6753 GB, free: 9.387 MB / 394.8 MB Notification: Performance of Templates: time 0.1915/0.9754, allocations: 55.5 MB / 0.7295 GB, free: 118.9 MB / 410.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: 5.248200081055984]