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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.001111/0.001111, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.314/1.314, allocations: 222.9 MB / 239 MB, free: 4.645 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.001332/0.001332, allocations: 188.5 kB / 289.3 MB, free: 2.383 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03388/0.03388, allocations: 8.809 MB / 348.2 MB, free: 4.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 76.56 kB / 410.7 MB, free: 42.42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1049, allocations: 51.57 MB / 462.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01633/0.1213, allocations: 15.62 MB / 477.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.1319, allocations: 5.197 MB / 483.1 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003533/0.1354, allocations: 91.69 kB / 483.2 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003999/0.1394, allocations: 1.065 MB / 484.2 MB, free: 8.691 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.005301/0.1448, allocations: 1.403 MB / 485.6 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00291/0.1477, allocations: 0.8937 MB / 486.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007171/0.1549, allocations: 4.8 MB / 491.3 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004352/0.1593, allocations: 3.517 MB / 494.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002913/0.1622, allocations: 2.009 MB / 496.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003472/0.1657, allocations: 2.409 MB / 499.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.1668, allocations: 0.5664 MB / 499.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.1686, allocations: 0.7888 MB / 0.4889 GB, free: 8.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.1697, allocations: 1.289 MB / 0.4901 GB, free: 6.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003203/0.1729, allocations: 2.435 MB / 0.4925 GB, free: 4.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008558/0.1815, allocations: 7.419 MB / 0.4998 GB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1816, allocations: 0 / 0.4998 GB, free: 13.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1816, allocations: 0 / 0.4998 GB, free: 13.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.1818, allocations: 0 / 0.4998 GB, free: 13.02 MB / 350.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.01417/0.196, allocations: 4.963 MB / 0.5046 GB, free: 7.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.196, allocations: 12.03 kB / 0.5046 GB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001089/0.1971, allocations: 0.5531 MB / 0.5052 GB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/0.2024, allocations: 0.9599 MB / 0.5061 GB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005808/0.2082, allocations: 2.646 MB / 0.5087 GB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002791/0.2085, allocations: 279.8 kB / 0.5089 GB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009668/0.2095, allocations: 367.8 kB / 0.5093 GB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009405/0.2189, allocations: 4.78 MB / 0.514 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.468e-05/0.219, allocations: 11.94 kB / 0.514 GB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/0.2194, allocations: 152 kB / 0.5141 GB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.2196, allocations: 155.4 kB / 0.5143 GB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007626/0.2272, allocations: 4.058 MB / 0.5182 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1989/0.4262, allocations: 15.8 MB / 0.5337 GB, free: 56.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005503/0.4317, allocations: 6.946 MB / 0.5405 GB, free: 51.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.4342, allocations: 1.523 MB / 0.5419 GB, free: 51.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007126/0.4414, allocations: 4.236 MB / 0.5461 GB, free: 50.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.4415, allocations: 47.88 kB / 0.5461 GB, free: 50.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.486e-06/0.4415, allocations: 3.469 kB / 0.5461 GB, free: 50.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01327/0.4548, allocations: 6.461 MB / 0.5524 GB, free: 48.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.4548, allocations: 76.97 kB / 0.5525 GB, free: 48.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003782/0.4586, allocations: 2.24 MB / 0.5547 GB, free: 47.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.4589, allocations: 53.67 kB / 0.5547 GB, free: 47.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000964/0.4599, allocations: 1.701 MB / 0.5564 GB, free: 46.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006097/0.4605, allocations: 0.5406 MB / 0.5569 GB, free: 45.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005922/0.4611, allocations: 389.3 kB / 0.5573 GB, free: 45.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.299e-05/0.4612, allocations: 304.6 kB / 0.5576 GB, free: 45.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.4624, allocations: 0.8269 MB / 0.5584 GB, free: 44.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.4638, allocations: 1.482 MB / 0.5599 GB, free: 43.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.4664, allocations: 2.448 MB / 0.5622 GB, free: 41.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.4664, allocations: 7.781 kB / 0.5622 GB, free: 41.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004473/0.4709, allocations: 2.951 MB / 0.5651 GB, free: 40.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.4709, allocations: 12.19 kB / 0.5651 GB, free: 40.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.673e-05/0.471, allocations: 24.19 kB / 0.5652 GB, free: 40.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008446/0.4718, allocations: 303.1 kB / 0.5655 GB, free: 40 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.4734, allocations: 486 kB / 0.5659 GB, free: 39.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003959/0.4774, allocations: 4.939 MB / 0.5707 GB, free: 35.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.4793, allocations: 83.25 kB / 0.5708 GB, free: 35.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.4794, allocations: 98.33 kB / 0.5709 GB, free: 35.45 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 (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.001827/0.4812, allocations: 1.123 MB / 0.572 GB, free: 34.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004319/0.4817, allocations: 239.4 kB / 0.5722 GB, free: 34.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003466/0.4852, allocations: 2.422 MB / 0.5746 GB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.4852, allocations: 14.88 kB / 0.5746 GB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.4852, allocations: 5.594 kB / 0.5746 GB, free: 33.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.4852, allocations: 7.969 kB / 0.5746 GB, free: 33.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007538/0.4928, allocations: 5.794 MB / 0.5803 GB, free: 27.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.4928, allocations: 0 / 0.5803 GB, free: 27.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.494, allocations: 275.8 kB / 0.5806 GB, free: 27.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007988/0.4948, allocations: 336.3 kB / 0.5809 GB, free: 27.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.665e-05/0.4949, allocations: 39.98 kB / 0.5809 GB, free: 27.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004891/0.4998, allocations: 7.072 MB / 0.5878 GB, free: 19.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4998, allocations: 8.094 kB / 0.5878 GB, free: 19.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004573/0.5044, allocations: 3.521 MB / 0.5913 GB, free: 16.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.5056, allocations: 0.4942 MB / 0.5917 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.506, allocations: 32 kB / 0.5918 GB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.5072, allocations: 63.95 kB / 0.5918 GB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/0.5075, allocations: 121.1 kB / 0.592 GB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-05/0.5076, allocations: 36 kB / 0.592 GB, free: 15.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002068/0.5096, allocations: 1.523 MB / 0.5935 GB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5097, allocations: 0 / 0.5935 GB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002727/0.5124, allocations: 0.6537 MB / 0.5941 GB, free: 13.14 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 (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.005195/0.5176, allocations: 4.144 MB / 0.5982 GB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005452/0.5231, allocations: 3.013 MB / 0.6011 GB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.5231, allocations: 0 / 0.6011 GB, free: 5.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.5249, allocations: 1.418 MB / 0.6025 GB, free: 4.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/0.5275, allocations: 0.5742 MB / 0.603 GB, free: 3.863 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04947/0.577, allocations: 28.88 MB / 0.6313 GB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002942/0.58, allocations: 2.519 MB / 0.6337 GB, free: 1.832 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001888/0.5819, allocations: 0.5077 MB / 0.6342 GB, free: 1.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/0.5837, allocations: 1.347 MB / 0.6355 GB, free: 15.97 MB / 414.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5837, allocations: 0 / 0.6355 GB, free: 15.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1765/0.7602, allocations: 58.85 MB / 0.693 GB, free: 5.566 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002924/0.7606, allocations: 231.2 kB / 0.6932 GB, free: 5.312 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.127/3.888, allocations: 3.938 kB / 0.6932 GB, free: 5.309 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)