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.005694/0.005694, allocations: 101.3 kB / 15.73 MB, free: 5.988 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.377/1.377, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001642/0.001642, allocations: 184.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03661/0.03662, allocations: 8.804 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003354/0.003354, allocations: 79.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1177, allocations: 51.56 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01772/0.1354, allocations: 15.81 MB / 0.5184 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.1464, allocations: 5.274 MB / 0.5235 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003202/0.1496, allocations: 95.69 kB / 0.5236 GB, free: 4.715 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00428/0.154, allocations: 1.215 MB / 0.5248 GB, free: 3.492 MB / 366.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.005709/0.1597, allocations: 1.545 MB / 0.5263 GB, free: 1.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003069/0.1628, allocations: 0.9716 MB / 0.5273 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2051/0.3679, allocations: 4.688 MB / 0.5318 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004873/0.3728, allocations: 3.523 MB / 0.5353 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003849/0.3767, allocations: 2.11 MB / 0.5373 GB, free: 4.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004784/0.3816, allocations: 2.44 MB / 0.5397 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001982/0.3836, allocations: 0.5714 MB / 0.5403 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.3868, allocations: 0.7759 MB / 0.541 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001881/0.3887, allocations: 1.289 MB / 0.5423 GB, free: 3.789 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005924/0.3947, allocations: 2.447 MB / 0.5447 GB, free: 3.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4064, allocations: 7.528 MB / 0.552 GB, free: 2.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.4064, allocations: 1.125 kB / 0.552 GB, free: 2.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4064, allocations: 0 / 0.552 GB, free: 2.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002394/0.4067, allocations: 0 / 0.552 GB, free: 2.34 MB / 366.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.01611/0.4228, allocations: 5.089 MB / 0.557 GB, free: 15.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.4229, allocations: 9.406 kB / 0.557 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001516/0.4244, allocations: 0.5552 MB / 0.5576 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005645/0.4301, allocations: 0.9742 MB / 0.5585 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007057/0.4371, allocations: 2.849 MB / 0.5613 GB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002537/0.4374, allocations: 274.2 kB / 0.5615 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/0.4389, allocations: 372.8 kB / 0.5619 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01246/0.4514, allocations: 4.774 MB / 0.5666 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.993e-05/0.4515, allocations: 5.516 kB / 0.5666 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005649/0.4521, allocations: 154.2 kB / 0.5667 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001477/0.4522, allocations: 159.6 kB / 0.5669 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00938/0.4616, allocations: 4.049 MB / 0.5708 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03258/0.4942, allocations: 15.59 MB / 0.5861 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008036/0.5023, allocations: 6.932 MB / 0.5928 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003201/0.5056, allocations: 1.506 MB / 0.5943 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008866/0.5145, allocations: 4.15 MB / 0.5983 GB, free: 9.137 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.5146, allocations: 51.86 kB / 0.5984 GB, free: 9.074 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.067e-06/0.5146, allocations: 4 kB / 0.5984 GB, free: 9.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01421/0.5288, allocations: 6.418 MB / 0.6047 GB, free: 2.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.5289, allocations: 72.72 kB / 0.6047 GB, free: 2.453 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.5334, allocations: 2.191 MB / 0.6069 GB, free: 240 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002437/0.5336, allocations: 49.7 kB / 0.6069 GB, free: 184 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001589/0.5352, allocations: 1.791 MB / 0.6087 GB, free: 14.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007083/0.536, allocations: 0.5693 MB / 0.6092 GB, free: 13.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008564/0.5368, allocations: 408.1 kB / 0.6096 GB, free: 13.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.537, allocations: 305.1 kB / 0.6099 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.5386, allocations: 0.8281 MB / 0.6107 GB, free: 12.28 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002189/0.5408, allocations: 1.589 MB / 0.6123 GB, free: 10.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003834/0.5446, allocations: 2.586 MB / 0.6148 GB, free: 7.523 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-05/0.5446, allocations: 8 kB / 0.6148 GB, free: 7.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005663/0.5503, allocations: 3.044 MB / 0.6178 GB, free: 4.59 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.506e-05/0.5504, allocations: 16 kB / 0.6178 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.707e-05/0.5504, allocations: 24 kB / 0.6178 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009071/0.5514, allocations: 302.6 kB / 0.6181 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.5533, allocations: 0.499 MB / 0.6186 GB, free: 3.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005565/0.5589, allocations: 4.875 MB / 0.6233 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002284/0.5612, allocations: 99.88 kB / 0.6234 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.5615, allocations: 104 kB / 0.6235 GB, free: 14.46 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * 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.002534/0.564, allocations: 1.129 MB / 0.6246 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007027/0.5648, allocations: 246.5 kB / 0.6249 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00479/0.5696, allocations: 2.402 MB / 0.6272 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.5696, allocations: 16 kB / 0.6272 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.5696, allocations: 4 kB / 0.6272 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.5696, allocations: 7.969 kB / 0.6273 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.581, allocations: 5.699 MB / 0.6328 GB, free: 4.871 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.581, allocations: 7.938 kB / 0.6328 GB, free: 4.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.5823, allocations: 274.5 kB / 0.6331 GB, free: 4.609 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009058/0.5832, allocations: 316.7 kB / 0.6334 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.5834, allocations: 43.97 kB / 0.6334 GB, free: 4.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007527/0.5909, allocations: 7.024 MB / 0.6403 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.591, allocations: 4.156 kB / 0.6403 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006332/0.5973, allocations: 3.499 MB / 0.6437 GB, free: 9.285 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/0.5989, allocations: 0.4916 MB / 0.6442 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008042/0.5997, allocations: 39.92 kB / 0.6442 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/0.6013, allocations: 67.95 kB / 0.6443 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.6017, allocations: 113.2 kB / 0.6444 GB, free: 8.559 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.6018, allocations: 39.98 kB / 0.6444 GB, free: 8.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003171/0.605, allocations: 1.476 MB / 0.6459 GB, free: 7.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.605, allocations: 0 / 0.6459 GB, free: 7.027 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003408/0.6085, allocations: 0.6562 MB / 0.6465 GB, free: 6.371 MB / 462.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.006566/0.615, allocations: 4.119 MB / 0.6505 GB, free: 2.195 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004321/0.6194, allocations: 2.47 MB / 0.653 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6194, allocations: 0 / 0.653 GB, free: 15.77 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.6217, allocations: 1.413 MB / 0.6543 GB, free: 14.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/0.6255, allocations: 0.5759 MB / 0.6549 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04664/0.6722, allocations: 23.69 MB / 0.678 GB, free: 5.121 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003748/0.676, allocations: 2.519 MB / 0.6805 GB, free: 2.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002108/0.6781, allocations: 0.5196 MB / 0.681 GB, free: 2.047 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002441/0.6806, allocations: 1.351 MB / 0.6823 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6806, allocations: 0 / 0.6823 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3253/1.006, allocations: 57.85 MB / 0.7388 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.67/15.67, allocations: 10.34 kB / 0.7388 GB, free: 179.2 MB / 0.5294 GB (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)