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-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_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.005101/0.005101, allocations: 95.02 kB / 15.73 MB, free: 6.039 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.382/1.382, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001559/0.001559, allocations: 176.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03649/0.03649, allocations: 8.805 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002241/0.002241, allocations: 79.88 kB / 463.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1112, allocations: 51.57 MB / 0.503 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01798/0.1292, allocations: 15.82 MB / 0.5184 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.14, allocations: 5.282 MB / 0.5236 GB, free: 4.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002836/0.1428, allocations: 91.69 kB / 0.5236 GB, free: 4.707 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003769/0.1466, allocations: 1.211 MB / 0.5248 GB, free: 3.488 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.005317/0.152, allocations: 1.545 MB / 0.5263 GB, free: 1.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002718/0.1547, allocations: 0.9738 MB / 0.5273 GB, free: 0.9609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2071/0.3619, allocations: 4.69 MB / 0.5319 GB, free: 5.703 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004985/0.3669, allocations: 3.522 MB / 0.5353 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003878/0.3708, allocations: 2.106 MB / 0.5374 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005161/0.376, allocations: 2.437 MB / 0.5397 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.3781, allocations: 0.5715 MB / 0.5403 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00313/0.3813, allocations: 0.7846 MB / 0.5411 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001796/0.3831, allocations: 1.287 MB / 0.5423 GB, free: 4.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005447/0.3886, allocations: 2.446 MB / 0.5447 GB, free: 3.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01005/0.3986, allocations: 7.525 MB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3987, allocations: 0 / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3987, allocations: 0 / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.3989, allocations: 2.625 kB / 0.5521 GB, free: 2.734 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.01714/0.416, allocations: 5.096 MB / 0.557 GB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.4161, allocations: 9.469 kB / 0.5571 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001871/0.418, allocations: 0.5574 MB / 0.5576 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005879/0.4239, allocations: 0.974 MB / 0.5585 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006989/0.4309, allocations: 2.843 MB / 0.5613 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.4311, allocations: 279.8 kB / 0.5616 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000942/0.4321, allocations: 372.6 kB / 0.5619 GB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.4422, allocations: 4.773 MB / 0.5666 GB, free: 9.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.21e-05/0.4423, allocations: 8.297 kB / 0.5666 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004078/0.4427, allocations: 157 kB / 0.5668 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.4429, allocations: 157.7 kB / 0.5669 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007662/0.4505, allocations: 4.038 MB / 0.5709 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02817/0.4787, allocations: 15.6 MB / 0.5861 GB, free: 6.766 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007427/0.4862, allocations: 6.935 MB / 0.5929 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002892/0.4891, allocations: 1.503 MB / 0.5943 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007796/0.4969, allocations: 4.155 MB / 0.5984 GB, free: 9.246 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.58e-05/0.497, allocations: 43.88 kB / 0.5984 GB, free: 9.191 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.477e-06/0.497, allocations: 4 kB / 0.5984 GB, free: 9.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01466/0.5117, allocations: 6.421 MB / 0.6047 GB, free: 2.648 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.5118, allocations: 72.72 kB / 0.6048 GB, free: 2.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003881/0.5157, allocations: 2.187 MB / 0.6069 GB, free: 356 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002788/0.516, allocations: 49.7 kB / 0.607 GB, free: 300 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.5177, allocations: 1.796 MB / 0.6087 GB, free: 14.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006953/0.5184, allocations: 0.5716 MB / 0.6093 GB, free: 13.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006804/0.5191, allocations: 408.1 kB / 0.6097 GB, free: 13.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5192, allocations: 305.1 kB / 0.61 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0015/0.5207, allocations: 0.8309 MB / 0.6108 GB, free: 12.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/0.5228, allocations: 1.585 MB / 0.6123 GB, free: 10.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003654/0.5265, allocations: 2.59 MB / 0.6148 GB, free: 7.676 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.5265, allocations: 4 kB / 0.6148 GB, free: 7.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005478/0.532, allocations: 3.043 MB / 0.6178 GB, free: 4.746 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.5e-05/0.532, allocations: 19.94 kB / 0.6178 GB, free: 4.727 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.5321, allocations: 27.38 kB / 0.6179 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008564/0.533, allocations: 302.8 kB / 0.6182 GB, free: 4.398 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001858/0.5348, allocations: 0.4988 MB / 0.6186 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005447/0.5403, allocations: 4.879 MB / 0.6234 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002068/0.5424, allocations: 99.88 kB / 0.6235 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/0.5426, allocations: 100.1 kB / 0.6236 GB, free: 14.61 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.002212/0.5448, allocations: 1.131 MB / 0.6247 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005379/0.5454, allocations: 246.5 kB / 0.6249 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004374/0.5498, allocations: 2.404 MB / 0.6273 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.5498, allocations: 16 kB / 0.6273 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.5498, allocations: 4 kB / 0.6273 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.5498, allocations: 7.969 kB / 0.6273 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.5604, allocations: 5.696 MB / 0.6329 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.5605, allocations: 4 kB / 0.6329 GB, free: 5.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.5617, allocations: 277.8 kB / 0.6331 GB, free: 4.762 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008525/0.5626, allocations: 323.3 kB / 0.6334 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.5627, allocations: 35.98 kB / 0.6335 GB, free: 4.406 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007524/0.5702, allocations: 7.025 MB / 0.6403 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5703, allocations: 4.031 kB / 0.6403 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006727/0.577, allocations: 3.499 MB / 0.6438 GB, free: 9.445 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/0.5787, allocations: 0.4916 MB / 0.6442 GB, free: 8.934 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005344/0.5792, allocations: 32 kB / 0.6443 GB, free: 8.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.5805, allocations: 71.89 kB / 0.6443 GB, free: 8.832 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000355/0.5808, allocations: 120.7 kB / 0.6445 GB, free: 8.719 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.5809, allocations: 36.05 kB / 0.6445 GB, free: 8.684 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002576/0.5835, allocations: 1.476 MB / 0.6459 GB, free: 7.191 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5835, allocations: 0 / 0.6459 GB, free: 7.191 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002912/0.5865, allocations: 0.6523 MB / 0.6466 GB, free: 6.539 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.006281/0.5928, allocations: 4.124 MB / 0.6506 GB, free: 2.355 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004436/0.5972, allocations: 2.471 MB / 0.653 GB, free: 15.92 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5973, allocations: 0 / 0.653 GB, free: 15.92 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002387/0.5997, allocations: 1.418 MB / 0.6544 GB, free: 14.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/0.6028, allocations: 0.5741 MB / 0.655 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04347/0.6463, allocations: 23.68 MB / 0.6781 GB, free: 5.242 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002759/0.6491, allocations: 2.519 MB / 0.6805 GB, free: 2.691 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002483/0.6516, allocations: 0.5196 MB / 0.681 GB, free: 2.168 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002088/0.6537, allocations: 1.355 MB / 0.6824 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6537, allocations: 0 / 0.6824 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3323/0.9861, allocations: 57.84 MB / 0.7389 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/15.33, allocations: 8.531 kB / 0.7389 GB, free: 179.7 MB / 0.5294 GB (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/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)