Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 114.5 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 242.7 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 189.1 kB / 295 MB, free: 12.69 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03844/0.03844, allocations: 8.786 MB / 356 MB, free: 15.93 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 75.86 kB / 473.3 MB, free: 5.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2178, allocations: 51.56 MB / 0.5126 GB, free: 12.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.0171/0.2349, allocations: 15.82 MB / 0.528 GB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009904/0.2449, allocations: 5.274 MB / 0.5332 GB, free: 7.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/0.2473, allocations: 95.69 kB / 0.5333 GB, free: 7.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003674/0.251, allocations: 1.206 MB / 0.5345 GB, free: 6.617 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004895/0.256, allocations: 1.559 MB / 0.536 GB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002616/0.2586, allocations: 0.9644 MB / 0.5369 GB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006519/0.2651, allocations: 4.704 MB / 0.5415 GB, free: 15.37 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005224/0.2704, allocations: 3.524 MB / 0.545 GB, free: 11.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003505/0.2739, allocations: 2.103 MB / 0.547 GB, free: 9.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004039/0.278, allocations: 2.44 MB / 0.5494 GB, free: 7.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001537/0.2795, allocations: 0.5703 MB / 0.55 GB, free: 6.648 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002248/0.2818, allocations: 0.7771 MB / 0.5507 GB, free: 5.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001676/0.2835, allocations: 1.293 MB / 0.552 GB, free: 4.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003261/0.2868, allocations: 2.447 MB / 0.5544 GB, free: 2.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008225/0.295, allocations: 7.525 MB / 0.5617 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.295, allocations: 0 / 0.5617 GB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.295, allocations: 0 / 0.5617 GB, free: 10.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001272/0.2952, allocations: 0 / 0.5617 GB, free: 10.57 MB / 382.1 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.0118/0.307, allocations: 5.078 MB / 0.5667 GB, free: 5.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.307, allocations: 8.031 kB / 0.5667 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004874/0.3119, allocations: 0.978 MB / 0.5676 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005689/0.3176, allocations: 2.842 MB / 0.5704 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002596/0.3179, allocations: 275.8 kB / 0.5707 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007283/0.3186, allocations: 368.1 kB / 0.571 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008144/0.3268, allocations: 4.776 MB / 0.5757 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-05/0.3269, allocations: 0 / 0.5757 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00033/0.3272, allocations: 156 kB / 0.5758 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001484/0.3274, allocations: 159.3 kB / 0.576 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006821/0.3342, allocations: 4.046 MB / 0.5799 GB, free: 7.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02328/0.3575, allocations: 15.61 MB / 0.5952 GB, free: 7.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007043/0.3646, allocations: 6.925 MB / 0.6019 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002581/0.3672, allocations: 1.503 MB / 0.6034 GB, free: 14.31 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00685/0.3741, allocations: 4.165 MB / 0.6075 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.3742, allocations: 47.88 kB / 0.6075 GB, free: 9.969 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 2.935e-06/0.3742, allocations: 4 kB / 0.6075 GB, free: 9.965 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01206/0.3862, allocations: 6.413 MB / 0.6138 GB, free: 3.391 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.3863, allocations: 72.72 kB / 0.6139 GB, free: 3.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003202/0.3895, allocations: 2.187 MB / 0.616 GB, free: 1.09 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.3897, allocations: 49.7 kB / 0.616 GB, free: 1.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001374/0.391, allocations: 1.779 MB / 0.6178 GB, free: 15.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004867/0.3915, allocations: 0.5772 MB / 0.6184 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000622/0.3922, allocations: 412 kB / 0.6187 GB, free: 14.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.3923, allocations: 304.9 kB / 0.619 GB, free: 13.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.3937, allocations: 0.8281 MB / 0.6198 GB, free: 13.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.3956, allocations: 1.594 MB / 0.6214 GB, free: 11.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003466/0.3991, allocations: 2.585 MB / 0.6239 GB, free: 8.238 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.3991, allocations: 12 kB / 0.6239 GB, free: 8.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005139/0.4043, allocations: 3.046 MB / 0.6269 GB, free: 5.145 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.4043, allocations: 16 kB / 0.6269 GB, free: 5.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.018e-05/0.4044, allocations: 24 kB / 0.6269 GB, free: 5.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008055/0.4052, allocations: 306.7 kB / 0.6272 GB, free: 4.797 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001722/0.4069, allocations: 0.4992 MB / 0.6277 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005141/0.4121, allocations: 4.87 MB / 0.6325 GB, free: 15.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4137, allocations: 99.95 kB / 0.6326 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/0.4139, allocations: 112 kB / 0.6327 GB, free: 14.94 MB / 462.1 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 (264): * Single equations (assignments): 261 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001853/0.4158, allocations: 1.13 MB / 0.6338 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/0.4162, allocations: 246.4 kB / 0.634 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.4204, allocations: 2.401 MB / 0.6364 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.4204, allocations: 16 kB / 0.6364 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.4204, allocations: 4 kB / 0.6364 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/0.4205, allocations: 7.969 kB / 0.6364 GB, free: 11.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008955/0.4294, allocations: 5.691 MB / 0.642 GB, free: 5.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4295, allocations: 7.875 kB / 0.642 GB, free: 5.242 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.4306, allocations: 267.8 kB / 0.6422 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008202/0.4315, allocations: 318.3 kB / 0.6425 GB, free: 4.66 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.623e-05/0.4316, allocations: 39.98 kB / 0.6426 GB, free: 4.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007062/0.4386, allocations: 7.018 MB / 0.6494 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4387, allocations: 0 / 0.6494 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005423/0.4441, allocations: 3.501 MB / 0.6528 GB, free: 9.598 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.4452, allocations: 0.4916 MB / 0.6533 GB, free: 9.086 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002828/0.4454, allocations: 35.94 kB / 0.6533 GB, free: 9.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009772/0.4464, allocations: 67.95 kB / 0.6534 GB, free: 8.984 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.4467, allocations: 113.1 kB / 0.6535 GB, free: 8.875 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.883e-05/0.4468, allocations: 47.98 kB / 0.6536 GB, free: 8.828 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002135/0.4489, allocations: 1.468 MB / 0.655 GB, free: 7.344 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.449, allocations: 0 / 0.655 GB, free: 7.344 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002009/0.451, allocations: 0.6562 MB / 0.6556 GB, free: 6.688 MB / 478.1 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 (133): * Single equations (assignments): 130 * 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,5,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.0003055/0.4513, allocations: 165.5 kB / 0.6558 GB, free: 6.52 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.4552, allocations: 2.474 MB / 0.6582 GB, free: 4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4552, allocations: 1.812 kB / 0.6582 GB, free: 4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00207/0.4573, allocations: 1.402 MB / 0.6596 GB, free: 2.559 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.4596, allocations: 0.5875 MB / 0.6602 GB, free: 1.973 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1993/0.6589, allocations: 6.515 MB / 0.6665 GB, free: 111.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.6604, allocations: 2.453 MB / 0.6689 GB, free: 110.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006208/0.6611, allocations: 183.7 kB / 0.6691 GB, free: 110.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6611, allocations: 0 / 0.6691 GB, free: 110.9 MB / 478.1 MB Notification: Performance of Templates: time 0.06791/0.729, allocations: 100.1 MB / 0.7668 GB, free: 20.66 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.134111199062318] Failed to read output from testmodel.py, exit status != 0: 0.7344487409573048 0.742564516 0.44582399599999994 Calling exit ...