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.005495/0.005494, allocations: 97.42 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.371/1.371, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00168/0.00168, allocations: 199.9 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03613/0.03613, allocations: 8.801 MB / 348.7 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002386, allocations: 79.88 kB / 463.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09944/0.1018, allocations: 51.56 MB / 0.503 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01833/0.1202, allocations: 15.82 MB / 0.5184 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1313, allocations: 5.278 MB / 0.5235 GB, free: 4.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002747/0.1341, allocations: 91.69 kB / 0.5236 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004326/0.1384, allocations: 1.215 MB / 0.5248 GB, free: 3.508 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.005845/0.1444, allocations: 1.553 MB / 0.5263 GB, free: 1.945 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003233/0.1476, allocations: 0.97 MB / 0.5273 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2184/0.3661, allocations: 4.688 MB / 0.5319 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004792/0.3709, allocations: 3.525 MB / 0.5353 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004271/0.3752, allocations: 2.105 MB / 0.5374 GB, free: 4.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00533/0.3806, allocations: 2.435 MB / 0.5397 GB, free: 4.363 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002496/0.3831, allocations: 0.5744 MB / 0.5403 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003412/0.3866, allocations: 0.7834 MB / 0.5411 GB, free: 4.359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001997/0.3886, allocations: 1.285 MB / 0.5423 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005859/0.3945, allocations: 2.44 MB / 0.5447 GB, free: 3.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.4056, allocations: 7.529 MB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.4056, allocations: 0 / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4057, allocations: 1.25 kB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002868/0.4059, allocations: 0 / 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.01748/0.4234, allocations: 5.09 MB / 0.557 GB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4235, allocations: 12.66 kB / 0.557 GB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002243/0.4258, allocations: 0.5548 MB / 0.5576 GB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006453/0.4322, allocations: 0.9783 MB / 0.5585 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007268/0.4395, allocations: 2.845 MB / 0.5613 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003003/0.4399, allocations: 279.9 kB / 0.5616 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001359/0.4412, allocations: 368.4 kB / 0.5619 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01244/0.4537, allocations: 4.773 MB / 0.5666 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.4539, allocations: 10.59 kB / 0.5666 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007247/0.4546, allocations: 147.4 kB / 0.5667 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.4548, allocations: 158.2 kB / 0.5669 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008873/0.4636, allocations: 4.041 MB / 0.5708 GB, free: 6.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02895/0.4926, allocations: 15.6 MB / 0.5861 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007335/0.5, allocations: 6.933 MB / 0.5929 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00291/0.503, allocations: 1.494 MB / 0.5943 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008169/0.5112, allocations: 4.163 MB / 0.5984 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.223e-05/0.5113, allocations: 47.88 kB / 0.5984 GB, free: 9.219 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.797e-06/0.5113, allocations: 0 / 0.5984 GB, free: 9.219 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01425/0.5255, allocations: 6.429 MB / 0.6047 GB, free: 2.676 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/0.5256, allocations: 69.56 kB / 0.6048 GB, free: 2.598 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003637/0.5293, allocations: 2.183 MB / 0.6069 GB, free: 392 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.5295, allocations: 53.7 kB / 0.607 GB, free: 332 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.5309, allocations: 1.785 MB / 0.6087 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005575/0.5315, allocations: 0.5764 MB / 0.6093 GB, free: 13.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006513/0.5322, allocations: 408.1 kB / 0.6096 GB, free: 13.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5323, allocations: 309.1 kB / 0.6099 GB, free: 13.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001426/0.5337, allocations: 0.8265 MB / 0.6107 GB, free: 12.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.5358, allocations: 1.584 MB / 0.6123 GB, free: 10.52 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/0.5394, allocations: 2.596 MB / 0.6148 GB, free: 7.688 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/0.5394, allocations: 4 kB / 0.6148 GB, free: 7.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005336/0.5448, allocations: 3.045 MB / 0.6178 GB, free: 4.754 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.436e-05/0.5448, allocations: 19.94 kB / 0.6178 GB, free: 4.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-05/0.5449, allocations: 24.75 kB / 0.6179 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008376/0.5457, allocations: 302.2 kB / 0.6181 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.5475, allocations: 0.4986 MB / 0.6186 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005254/0.5528, allocations: 4.876 MB / 0.6234 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002087/0.5549, allocations: 101.2 kB / 0.6235 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002366/0.5552, allocations: 108 kB / 0.6236 GB, free: 14.62 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.002236/0.5574, allocations: 1.125 MB / 0.6247 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005844/0.558, allocations: 242.5 kB / 0.6249 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.5626, allocations: 2.406 MB / 0.6273 GB, free: 10.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.5626, allocations: 16 kB / 0.6273 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.5626, allocations: 4 kB / 0.6273 GB, free: 10.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.5627, allocations: 11.97 kB / 0.6273 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.5738, allocations: 5.694 MB / 0.6329 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.5739, allocations: 0 / 0.6329 GB, free: 5.031 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.5751, allocations: 278.4 kB / 0.6331 GB, free: 4.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008785/0.576, allocations: 328.3 kB / 0.6334 GB, free: 4.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.5762, allocations: 28 kB / 0.6335 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007779/0.584, allocations: 7.02 MB / 0.6403 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.584, allocations: 0 / 0.6403 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006267/0.5903, allocations: 3.499 MB / 0.6437 GB, free: 9.461 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.5917, allocations: 0.4916 MB / 0.6442 GB, free: 8.949 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007018/0.5925, allocations: 40 kB / 0.6443 GB, free: 8.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.594, allocations: 67.89 kB / 0.6443 GB, free: 8.844 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003173/0.5943, allocations: 116.6 kB / 0.6444 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/0.5945, allocations: 47.98 kB / 0.6445 GB, free: 8.688 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003093/0.5976, allocations: 1.472 MB / 0.6459 GB, free: 7.199 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5976, allocations: 3.938 kB / 0.6459 GB, free: 7.195 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003207/0.6008, allocations: 0.6562 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.006521/0.6073, allocations: 4.116 MB / 0.6506 GB, free: 2.367 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00443/0.6118, allocations: 2.47 MB / 0.653 GB, free: 15.94 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.6118, allocations: 320 / 0.653 GB, free: 15.94 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/0.6142, allocations: 1.414 MB / 0.6544 GB, free: 14.51 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/0.6178, allocations: 0.5751 MB / 0.6549 GB, free: 13.94 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04602/0.6639, allocations: 23.69 MB / 0.6781 GB, free: 5.254 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003628/0.6675, allocations: 2.519 MB / 0.6805 GB, free: 2.703 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002059/0.6696, allocations: 0.5196 MB / 0.681 GB, free: 2.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002319/0.6719, allocations: 1.347 MB / 0.6824 GB, free: 0.832 MB / 494.1 MB Notification: Performance of SimCode: time 7.71e-07/0.672, allocations: 4 kB / 0.6824 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3534/1.025, allocations: 57.85 MB / 0.7388 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.32/15.35, allocations: 8.719 kB / 0.7389 GB, free: 179.6 MB / 0.5294 GB (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)