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.001005/0.001005, allocations: 93.06 kB / 19.65 MB, free: 276 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 0.9548/0.9548, allocations: 177.2 MB / 200 MB, free: 5.543 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.002076/0.002076, allocations: 160.6 kB / 256.6 MB, free: 13 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.02301/0.02301, allocations: 6.657 MB / 319.8 MB, free: 11.65 MB / 298.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.382e-06/1.382e-06, allocations: 0 / 391.7 MB, free: 3.66 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.583e-05/1.721e-05, allocations: 9.688 kB / 391.7 MB, free: 3.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02167/0.02169, allocations: 27.77 MB / 419.5 MB, free: 7.754 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.03613, allocations: 8.462 MB / 427.9 MB, free: 15.27 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003619/0.03975, allocations: 250.8 kB / 428.2 MB, free: 15.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009048/0.0488, allocations: 8.623 MB / 436.8 MB, free: 6.359 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01034/0.05914, allocations: 2.932 MB / 439.7 MB, free: 3.41 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009649/0.06879, allocations: 1.911 MB / 441.6 MB, free: 1.496 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.18/0.2487, allocations: 10.45 MB / 452.1 MB, free: 116.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01895/0.2677, allocations: 13.93 MB / 466 MB, free: 111.9 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01035/0.278, allocations: 8.263 MB / 474.3 MB, free: 108 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006598/0.2846, allocations: 5.904 MB / 480.2 MB, free: 106.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002845/0.2875, allocations: 1.539 MB / 481.7 MB, free: 106.1 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.2916, allocations: 1.902 MB / 483.6 MB, free: 104.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002328/0.2939, allocations: 3.085 MB / 486.7 MB, free: 102 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005394/0.2993, allocations: 3.962 MB / 490.7 MB, free: 98.48 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01067/0.3099, allocations: 9.906 MB / 0.4888 GB, free: 89.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.31, allocations: 0 / 0.4888 GB, free: 89.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.31, allocations: 0 / 0.4888 GB, free: 89.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000335/0.3103, allocations: 0 / 0.4888 GB, free: 89.8 MB / 410.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.01619/0.3265, allocations: 12.77 MB / 0.5013 GB, free: 77.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3265, allocations: 12.91 kB / 0.5013 GB, free: 77.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.3414, allocations: 7.051 MB / 0.5082 GB, free: 70.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006505/0.3479, allocations: 6.058 MB / 0.5141 GB, free: 64.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/0.3482, allocations: 0.7086 MB / 0.5148 GB, free: 63.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/0.3494, allocations: 0.9228 MB / 0.5157 GB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01944/0.3688, allocations: 8.171 MB / 0.5237 GB, free: 54.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002329/0.3691, allocations: 15.91 kB / 0.5237 GB, free: 54.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008636/0.3699, allocations: 390.3 kB / 0.5241 GB, free: 53.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003583/0.3703, allocations: 0.5239 MB / 0.5246 GB, free: 53.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01298/0.3833, allocations: 4.395 MB / 0.5289 GB, free: 49 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04333/0.4266, allocations: 38.63 MB / 0.5666 GB, free: 10.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006755/0.4334, allocations: 7.175 MB / 0.5736 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.4349, allocations: 1.253 MB / 0.5748 GB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001985/0.4351, allocations: 110.8 kB / 0.5749 GB, free: 2.906 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.4351, allocations: 76.31 kB / 0.575 GB, free: 2.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=372): time 5.771e-06/0.4351, allocations: 0 / 0.575 GB, free: 2.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=380): time 0.01497/0.4501, allocations: 8.827 MB / 0.5836 GB, free: 10 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.4501, allocations: 93.77 kB / 0.5837 GB, free: 9.898 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.4538, allocations: 3.462 MB / 0.5871 GB, free: 6.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002168/0.454, allocations: 85.7 kB / 0.5872 GB, free: 6.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.4561, allocations: 4.458 MB / 0.5915 GB, free: 1.867 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009247/0.457, allocations: 1.402 MB / 0.5929 GB, free: 496 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2691/0.7261, allocations: 1.301 MB / 0.5942 GB, free: 97.25 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 5.063e-05/0.7261, allocations: 481.4 kB / 0.5946 GB, free: 96.78 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/0.7276, allocations: 0.8343 MB / 0.5955 GB, free: 96.77 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002292/0.7299, allocations: 4.565 MB / 0.5999 GB, free: 92.23 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005162/0.7351, allocations: 6.029 MB / 0.6058 GB, free: 87.72 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.779e-05/0.7351, allocations: 26.12 kB / 0.6058 GB, free: 87.72 MB / 426.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.007906/0.743, allocations: 5.281 MB / 0.611 GB, free: 87.49 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.55e-05/0.7431, allocations: 42.06 kB / 0.611 GB, free: 87.49 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.044e-05/0.7432, allocations: 81.88 kB / 0.6111 GB, free: 87.49 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.7449, allocations: 0.8312 MB / 0.6119 GB, free: 87.43 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/0.7477, allocations: 1.363 MB / 0.6132 GB, free: 87.43 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006112/0.7539, allocations: 6.814 MB / 0.6199 GB, free: 83.65 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003208/0.7571, allocations: 328.4 kB / 0.6202 GB, free: 83.64 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009765/0.758, allocations: 306 kB / 0.6205 GB, free: 83.64 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.002431/0.7605, allocations: 0.565 MB / 0.6211 GB, free: 83.48 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.7615, allocations: 0.5201 MB / 0.6216 GB, free: 83.48 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005002/0.7665, allocations: 3.294 MB / 0.6248 GB, free: 83.23 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/0.7665, allocations: 38.97 kB / 0.6248 GB, free: 83.23 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/0.7666, allocations: 11.25 kB / 0.6248 GB, free: 83.23 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.491e-05/0.7666, allocations: 20.08 kB / 0.6248 GB, free: 83.23 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/0.7816, allocations: 10.48 MB / 0.6351 GB, free: 82.42 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.7816, allocations: 3.156 kB / 0.6351 GB, free: 82.42 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.7832, allocations: 0.6647 MB / 0.6357 GB, free: 82.42 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.7848, allocations: 0.6884 MB / 0.6364 GB, free: 82.36 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/0.785, allocations: 91.72 kB / 0.6365 GB, free: 82.36 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.7897, allocations: 6.255 MB / 0.6426 GB, free: 78.64 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7897, allocations: 6.656 kB / 0.6426 GB, free: 78.64 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006111/0.7958, allocations: 4.183 MB / 0.6467 GB, free: 78.02 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/0.7972, allocations: 0.7443 MB / 0.6474 GB, free: 77.8 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/0.7976, allocations: 68.91 kB / 0.6475 GB, free: 77.8 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008904/0.7985, allocations: 180 kB / 0.6477 GB, free: 77.8 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004585/0.7989, allocations: 268.2 kB / 0.6479 GB, free: 77.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/0.7991, allocations: 112.2 kB / 0.648 GB, free: 77.8 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.001916/0.801, allocations: 1.568 MB / 0.6495 GB, free: 77.61 MB / 426.8 MB Notification: Performance of sort global known variables: time 7e-08/0.801, allocations: 4.031 kB / 0.6496 GB, free: 77.61 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004125/0.8051, allocations: 1.546 MB / 0.6511 GB, free: 77.61 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.0005243/0.8056, allocations: 255.3 kB / 0.6513 GB, free: 77.52 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.005419/0.8111, allocations: 4.004 MB / 0.6552 GB, free: 75.5 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.8111, allocations: 4 kB / 0.6552 GB, free: 75.5 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.8132, allocations: 1.963 MB / 0.6571 GB, free: 73.8 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00304/0.8163, allocations: 0.9155 MB / 0.658 GB, free: 73.12 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/0.8313, allocations: 13.34 MB / 0.6711 GB, free: 60.8 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.8327, allocations: 2.48 MB / 0.6735 GB, free: 58.95 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.00248/0.8352, allocations: 1.572 MB / 0.675 GB, free: 57.98 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005867/0.8358, allocations: 345.6 kB / 0.6753 GB, free: 57.66 MB / 426.8 MB Notification: Performance of SimCode: time 1.713e-06/0.8358, allocations: 0 / 0.6753 GB, free: 57.66 MB / 426.8 MB Notification: Performance of Templates: time 0.07078/0.9066, allocations: 57.79 MB / 0.7318 GB, free: 2.172 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: 5.117369689978659]