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.001924/0.001924, allocations: 88.72 kB / 19.44 MB, free: 356 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.545/1.545, allocations: 177.1 MB / 199.7 MB, free: 5.82 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.001789/0.001789, allocations: 152.7 kB / 256.3 MB, free: 13.19 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.03878/0.03878, allocations: 6.666 MB / 319.4 MB, free: 26.56 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.004e-06/2.004e-06, allocations: 0 / 390.9 MB, free: 2.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.475e-05/3.675e-05, allocations: 2.312 kB / 390.9 MB, free: 2.926 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.169/0.169, allocations: 24.78 MB / 415.7 MB, free: 68.91 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02021/0.1893, allocations: 8.275 MB / 424 MB, free: 66.9 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00671/0.196, allocations: 252 kB / 424.2 MB, free: 66.82 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01793/0.2139, allocations: 8.023 MB / 432.3 MB, free: 62.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01144/0.2253, allocations: 2.906 MB / 435.2 MB, free: 59.82 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006795/0.2321, allocations: 1.869 MB / 437 MB, free: 58.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01248/0.2446, allocations: 10.46 MB / 447.5 MB, free: 50.18 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02768/0.2723, allocations: 13.93 MB / 461.4 MB, free: 36.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01616/0.2885, allocations: 8.132 MB / 469.6 MB, free: 27.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009026/0.2975, allocations: 5.27 MB / 474.8 MB, free: 22.7 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004274/0.3018, allocations: 1.539 MB / 476.4 MB, free: 21.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006702/0.3085, allocations: 1.909 MB / 478.3 MB, free: 19.25 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004203/0.3127, allocations: 3.047 MB / 481.3 MB, free: 16.2 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008765/0.3214, allocations: 3.922 MB / 485.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02779/0.3492, allocations: 20.95 MB / 0.4943 GB, free: 7.266 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.3492, allocations: 0 / 0.4943 GB, free: 7.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3492, allocations: 0 / 0.4943 GB, free: 7.266 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007454/0.35, allocations: 3.984 kB / 0.4943 GB, free: 7.262 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.0413/0.3913, allocations: 11.91 MB / 0.506 GB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.3913, allocations: 8.031 kB / 0.506 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03703/0.4284, allocations: 7.042 MB / 0.5129 GB, free: 4.191 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01715/0.4455, allocations: 6.657 MB / 0.5194 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001318/0.4468, allocations: 0.7067 MB / 0.52 GB, free: 12.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004219/0.451, allocations: 0.9334 MB / 0.521 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04459/0.4956, allocations: 15.25 MB / 0.5359 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004397/0.4961, allocations: 23.89 kB / 0.5359 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003181/0.4993, allocations: 392 kB / 0.5362 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007769/0.5, allocations: 0.5155 MB / 0.5368 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2959/0.796, allocations: 13.71 MB / 0.5501 GB, free: 113.9 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08445/0.8804, allocations: 42.46 MB / 0.5916 GB, free: 88.43 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01421/0.8946, allocations: 8.208 MB / 0.5996 GB, free: 82.05 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00457/0.8992, allocations: 2.647 MB / 0.6022 GB, free: 79.41 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005289/0.8997, allocations: 118.8 kB / 0.6023 GB, free: 79.29 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.361e-05/0.8998, allocations: 73.48 kB / 0.6024 GB, free: 79.21 MB / 394.8 MB Notification: Performance of pre-optimization done (n=372): time 7.694e-06/0.8998, allocations: 0 / 0.6024 GB, free: 79.21 MB / 394.8 MB Notification: Performance of matching and sorting (n=380): time 0.03597/0.9358, allocations: 14.71 MB / 0.6168 GB, free: 64.84 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.9358, allocations: 90.39 kB / 0.6168 GB, free: 64.74 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007116/0.943, allocations: 3.646 MB / 0.6204 GB, free: 61.2 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006888/0.9436, allocations: 89.7 kB / 0.6205 GB, free: 61.11 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002765/0.9464, allocations: 4.223 MB / 0.6246 GB, free: 57.02 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001487/0.9479, allocations: 1.353 MB / 0.6259 GB, free: 55.68 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003561/0.9515, allocations: 1.164 MB / 0.6271 GB, free: 54.5 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 4.978e-05/0.9515, allocations: 305.1 kB / 0.6274 GB, free: 54.2 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004491/0.956, allocations: 2.573 MB / 0.6299 GB, free: 51.62 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006417/0.9624, allocations: 5.079 MB / 0.6348 GB, free: 45.37 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.9729, allocations: 8.265 MB / 0.6429 GB, free: 35.93 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/0.973, allocations: 28 kB / 0.6429 GB, free: 35.9 MB / 394.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01762/0.9906, allocations: 8.889 MB / 0.6516 GB, free: 26.98 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/0.9907, allocations: 47.94 kB / 0.6517 GB, free: 26.93 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/0.9909, allocations: 80.66 kB / 0.6517 GB, free: 26.85 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00354/0.9944, allocations: 1.028 MB / 0.6527 GB, free: 25.82 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005121/0.9996, allocations: 1.365 MB / 0.6541 GB, free: 24.45 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/1.011, allocations: 8.613 MB / 0.6625 GB, free: 15.63 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004979/1.016, allocations: 335.6 kB / 0.6628 GB, free: 15.3 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/1.017, allocations: 308 kB / 0.6631 GB, free: 15 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.006679/1.024, allocations: 3.509 MB / 0.6665 GB, free: 11.48 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00194/1.026, allocations: 0.5209 MB / 0.667 GB, free: 10.95 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/1.038, allocations: 5.827 MB / 0.6727 GB, free: 5.086 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/1.038, allocations: 40 kB / 0.6728 GB, free: 5.047 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.12e-05/1.038, allocations: 8 kB / 0.6728 GB, free: 5.039 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-05/1.039, allocations: 19.92 kB / 0.6728 GB, free: 5.02 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/1.071, allocations: 12.56 MB / 0.685 GB, free: 8.441 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002694/1.071, allocations: 4 kB / 0.6851 GB, free: 8.438 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003445/1.074, allocations: 0.6709 MB / 0.6857 GB, free: 7.766 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003572/1.078, allocations: 0.8671 MB / 0.6866 GB, free: 6.895 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007248/1.079, allocations: 83.97 kB / 0.6866 GB, free: 6.812 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/1.093, allocations: 7.646 MB / 0.6941 GB, free: 14.97 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.093, allocations: 11.88 kB / 0.6941 GB, free: 14.96 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/1.113, allocations: 8.604 MB / 0.7025 GB, free: 6.25 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003011/1.116, allocations: 0.8173 MB / 0.7033 GB, free: 5.43 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001298/1.117, allocations: 79.88 kB / 0.7034 GB, free: 5.352 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002854/1.12, allocations: 179.9 kB / 0.7036 GB, free: 5.176 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/1.121, allocations: 270.5 kB / 0.7038 GB, free: 4.91 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006342/1.122, allocations: 119.9 kB / 0.7039 GB, free: 4.793 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.006003/1.128, allocations: 2.331 MB / 0.7062 GB, free: 2.473 MB / 426.8 MB Notification: Performance of sort global known variables: time 8e-08/1.128, allocations: 0 / 0.7062 GB, free: 2.473 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.008028/1.136, allocations: 1.555 MB / 0.7077 GB, free: 0.918 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.001273/1.137, allocations: 254.3 kB / 0.708 GB, free: 0.6641 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.1564/1.293, allocations: 6.299 MB / 0.7141 GB, free: 135.6 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.293, allocations: 0 / 0.7141 GB, free: 135.6 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006285/1.3, allocations: 2.752 MB / 0.7168 GB, free: 134.7 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007258/1.307, allocations: 0.9362 MB / 0.7177 GB, free: 134.4 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03812/1.345, allocations: 16.09 MB / 0.7334 GB, free: 127 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01318/1.358, allocations: 5.518 MB / 0.7388 GB, free: 125.3 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.006931/1.365, allocations: 1.841 MB / 0.7406 GB, free: 124.3 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002287/1.367, allocations: 351 kB / 0.741 GB, free: 124 MB / 426.8 MB Notification: Performance of SimCode: time 1.874e-06/1.368, allocations: 0 / 0.741 GB, free: 124 MB / 426.8 MB Notification: Performance of Templates: time 0.09431/1.462, allocations: 55.62 MB / 0.7953 GB, free: 70.98 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=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.616591267986223]