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) 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_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 98.77 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.67/1.67, allocations: 223.2 MB / 238.9 MB, free: 5.465 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.001445/0.001445, allocations: 185 kB / 290.2 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0329/0.0329, allocations: 8.803 MB / 350.1 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004301/0.0004302, allocations: 10.84 kB / 413.1 MB, free: 42.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1217, allocations: 52.56 MB / 465.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.0142/0.1359, allocations: 12.72 MB / 478.4 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01031/0.1463, allocations: 5.041 MB / 483.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002578/0.1489, allocations: 79.69 kB / 483.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003184/0.1521, allocations: 0.9289 MB / 484.4 MB, free: 10.72 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.004675/0.1568, allocations: 1.379 MB / 485.8 MB, free: 9.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001955/0.1588, allocations: 0.6692 MB / 486.5 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005274/0.1641, allocations: 3.19 MB / 489.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003874/0.1679, allocations: 2.448 MB / 492.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.1705, allocations: 1.428 MB / 493.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003346/0.1739, allocations: 1.727 MB / 495.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001042/0.1749, allocations: 236 kB / 495.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001658/0.1766, allocations: 411.7 kB / 495.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000798/0.1774, allocations: 0.8526 MB / 496.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.1785, allocations: 0.8395 MB / 497.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006507/0.185, allocations: 6.073 MB / 0.4919 GB, free: 7.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1851, allocations: 4 kB / 0.4919 GB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1851, allocations: 0 / 0.4919 GB, free: 7.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001911/0.1853, allocations: 0 / 0.4919 GB, free: 7.383 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.01128/0.1966, allocations: 4.245 MB / 0.496 GB, free: 3.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1966, allocations: 8.031 kB / 0.496 GB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005734/0.2023, allocations: 0.9553 MB / 0.4969 GB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006205/0.2086, allocations: 2.611 MB / 0.4995 GB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.2089, allocations: 283.4 kB / 0.4998 GB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007396/0.2096, allocations: 367.9 kB / 0.5001 GB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009684/0.2193, allocations: 4.721 MB / 0.5047 GB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.271e-05/0.2194, allocations: 4 kB / 0.5047 GB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003504/0.2198, allocations: 144 kB / 0.5049 GB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002067/0.22, allocations: 167.3 kB / 0.505 GB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008711/0.2287, allocations: 4.034 MB / 0.509 GB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02989/0.2586, allocations: 15.88 MB / 0.5245 GB, free: 5.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2193/0.4779, allocations: 6.924 MB / 0.5312 GB, free: 56.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006483/0.4845, allocations: 3.573 MB / 0.5347 GB, free: 56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.4845, allocations: 53.09 kB / 0.5348 GB, free: 55.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 4.238e-06/0.4845, allocations: 0 / 0.5348 GB, free: 55.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01373/0.4983, allocations: 6.918 MB / 0.5415 GB, free: 54.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/0.4984, allocations: 74.7 kB / 0.5416 GB, free: 54.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004239/0.5026, allocations: 2.17 MB / 0.5437 GB, free: 54.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.5029, allocations: 55.58 kB / 0.5438 GB, free: 54.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.5043, allocations: 1.68 MB / 0.5454 GB, free: 53.3 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005266/0.5048, allocations: 0.5833 MB / 0.546 GB, free: 52.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.5049, allocations: 46.84 kB / 0.546 GB, free: 52.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.505, allocations: 391.8 kB / 0.5464 GB, free: 52.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.5065, allocations: 0.8555 MB / 0.5472 GB, free: 52.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.5081, allocations: 1.486 MB / 0.5487 GB, free: 51.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.5098, allocations: 1.126 MB / 0.5498 GB, free: 50.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/0.5098, allocations: 5.438 kB / 0.5498 GB, free: 50.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.005311/0.5151, allocations: 3.016 MB / 0.5527 GB, free: 49.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.5152, allocations: 13.09 kB / 0.5528 GB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-05/0.5152, allocations: 20.03 kB / 0.5528 GB, free: 49.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000805/0.5161, allocations: 299.3 kB / 0.5531 GB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.5177, allocations: 0.5014 MB / 0.5536 GB, free: 49.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003699/0.5215, allocations: 4.539 MB / 0.558 GB, free: 45.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.5235, allocations: 95.02 kB / 0.5581 GB, free: 45.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.5237, allocations: 90.64 kB / 0.5582 GB, free: 45.29 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.002035/0.5257, allocations: 1.125 MB / 0.5593 GB, free: 44.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/0.5262, allocations: 235.6 kB / 0.5595 GB, free: 44.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003807/0.53, allocations: 2.565 MB / 0.562 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.53, allocations: 21.06 kB / 0.562 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5301, allocations: 3.719 kB / 0.562 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.5301, allocations: 7.453 kB / 0.562 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009043/0.5391, allocations: 6.074 MB / 0.568 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.315e-06/0.5392, allocations: 0 / 0.568 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.5404, allocations: 311.8 kB / 0.5683 GB, free: 39.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007347/0.5412, allocations: 317.6 kB / 0.5686 GB, free: 39.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.5413, allocations: 39.7 kB / 0.5686 GB, free: 39.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005006/0.5463, allocations: 6.506 MB / 0.5749 GB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5463, allocations: 4.031 kB / 0.575 GB, free: 33.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/0.5513, allocations: 3.888 MB / 0.5787 GB, free: 29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/0.5529, allocations: 0.502 MB / 0.5792 GB, free: 28.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006885/0.5536, allocations: 35.98 kB / 0.5793 GB, free: 28.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/0.5551, allocations: 79.91 kB / 0.5793 GB, free: 28.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.5554, allocations: 122.7 kB / 0.5795 GB, free: 28.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.5555, allocations: 51.98 kB / 0.5795 GB, free: 28.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002678/0.5582, allocations: 1.475 MB / 0.581 GB, free: 26.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5582, allocations: 0 / 0.581 GB, free: 26.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003265/0.5615, allocations: 0.6562 MB / 0.5816 GB, free: 26.05 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.0004429/0.5619, allocations: 172.8 kB / 0.5818 GB, free: 25.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/0.5658, allocations: 2.532 MB / 0.5842 GB, free: 23.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.044e-06/0.5658, allocations: 0 / 0.5842 GB, free: 23.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002001/0.5678, allocations: 1.484 MB / 0.5857 GB, free: 21.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.5707, allocations: 0.5365 MB / 0.5862 GB, free: 21.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.5843, allocations: 7.866 MB / 0.5939 GB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003263/0.5876, allocations: 2.585 MB / 0.5964 GB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002293/0.5899, allocations: 0.5157 MB / 0.5969 GB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006398/0.5906, allocations: 159.4 kB / 0.5971 GB, free: 10.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.5906, allocations: 4 kB / 0.5971 GB, free: 10.07 MB / 366.1 MB Notification: Performance of Templates: time 0.05767/0.6483, allocations: 30.2 MB / 0.6266 GB, free: 12.15 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: