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/ModelicaServices 4.0.0+maint.om/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/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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.2 MB / 238.9 MB, free: 5.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002023/0.002023, allocations: 189 kB / 290.2 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0365/0.0365, allocations: 8.792 MB / 350.1 MB, free: 4.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003949/0.0003949, allocations: 10.41 kB / 413.1 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1188, allocations: 52.56 MB / 465.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.0155/0.1344, allocations: 12.7 MB / 478.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.1459, allocations: 5.045 MB / 483.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004643/0.1506, allocations: 83.69 kB / 483.5 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004872/0.1555, allocations: 0.9211 MB / 484.4 MB, free: 10.82 MB / 318.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.007069/0.1626, allocations: 1.397 MB / 485.8 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002835/0.1655, allocations: 0.6597 MB / 486.5 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007212/0.1727, allocations: 3.193 MB / 489.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003438/0.1762, allocations: 2.441 MB / 492.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.1786, allocations: 1.432 MB / 493.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00304/0.1816, allocations: 1.727 MB / 495.2 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006519/0.1823, allocations: 232 kB / 495.5 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.1838, allocations: 419.7 kB / 495.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008284/0.1847, allocations: 0.8487 MB / 496.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.1858, allocations: 0.8395 MB / 497.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006909/0.1927, allocations: 6.077 MB / 0.4918 GB, free: 7.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1928, allocations: 0 / 0.4918 GB, free: 7.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.1928, allocations: 0 / 0.4918 GB, free: 7.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002919/0.1931, allocations: 0 / 0.4918 GB, free: 7.473 MB / 334.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.01295/0.206, allocations: 4.241 MB / 0.496 GB, free: 3.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.2061, allocations: 8.031 kB / 0.496 GB, free: 3.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005915/0.212, allocations: 0.9631 MB / 0.4969 GB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006279/0.2183, allocations: 2.603 MB / 0.4995 GB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.2186, allocations: 283.3 kB / 0.4997 GB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009728/0.2196, allocations: 367.9 kB / 0.5001 GB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009176/0.2288, allocations: 4.725 MB / 0.5047 GB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-05/0.2289, allocations: 7.938 kB / 0.5047 GB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000342/0.2292, allocations: 152 kB / 0.5049 GB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001526/0.2294, allocations: 159.3 kB / 0.505 GB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007562/0.237, allocations: 4.034 MB / 0.509 GB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02862/0.2656, allocations: 15.88 MB / 0.5245 GB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2732/0.5388, allocations: 6.935 MB / 0.5312 GB, free: 56.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007239/0.5461, allocations: 3.573 MB / 0.5347 GB, free: 56.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/0.5462, allocations: 50 kB / 0.5348 GB, free: 56.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 3.777e-06/0.5462, allocations: 0 / 0.5348 GB, free: 56.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01462/0.5608, allocations: 6.911 MB / 0.5415 GB, free: 54.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/0.5609, allocations: 71.06 kB / 0.5416 GB, free: 54.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004804/0.5657, allocations: 2.174 MB / 0.5437 GB, free: 54.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.566, allocations: 54.61 kB / 0.5438 GB, free: 54.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.5673, allocations: 1.69 MB / 0.5454 GB, free: 53.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004607/0.5678, allocations: 0.5796 MB / 0.546 GB, free: 53.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.5679, allocations: 44.81 kB / 0.546 GB, free: 53.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5681, allocations: 391.9 kB / 0.5464 GB, free: 52.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.5695, allocations: 0.8626 MB / 0.5472 GB, free: 52.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.5712, allocations: 1.482 MB / 0.5487 GB, free: 51.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/0.5729, allocations: 1.122 MB / 0.5498 GB, free: 50.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.5729, allocations: 5.688 kB / 0.5498 GB, free: 50.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.005301/0.5782, allocations: 3.022 MB / 0.5527 GB, free: 49.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.916e-05/0.5783, allocations: 14.44 kB / 0.5528 GB, free: 49.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-05/0.5783, allocations: 23.47 kB / 0.5528 GB, free: 49.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008358/0.5792, allocations: 295.2 kB / 0.5531 GB, free: 49.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001671/0.5809, allocations: 0.4943 MB / 0.5535 GB, free: 49.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003662/0.5845, allocations: 4.544 MB / 0.558 GB, free: 45.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.5866, allocations: 98.66 kB / 0.5581 GB, free: 45.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.5867, allocations: 90.88 kB / 0.5582 GB, free: 45.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * 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 (258): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002096/0.5888, allocations: 1.117 MB / 0.5593 GB, free: 44.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004736/0.5893, allocations: 239.8 kB / 0.5595 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003733/0.5931, allocations: 2.569 MB / 0.562 GB, free: 43.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.5931, allocations: 16.2 kB / 0.562 GB, free: 43.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5931, allocations: 7.141 kB / 0.562 GB, free: 43.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.492e-05/0.5931, allocations: 8.359 kB / 0.562 GB, free: 43.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008267/0.6014, allocations: 6.066 MB / 0.5679 GB, free: 39.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.6014, allocations: 3.984 kB / 0.5679 GB, free: 39.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.6026, allocations: 306.9 kB / 0.5682 GB, free: 39.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007267/0.6033, allocations: 321 kB / 0.5685 GB, free: 39.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.6034, allocations: 39.23 kB / 0.5686 GB, free: 39.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004487/0.6079, allocations: 6.514 MB / 0.5749 GB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.6079, allocations: 4 kB / 0.5749 GB, free: 33.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004387/0.6123, allocations: 3.877 MB / 0.5787 GB, free: 29.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/0.6134, allocations: 0.5059 MB / 0.5792 GB, free: 28.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002694/0.6137, allocations: 43.92 kB / 0.5793 GB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009845/0.6147, allocations: 79.91 kB / 0.5793 GB, free: 28.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/0.6149, allocations: 120.8 kB / 0.5795 GB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.417e-05/0.615, allocations: 47.98 kB / 0.5795 GB, free: 28.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00174/0.6168, allocations: 1.475 MB / 0.5809 GB, free: 26.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6168, allocations: 0 / 0.5809 GB, free: 26.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001993/0.6188, allocations: 0.6602 MB / 0.5816 GB, free: 26.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002791/0.6191, allocations: 167 kB / 0.5818 GB, free: 25.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.6221, allocations: 2.529 MB / 0.5842 GB, free: 23.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6221, allocations: 3.938 kB / 0.5842 GB, free: 23.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.6238, allocations: 1.486 MB / 0.5857 GB, free: 21.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.6259, allocations: 0.5327 MB / 0.5862 GB, free: 21.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.6362, allocations: 7.865 MB / 0.5939 GB, free: 13.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/0.638, allocations: 2.581 MB / 0.5964 GB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001902/0.64, allocations: 0.5273 MB / 0.5969 GB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.6403, allocations: 155.4 kB / 0.5971 GB, free: 10.12 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6403, allocations: 0 / 0.5971 GB, free: 10.12 MB / 366.1 MB Notification: Performance of Templates: time 0.05504/0.6954, allocations: 30.19 MB / 0.6265 GB, free: 12.22 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: