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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.001089/0.001089, 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.31/1.31, allocations: 222.9 MB / 239 MB, free: 4.738 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.001833/0.001833, allocations: 192.5 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03487/0.03487, allocations: 8.797 MB / 348.2 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001707, allocations: 77.97 kB / 410.7 MB, free: 42.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08594/0.08768, allocations: 51.57 MB / 462.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01586/0.1036, allocations: 15.61 MB / 477.9 MB, free: 15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.1138, allocations: 5.193 MB / 483.1 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00329/0.1171, allocations: 87.69 kB / 483.1 MB, free: 9.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.1213, allocations: 1.069 MB / 484.2 MB, free: 8.633 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.005316/0.1267, allocations: 1.396 MB / 485.6 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002776/0.1295, allocations: 0.886 MB / 486.5 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006686/0.1362, allocations: 4.815 MB / 491.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005432/0.1416, allocations: 3.524 MB / 494.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002994/0.1446, allocations: 2.005 MB / 496.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003613/0.1483, allocations: 2.417 MB / 499.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001411/0.1497, allocations: 0.5625 MB / 499.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.1522, allocations: 0.7888 MB / 0.4889 GB, free: 8.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001768/0.154, allocations: 1.278 MB / 0.4901 GB, free: 6.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004215/0.1582, allocations: 2.443 MB / 0.4925 GB, free: 4.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008799/0.167, allocations: 7.415 MB / 0.4998 GB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1671, allocations: 0 / 0.4998 GB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1671, allocations: 0 / 0.4998 GB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002391/0.1673, allocations: 0 / 0.4998 GB, free: 12.96 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.01641/0.1837, allocations: 4.962 MB / 0.5046 GB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.1838, allocations: 12.03 kB / 0.5046 GB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001964/0.1858, allocations: 0.5531 MB / 0.5052 GB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006154/0.1919, allocations: 0.9599 MB / 0.5061 GB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006258/0.1982, allocations: 2.653 MB / 0.5087 GB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003114/0.1986, allocations: 275.8 kB / 0.5089 GB, free: 3.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001214/0.1998, allocations: 367.8 kB / 0.5093 GB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.211, allocations: 4.78 MB / 0.514 GB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001296/0.2112, allocations: 4 kB / 0.514 GB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007631/0.212, allocations: 148 kB / 0.5141 GB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/0.2121, allocations: 155.4 kB / 0.5143 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008575/0.2207, allocations: 4.054 MB / 0.5182 GB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2046/0.4254, allocations: 15.82 MB / 0.5337 GB, free: 56.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006763/0.4322, allocations: 6.933 MB / 0.5404 GB, free: 51.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002914/0.4352, allocations: 1.527 MB / 0.5419 GB, free: 51.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00806/0.4433, allocations: 4.236 MB / 0.5461 GB, free: 51.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.4434, allocations: 45.28 kB / 0.5461 GB, free: 51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.349e-06/0.4434, allocations: 0.875 kB / 0.5461 GB, free: 51 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01387/0.4572, allocations: 6.463 MB / 0.5524 GB, free: 48.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.4573, allocations: 74.27 kB / 0.5525 GB, free: 48.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004533/0.4619, allocations: 2.239 MB / 0.5547 GB, free: 47.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002611/0.4622, allocations: 53.61 kB / 0.5547 GB, free: 47.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001075/0.4632, allocations: 1.697 MB / 0.5564 GB, free: 46.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006009/0.4639, allocations: 0.5539 MB / 0.5569 GB, free: 45.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007255/0.4646, allocations: 389.2 kB / 0.5573 GB, free: 45.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.21e-05/0.4647, allocations: 301.1 kB / 0.5576 GB, free: 45.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.4659, allocations: 0.8267 MB / 0.5584 GB, free: 44.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.4676, allocations: 1.487 MB / 0.5598 GB, free: 43.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00289/0.4705, allocations: 2.45 MB / 0.5622 GB, free: 41.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.926e-05/0.4705, allocations: 3.969 kB / 0.5622 GB, free: 41.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004614/0.4751, allocations: 2.95 MB / 0.5651 GB, free: 40.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4752, allocations: 17.16 kB / 0.5651 GB, free: 40.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.685e-05/0.4752, allocations: 21.61 kB / 0.5652 GB, free: 40.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008662/0.4761, allocations: 302.6 kB / 0.5654 GB, free: 40.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.4777, allocations: 485.4 kB / 0.5659 GB, free: 39.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004002/0.4818, allocations: 4.946 MB / 0.5707 GB, free: 35.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.4839, allocations: 91.09 kB / 0.5708 GB, free: 35.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.4842, allocations: 95.36 kB / 0.5709 GB, free: 35.52 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.002322/0.4865, allocations: 1.123 MB / 0.572 GB, free: 34.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007656/0.4873, allocations: 233.3 kB / 0.5722 GB, free: 34.65 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004181/0.4915, allocations: 2.426 MB / 0.5746 GB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.563e-05/0.4915, allocations: 17.97 kB / 0.5746 GB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.956e-05/0.4916, allocations: 7.469 kB / 0.5746 GB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.4916, allocations: 12.42 kB / 0.5746 GB, free: 33.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009754/0.5013, allocations: 5.779 MB / 0.5803 GB, free: 27.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.5014, allocations: 4 kB / 0.5803 GB, free: 27.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.5026, allocations: 279.8 kB / 0.5806 GB, free: 27.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008352/0.5034, allocations: 323.9 kB / 0.5809 GB, free: 27.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/0.5036, allocations: 39.98 kB / 0.5809 GB, free: 27.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/0.5086, allocations: 7.074 MB / 0.5878 GB, free: 19.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.5087, allocations: 4.031 kB / 0.5878 GB, free: 19.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0049/0.5136, allocations: 3.521 MB / 0.5912 GB, free: 16.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.5147, allocations: 0.492 MB / 0.5917 GB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006649/0.5154, allocations: 35.94 kB / 0.5918 GB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/0.5169, allocations: 63.95 kB / 0.5918 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/0.5172, allocations: 117.1 kB / 0.5919 GB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.5173, allocations: 43.98 kB / 0.592 GB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002462/0.5198, allocations: 1.523 MB / 0.5935 GB, free: 13.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5198, allocations: 0 / 0.5935 GB, free: 13.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002677/0.5225, allocations: 0.6523 MB / 0.5941 GB, free: 13.2 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.005047/0.5275, allocations: 4.151 MB / 0.5982 GB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005337/0.5329, allocations: 3.01 MB / 0.6011 GB, free: 5.938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.5329, allocations: 384 / 0.6011 GB, free: 5.938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.5347, allocations: 1.418 MB / 0.6025 GB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003531/0.5383, allocations: 0.5649 MB / 0.603 GB, free: 3.934 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05522/0.5935, allocations: 28.89 MB / 0.6312 GB, free: 4.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002979/0.5965, allocations: 2.511 MB / 0.6337 GB, free: 1.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002012/0.5986, allocations: 0.5116 MB / 0.6342 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001868/0.6004, allocations: 1.351 MB / 0.6355 GB, free: 44 kB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6005, allocations: 0 / 0.6355 GB, free: 44 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/0.7208, allocations: 58.85 MB / 0.693 GB, free: 5.633 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.7211, allocations: 235.1 kB / 0.6932 GB, free: 5.379 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/3.745, allocations: 0 / 0.6932 GB, free: 5.379 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)