Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 92 kB / 15.06 MB, free: 1.098 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.368/1.368, allocations: 223.3 MB / 239 MB, free: 5.461 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.001095/0.001095, allocations: 176.6 kB / 290.3 MB, free: 2.156 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0329/0.0329, allocations: 8.777 MB / 350.1 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003788, allocations: 11.88 kB / 413.3 MB, free: 42.94 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08966/0.09007, allocations: 52.56 MB / 465.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01519/0.1053, allocations: 13.93 MB / 479.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.1156, allocations: 4.899 MB / 484.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003143/0.1188, allocations: 91.69 kB / 484.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003553/0.1224, allocations: 0.9246 MB / 485.7 MB, free: 9.504 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.004769/0.1272, allocations: 1.282 MB / 487 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002846/0.13, allocations: 0.6561 MB / 487.6 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007274/0.1373, allocations: 4.658 MB / 492.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004837/0.1422, allocations: 2.444 MB / 494.7 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.145, allocations: 1.463 MB / 496.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003347/0.1484, allocations: 1.895 MB / 498.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009838/0.1494, allocations: 240 kB / 498.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.1513, allocations: 435.8 kB / 498.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001241/0.1526, allocations: 0.8835 MB / 499.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001646/0.1542, allocations: 0.8472 MB / 0.4887 GB, free: 10.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006674/0.1609, allocations: 6.104 MB / 0.4947 GB, free: 4.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1609, allocations: 0 / 0.4947 GB, free: 4.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.808e-06/0.161, allocations: 0 / 0.4947 GB, free: 4.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002052/0.1612, allocations: 3.938 kB / 0.4947 GB, free: 4.492 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.01063/0.1718, allocations: 4.249 MB / 0.4989 GB, free: 176 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.1719, allocations: 8.031 kB / 0.4989 GB, free: 168 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001472/0.1733, allocations: 0.5607 MB / 0.4994 GB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005304/0.1787, allocations: 0.9591 MB / 0.5003 GB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005727/0.1844, allocations: 2.587 MB / 0.5029 GB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003199/0.1848, allocations: 283.4 kB / 0.5031 GB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/0.1859, allocations: 364 kB / 0.5035 GB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01159/0.1975, allocations: 4.753 MB / 0.5081 GB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.1977, allocations: 3.906 kB / 0.5081 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007247/0.1984, allocations: 156 kB / 0.5083 GB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001751/0.1986, allocations: 159.3 kB / 0.5084 GB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007658/0.2062, allocations: 4.038 MB / 0.5124 GB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02557/0.2318, allocations: 15.91 MB / 0.5279 GB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2072/0.4391, allocations: 6.925 MB / 0.5347 GB, free: 56.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002645/0.4418, allocations: 1.537 MB / 0.5362 GB, free: 56.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006783/0.4486, allocations: 4.247 MB / 0.5403 GB, free: 55.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4486, allocations: 50.33 kB / 0.5404 GB, free: 55.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.376e-06/0.4487, allocations: 1.156 kB / 0.5404 GB, free: 55.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01313/0.4618, allocations: 6.517 MB / 0.5467 GB, free: 54.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.4619, allocations: 68.34 kB / 0.5468 GB, free: 54.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004319/0.4662, allocations: 2.214 MB / 0.549 GB, free: 53.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.4663, allocations: 52.02 kB / 0.549 GB, free: 53.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.4674, allocations: 1.711 MB / 0.5507 GB, free: 52.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004374/0.4678, allocations: 0.5412 MB / 0.5512 GB, free: 52.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.468, allocations: 49.06 kB / 0.5513 GB, free: 52.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4681, allocations: 384.9 kB / 0.5516 GB, free: 51.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.4694, allocations: 0.8211 MB / 0.5524 GB, free: 51.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001682/0.4711, allocations: 1.481 MB / 0.5539 GB, free: 50.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.4727, allocations: 1.092 MB / 0.5549 GB, free: 49.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.4728, allocations: 5.188 kB / 0.5549 GB, free: 49.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004623/0.4774, allocations: 2.958 MB / 0.5578 GB, free: 48.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.4774, allocations: 15.78 kB / 0.5579 GB, free: 48.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.432e-05/0.4775, allocations: 19.78 kB / 0.5579 GB, free: 48.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007603/0.4782, allocations: 299.6 kB / 0.5582 GB, free: 48.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.4798, allocations: 487 kB / 0.5586 GB, free: 48.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003948/0.4837, allocations: 4.505 MB / 0.563 GB, free: 44.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.4858, allocations: 98.41 kB / 0.5631 GB, free: 44.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.486, allocations: 90.34 kB / 0.5632 GB, free: 44.46 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.002071/0.4881, allocations: 1.117 MB / 0.5643 GB, free: 43.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005205/0.4886, allocations: 242.7 kB / 0.5645 GB, free: 43.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.4922, allocations: 2.429 MB / 0.5669 GB, free: 42.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.4922, allocations: 14.12 kB / 0.5669 GB, free: 42.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.4922, allocations: 7.031 kB / 0.5669 GB, free: 42.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.4923, allocations: 7.969 kB / 0.5669 GB, free: 42.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007464/0.4997, allocations: 5.784 MB / 0.5726 GB, free: 38.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/0.4998, allocations: 5.406 kB / 0.5726 GB, free: 38.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.5009, allocations: 274.5 kB / 0.5728 GB, free: 38.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007506/0.5016, allocations: 335.8 kB / 0.5732 GB, free: 37.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.675e-05/0.5017, allocations: 36 kB / 0.5732 GB, free: 37.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00479/0.5065, allocations: 6.441 MB / 0.5795 GB, free: 31.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5066, allocations: 8.031 kB / 0.5795 GB, free: 31.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004537/0.5111, allocations: 3.533 MB / 0.5829 GB, free: 27.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.5122, allocations: 0.4943 MB / 0.5834 GB, free: 26.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.5125, allocations: 32 kB / 0.5835 GB, free: 26.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5135, allocations: 75.91 kB / 0.5835 GB, free: 26.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.5138, allocations: 113.1 kB / 0.5836 GB, free: 26.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.517e-05/0.5139, allocations: 43.98 kB / 0.5837 GB, free: 26.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.5158, allocations: 1.495 MB / 0.5851 GB, free: 25.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5159, allocations: 4 kB / 0.5851 GB, free: 25.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002279/0.5181, allocations: 0.6552 MB / 0.5858 GB, free: 24.54 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.004506/0.5226, allocations: 4.151 MB / 0.5898 GB, free: 20.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003531/0.5262, allocations: 2.439 MB / 0.5922 GB, free: 17.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5262, allocations: 0 / 0.5922 GB, free: 17.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.528, allocations: 1.417 MB / 0.5936 GB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003132/0.5311, allocations: 0.5612 MB / 0.5941 GB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04057/0.5717, allocations: 19.68 MB / 0.6134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003053/0.5748, allocations: 2.519 MB / 0.6158 GB, free: 8.172 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002155/0.577, allocations: 0.5116 MB / 0.6163 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/0.5789, allocations: 1.354 MB / 0.6176 GB, free: 6.301 MB / 382.1 MB Notification: Performance of SimCode: time 1.733e-06/0.5789, allocations: 0 / 0.6176 GB, free: 6.301 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09003/0.669, allocations: 55.7 MB / 0.672 GB, free: 15.04 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.6692, allocations: 214.9 kB / 0.6722 GB, free: 14.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.913/3.582, allocations: 3.938 kB / 0.6722 GB, free: 14.8 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) Environment - environmentSimulation: