Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 182.3 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03853/0.03853, allocations: 8.794 MB / 25.53 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 251.3 MB, free: 7.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009281/0.000928, allocations: 113.2 kB / 303.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 71.89 kB / 366 MB, free: 180 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1852, allocations: 51.54 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01097/0.1962, allocations: 15.62 MB / 433.2 MB, free: 5.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007621/0.2039, allocations: 5.205 MB / 438.4 MB, free: 8 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.206, allocations: 91.73 kB / 438.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002706/0.2088, allocations: 1.069 MB / 439.5 MB, free: 14.84 MB / 314.7 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.003951/0.2128, allocations: 1.412 MB / 440.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.2148, allocations: 0.8943 MB / 441.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005799/0.2206, allocations: 5.062 MB / 446.9 MB, free: 7.457 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003452/0.2241, allocations: 2.937 MB / 449.8 MB, free: 4.449 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.2263, allocations: 1.712 MB / 451.5 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002567/0.2289, allocations: 2.249 MB / 453.8 MB, free: 484 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005865/0.2295, allocations: 340 kB / 454.1 MB, free: 144 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.2308, allocations: 0.5427 MB / 454.7 MB, free: 15.6 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008487/0.2316, allocations: 1.043 MB / 455.7 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002382/0.234, allocations: 2.181 MB / 457.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006244/0.2403, allocations: 7.251 MB / 465.1 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.2403, allocations: 4 kB / 465.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2403, allocations: 0 / 465.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001356/0.2405, allocations: 0 / 465.1 MB, free: 5.078 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.01132/0.2518, allocations: 4.966 MB / 470.1 MB, free: 40 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.2518, allocations: 8.031 kB / 470.1 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/0.2565, allocations: 0.9524 MB / 471.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005034/0.2615, allocations: 2.649 MB / 473.7 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.2617, allocations: 275.8 kB / 474 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005722/0.2623, allocations: 372 kB / 474.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007423/0.2697, allocations: 4.776 MB / 479.1 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.665e-05/0.2698, allocations: 3.938 kB / 479.1 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.2701, allocations: 156 kB / 479.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.2703, allocations: 155.3 kB / 479.4 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006311/0.2766, allocations: 4.058 MB / 483.5 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02242/0.299, allocations: 15.8 MB / 499.3 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1608/0.4599, allocations: 6.943 MB / 0.4944 GB, free: 61.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002707/0.4626, allocations: 1.522 MB / 0.4959 GB, free: 61.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006381/0.469, allocations: 4.24 MB / 0.5 GB, free: 59.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.469, allocations: 43.84 kB / 0.5 GB, free: 59.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 3.015e-06/0.469, allocations: 0 / 0.5 GB, free: 59.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=159): time 0.01056/0.4796, allocations: 6.467 MB / 0.5064 GB, free: 56.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.4797, allocations: 67.84 kB / 0.5064 GB, free: 56.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/0.4825, allocations: 2.228 MB / 0.5086 GB, free: 55.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.95e-05/0.4827, allocations: 55.77 kB / 0.5086 GB, free: 55.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006919/0.4833, allocations: 1.71 MB / 0.5103 GB, free: 54.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.4836, allocations: 0.542 MB / 0.5108 GB, free: 53.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004972/0.4841, allocations: 379.2 kB / 0.5112 GB, free: 53.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.443e-05/0.4842, allocations: 313 kB / 0.5115 GB, free: 53.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.4853, allocations: 0.8199 MB / 0.5123 GB, free: 52.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.4866, allocations: 1.478 MB / 0.5137 GB, free: 51.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002384/0.489, allocations: 2.458 MB / 0.5161 GB, free: 49.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.4891, allocations: 7.125 kB / 0.5162 GB, free: 49.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.003802/0.4929, allocations: 2.956 MB / 0.519 GB, free: 48.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.4929, allocations: 18.94 kB / 0.5191 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/0.4929, allocations: 22.28 kB / 0.5191 GB, free: 48.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008097/0.4938, allocations: 302.6 kB / 0.5194 GB, free: 48.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.4953, allocations: 480.6 kB / 0.5198 GB, free: 47.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00348/0.4988, allocations: 4.497 MB / 0.5242 GB, free: 43.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.5007, allocations: 84.38 kB / 0.5243 GB, free: 43.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.5008, allocations: 100 kB / 0.5244 GB, free: 42.97 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * 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.001506/0.5023, allocations: 1.12 MB / 0.5255 GB, free: 41.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/0.5026, allocations: 237.2 kB / 0.5257 GB, free: 41.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003291/0.5059, allocations: 2.42 MB / 0.5281 GB, free: 39.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.506, allocations: 23.94 kB / 0.5281 GB, free: 39.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.506, allocations: 4 kB / 0.5281 GB, free: 39.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.506, allocations: 11.97 kB / 0.5281 GB, free: 39.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006845/0.5128, allocations: 5.783 MB / 0.5338 GB, free: 33.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5129, allocations: 8.031 kB / 0.5338 GB, free: 33.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.5139, allocations: 267.7 kB / 0.534 GB, free: 32.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007255/0.5147, allocations: 333.5 kB / 0.5343 GB, free: 32.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-05/0.5148, allocations: 32 kB / 0.5344 GB, free: 32.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004295/0.5191, allocations: 6.44 MB / 0.5407 GB, free: 25.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.5191, allocations: 4.031 kB / 0.5407 GB, free: 25.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/0.545, allocations: 23.16 MB / 0.5633 GB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007386/0.5458, allocations: 0.4903 MB / 0.5638 GB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002369/0.546, allocations: 36 kB / 0.5638 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009984/0.547, allocations: 71.95 kB / 0.5639 GB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.5473, allocations: 113.1 kB / 0.564 GB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.973e-05/0.5473, allocations: 43.98 kB / 0.564 GB, free: 1.094 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001737/0.5491, allocations: 1.511 MB / 0.5655 GB, free: 15.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5491, allocations: 0 / 0.5655 GB, free: 15.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002583/0.5517, allocations: 0.8984 MB / 0.5664 GB, free: 14.67 MB / 378.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 (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.0002854/0.552, allocations: 173.5 kB / 0.5665 GB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.5554, allocations: 2.434 MB / 0.5689 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5554, allocations: 3.938 kB / 0.5689 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.5573, allocations: 1.412 MB / 0.5703 GB, free: 10.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/0.5596, allocations: 0.5483 MB / 0.5708 GB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/0.572, allocations: 9.574 MB / 0.5802 GB, free: 372 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002118/0.5741, allocations: 2.558 MB / 0.5827 GB, free: 13.78 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002144/0.5763, allocations: 0.5272 MB / 0.5832 GB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004929/0.5768, allocations: 163.4 kB / 0.5834 GB, free: 13.09 MB / 394.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5768, allocations: 0 / 0.5834 GB, free: 13.09 MB / 394.7 MB Notification: Performance of Templates: time 0.05736/0.6342, allocations: 36.78 MB / 0.6193 GB, free: 8.648 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)