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.001038/0.001038, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.492/1.492, allocations: 223.3 MB / 239 MB, free: 5.43 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.001172/0.001172, allocations: 176.5 kB / 290.3 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03208/0.03208, allocations: 8.795 MB / 350.2 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006345/0.0006347, allocations: 10.59 kB / 413.2 MB, free: 42.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1148, allocations: 52.56 MB / 465.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01599/0.1308, allocations: 13.92 MB / 479.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.1421, allocations: 4.903 MB / 484.6 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003652/0.1458, allocations: 87.69 kB / 484.7 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.1504, allocations: 0.9285 MB / 485.6 MB, free: 9.574 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.00581/0.1562, allocations: 1.274 MB / 486.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002539/0.1588, allocations: 0.6694 MB / 487.5 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007395/0.1662, allocations: 4.656 MB / 492.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004002/0.1702, allocations: 2.444 MB / 494.7 MB, free: 472 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003215/0.1734, allocations: 1.471 MB / 496.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003586/0.1771, allocations: 1.887 MB / 498 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006264/0.1777, allocations: 236 kB / 498.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.1794, allocations: 435.7 kB / 498.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008707/0.1803, allocations: 0.8757 MB / 499.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.1817, allocations: 0.8434 MB / 0.4887 GB, free: 10.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006855/0.1886, allocations: 6.112 MB / 0.4946 GB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1886, allocations: 0 / 0.4946 GB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1886, allocations: 7.938 kB / 0.4946 GB, free: 4.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002449/0.1889, allocations: 0 / 0.4946 GB, free: 4.566 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.01226/0.2011, allocations: 4.257 MB / 0.4988 GB, free: 244 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.2012, allocations: 8.031 kB / 0.4988 GB, free: 236 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005725/0.2069, allocations: 0.9553 MB / 0.4997 GB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00573/0.2127, allocations: 2.591 MB / 0.5023 GB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.2129, allocations: 283.4 kB / 0.5025 GB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006911/0.2136, allocations: 363.9 kB / 0.5029 GB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009064/0.2227, allocations: 4.749 MB / 0.5075 GB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.84e-05/0.2228, allocations: 3.938 kB / 0.5075 GB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003188/0.2231, allocations: 156 kB / 0.5077 GB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.2233, allocations: 155.3 kB / 0.5078 GB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007204/0.2305, allocations: 4.038 MB / 0.5118 GB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02788/0.2584, allocations: 15.89 MB / 0.5273 GB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2667/0.5251, allocations: 6.94 MB / 0.5341 GB, free: 56.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003106/0.5283, allocations: 1.534 MB / 0.5356 GB, free: 56.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007574/0.5359, allocations: 4.242 MB / 0.5397 GB, free: 55.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.536, allocations: 52.62 kB / 0.5397 GB, free: 55.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.117e-06/0.536, allocations: 0 / 0.5397 GB, free: 55.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01391/0.5499, allocations: 6.507 MB / 0.5461 GB, free: 54.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.55, allocations: 72.95 kB / 0.5462 GB, free: 54.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004606/0.5546, allocations: 2.215 MB / 0.5483 GB, free: 54.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001472/0.5548, allocations: 53.02 kB / 0.5484 GB, free: 54.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.5559, allocations: 1.702 MB / 0.55 GB, free: 52.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004779/0.5564, allocations: 0.5439 MB / 0.5506 GB, free: 52.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.5566, allocations: 40.62 kB / 0.5506 GB, free: 52.3 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.5567, allocations: 394.5 kB / 0.551 GB, free: 51.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.558, allocations: 0.8257 MB / 0.5518 GB, free: 51.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.5597, allocations: 1.479 MB / 0.5532 GB, free: 50.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.5613, allocations: 1.089 MB / 0.5543 GB, free: 49.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.5613, allocations: 6.312 kB / 0.5543 GB, free: 49.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004623/0.5659, allocations: 2.955 MB / 0.5572 GB, free: 48.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.566, allocations: 15.77 kB / 0.5572 GB, free: 48.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.566, allocations: 19.72 kB / 0.5572 GB, free: 48.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007317/0.5667, allocations: 305.4 kB / 0.5575 GB, free: 48.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/0.5683, allocations: 488.4 kB / 0.558 GB, free: 48.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.572, allocations: 4.505 MB / 0.5624 GB, free: 44.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.5739, allocations: 90.98 kB / 0.5625 GB, free: 44.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000209/0.5741, allocations: 93.84 kB / 0.5626 GB, free: 44.7 MB / 366.1 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 (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.002089/0.5762, allocations: 1.11 MB / 0.5637 GB, free: 44.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006302/0.5768, allocations: 240.6 kB / 0.5639 GB, free: 43.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003657/0.5805, allocations: 2.437 MB / 0.5663 GB, free: 42.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.5805, allocations: 19.17 kB / 0.5663 GB, free: 42.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5806, allocations: 5.781 kB / 0.5663 GB, free: 42.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.5806, allocations: 9.281 kB / 0.5663 GB, free: 42.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007188/0.5878, allocations: 5.787 MB / 0.5719 GB, free: 38.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.5878, allocations: 3.906 kB / 0.5719 GB, free: 38.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.5889, allocations: 274.9 kB / 0.5722 GB, free: 38.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007274/0.5896, allocations: 323.4 kB / 0.5725 GB, free: 38.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.593e-05/0.5897, allocations: 39.98 kB / 0.5726 GB, free: 38.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004795/0.5945, allocations: 6.44 MB / 0.5788 GB, free: 31.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.5946, allocations: 11.97 kB / 0.5789 GB, free: 31.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.5995, allocations: 3.526 MB / 0.5823 GB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/0.6009, allocations: 0.495 MB / 0.5828 GB, free: 27.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007782/0.6017, allocations: 33.09 kB / 0.5828 GB, free: 27.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001541/0.6032, allocations: 75.95 kB / 0.5829 GB, free: 27.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002761/0.6035, allocations: 121 kB / 0.583 GB, free: 27.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.6037, allocations: 43.98 kB / 0.583 GB, free: 27.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002711/0.6064, allocations: 1.495 MB / 0.5845 GB, free: 25.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6064, allocations: 0 / 0.5845 GB, free: 25.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003349/0.6097, allocations: 0.6562 MB / 0.5851 GB, free: 25.13 MB / 366.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 (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.000387/0.6101, allocations: 160.1 kB / 0.5853 GB, free: 24.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003762/0.6139, allocations: 2.436 MB / 0.5877 GB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.6139, allocations: 1.812 kB / 0.5877 GB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.6158, allocations: 1.416 MB / 0.5891 GB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003736/0.6195, allocations: 0.5665 MB / 0.5896 GB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/0.6345, allocations: 7.806 MB / 0.5972 GB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002745/0.6373, allocations: 2.515 MB / 0.5997 GB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002261/0.6396, allocations: 0.5116 MB / 0.6002 GB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005793/0.6402, allocations: 155.4 kB / 0.6003 GB, free: 9.441 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6402, allocations: 4 kB / 0.6003 GB, free: 9.438 MB / 366.1 MB Notification: Performance of Templates: time 0.05835/0.6986, allocations: 30.13 MB / 0.6298 GB, free: 11.59 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: