Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.002327/0.002327, allocations: 85.48 kB / 19.44 MB, free: 340 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.644/1.644, allocations: 177.2 MB / 199.7 MB, free: 5.812 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.002229/0.002229, allocations: 168.6 kB / 256.3 MB, free: 13.16 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.04089/0.04089, allocations: 6.661 MB / 319.4 MB, free: 26.58 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.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 391 MB, free: 2.941 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.881e-05/3.032e-05, allocations: 5.828 kB / 391 MB, free: 2.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.0229/0.02293, allocations: 16 MB / 407 MB, free: 2.867 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.1469/0.1699, allocations: 5.458 MB / 412.4 MB, free: 69.15 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003461/0.1733, allocations: 117.2 kB / 412.5 MB, free: 69.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004717/0.178, allocations: 1.218 MB / 413.8 MB, free: 69.13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006255/0.1843, allocations: 1.63 MB / 415.4 MB, free: 68.88 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003285/0.1876, allocations: 1.024 MB / 416.4 MB, free: 68.86 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007503/0.1951, allocations: 4.976 MB / 421.4 MB, free: 66.56 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003322/0.1984, allocations: 1.918 MB / 423.3 MB, free: 65.66 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006244/0.2046, allocations: 3.219 MB / 426.5 MB, free: 64.24 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004346/0.209, allocations: 2.251 MB / 428.8 MB, free: 63.36 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.2101, allocations: 0.5681 MB / 429.3 MB, free: 63.36 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002174/0.2123, allocations: 0.7934 MB / 430.1 MB, free: 63.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009573/0.2132, allocations: 1.352 MB / 431.5 MB, free: 62.26 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002751/0.216, allocations: 1.685 MB / 433.2 MB, free: 61.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008532/0.2245, allocations: 7.651 MB / 440.8 MB, free: 54.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.2245, allocations: 0 / 440.8 MB, free: 54.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.877e-06/0.2245, allocations: 4 kB / 440.8 MB, free: 54.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002185/0.2248, allocations: 0 / 440.8 MB, free: 54.58 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.0122/0.237, allocations: 5.736 MB / 446.6 MB, free: 48.81 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.237, allocations: 8.031 kB / 446.6 MB, free: 48.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00532/0.2423, allocations: 1.45 MB / 448 MB, free: 47.35 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005674/0.248, allocations: 2.775 MB / 450.8 MB, free: 44.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.2482, allocations: 278.1 kB / 451.1 MB, free: 44.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007489/0.2489, allocations: 372.3 kB / 451.4 MB, free: 44.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008175/0.2571, allocations: 5.058 MB / 456.5 MB, free: 38.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.546e-05/0.2572, allocations: 4 kB / 456.5 MB, free: 38.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003382/0.2575, allocations: 154.5 kB / 456.6 MB, free: 38.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.2577, allocations: 159.3 kB / 456.8 MB, free: 38.58 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006828/0.2645, allocations: 3.637 MB / 460.4 MB, free: 34.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03017/0.2947, allocations: 24.13 MB / 484.6 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004441/0.2991, allocations: 2.607 MB / 487.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003249/0.3023, allocations: 1.732 MB / 488.9 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007601/0.3099, allocations: 3.74 MB / 492.6 MB, free: 1.734 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.31, allocations: 46.7 kB / 492.7 MB, free: 1.676 MB / 330.7 MB Notification: Performance of pre-optimization done (n=137): time 3.566e-06/0.31, allocations: 4 kB / 492.7 MB, free: 1.672 MB / 330.7 MB Notification: Performance of matching and sorting (n=159): time 0.01477/0.3248, allocations: 5.683 MB / 498.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.3248, allocations: 68.72 kB / 498.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005328/0.3302, allocations: 2.581 MB / 0.4893 GB, free: 9.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000208/0.3304, allocations: 49.7 kB / 0.4893 GB, free: 9.184 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002505/0.3329, allocations: 2.033 MB / 0.4913 GB, free: 7.141 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008853/0.3338, allocations: 0.6328 MB / 0.4919 GB, free: 6.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/0.3348, allocations: 0.5254 MB / 0.4924 GB, free: 5.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002508/0.3351, allocations: 484.7 kB / 0.4929 GB, free: 5.504 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.3367, allocations: 0.6837 MB / 0.4936 GB, free: 4.816 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002797/0.3395, allocations: 1.893 MB / 0.4954 GB, free: 2.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005106/0.3446, allocations: 2.819 MB / 0.4982 GB, free: 15.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.032e-05/0.3447, allocations: 8 kB / 0.4982 GB, free: 15.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006626/0.3513, allocations: 2.831 MB / 0.5009 GB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.293e-05/0.3513, allocations: 16 kB / 0.501 GB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-05/0.3514, allocations: 24 kB / 0.501 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.3527, allocations: 367.2 kB / 0.5013 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/0.3548, allocations: 0.4953 MB / 0.5018 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007756/0.3626, allocations: 5.964 MB / 0.5076 GB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/0.3648, allocations: 103.9 kB / 0.5077 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003949/0.3652, allocations: 99.98 kB / 0.5078 GB, free: 5 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002624/0.3679, allocations: 1.054 MB / 0.5089 GB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009123/0.3688, allocations: 274.6 kB / 0.5091 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00516/0.3739, allocations: 2.023 MB / 0.5111 GB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.374, allocations: 16 kB / 0.5111 GB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.709e-05/0.374, allocations: 7.938 kB / 0.5111 GB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/0.374, allocations: 7.969 kB / 0.5111 GB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.3875, allocations: 5.773 MB / 0.5168 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.3875, allocations: 4 kB / 0.5168 GB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/0.3888, allocations: 271.8 kB / 0.517 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.3901, allocations: 367.8 kB / 0.5174 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.3902, allocations: 43.92 kB / 0.5174 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.4006, allocations: 8.464 MB / 0.5257 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4006, allocations: 0 / 0.5257 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00667/0.4073, allocations: 3.065 MB / 0.5287 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/0.4088, allocations: 398.4 kB / 0.5291 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005962/0.4094, allocations: 39.94 kB / 0.5291 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.4107, allocations: 55.97 kB / 0.5292 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.4111, allocations: 125.1 kB / 0.5293 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.4112, allocations: 39.98 kB / 0.5293 GB, free: 14.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003297/0.4145, allocations: 1.451 MB / 0.5307 GB, free: 13.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4145, allocations: 0 / 0.5307 GB, free: 13.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003464/0.418, allocations: 0.6523 MB / 0.5314 GB, free: 12.39 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005445/0.4186, allocations: 173.9 kB / 0.5315 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005533/0.4241, allocations: 2.39 MB / 0.5339 GB, free: 9.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.4241, allocations: 4 kB / 0.5339 GB, free: 9.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002898/0.427, allocations: 1.529 MB / 0.5354 GB, free: 8.191 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00355/0.4305, allocations: 0.5015 MB / 0.5359 GB, free: 7.699 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.4454, allocations: 6.208 MB / 0.5419 GB, free: 1.41 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.136/0.5813, allocations: 1.859 MB / 0.5437 GB, free: 118.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001808/0.5831, allocations: 437 kB / 0.5441 GB, free: 118.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004373/0.5836, allocations: 152.5 kB / 0.5443 GB, free: 118.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5836, allocations: 0 / 0.5443 GB, free: 118.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04839/0.632, allocations: 29.67 MB / 0.5733 GB, free: 107 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=240 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.121454185107723]