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.001245/0.001245, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.254/1.254, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.00117/0.00117, allocations: 192.5 kB / 289.1 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0334/0.0334, allocations: 8.783 MB / 348.1 MB, free: 4.91 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 76.56 kB / 410.5 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07648/0.07785, allocations: 51.56 MB / 462.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01559/0.09347, allocations: 15.62 MB / 477.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008626/0.1021, allocations: 5.212 MB / 482.9 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001693/0.1039, allocations: 91.69 kB / 483 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002579/0.1065, allocations: 1.069 MB / 484.1 MB, free: 8.723 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.003516/0.11, allocations: 1.418 MB / 485.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001753/0.1118, allocations: 0.8886 MB / 486.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004771/0.1166, allocations: 4.986 MB / 491.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003171/0.1197, allocations: 2.93 MB / 494.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001914/0.1217, allocations: 1.704 MB / 496 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002159/0.1238, allocations: 2.253 MB / 498.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005098/0.1244, allocations: 336 kB / 498.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.1255, allocations: 0.5466 MB / 499.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.1264, allocations: 1.039 MB / 0.4884 GB, free: 8.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.1284, allocations: 2.181 MB / 0.4906 GB, free: 6.324 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005689/0.1341, allocations: 7.263 MB / 0.4977 GB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1341, allocations: 0 / 0.4977 GB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1341, allocations: 0 / 0.4977 GB, free: 15.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001051/0.1342, allocations: 0 / 0.4977 GB, free: 15.04 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.01138/0.1456, allocations: 4.963 MB / 0.5025 GB, free: 10 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1457, allocations: 8.031 kB / 0.5025 GB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008173/0.1465, allocations: 0.5531 MB / 0.5031 GB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004839/0.1514, allocations: 0.9561 MB / 0.504 GB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004755/0.1561, allocations: 2.649 MB / 0.5066 GB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.1563, allocations: 283.8 kB / 0.5068 GB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004868/0.1568, allocations: 375.8 kB / 0.5072 GB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007329/0.1642, allocations: 4.772 MB / 0.5119 GB, free: 316 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-05/0.1643, allocations: 3.984 kB / 0.5119 GB, free: 312 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000317/0.1646, allocations: 152 kB / 0.512 GB, free: 160 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/0.1647, allocations: 155.3 kB / 0.5122 GB, free: 4 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006356/0.1711, allocations: 4.05 MB / 0.5161 GB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1787/0.3498, allocations: 15.81 MB / 0.5316 GB, free: 57.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004973/0.3548, allocations: 6.945 MB / 0.5383 GB, free: 52.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002341/0.3572, allocations: 1.524 MB / 0.5398 GB, free: 52.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007219/0.3644, allocations: 4.241 MB / 0.544 GB, free: 51.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.568e-05/0.3644, allocations: 46.97 kB / 0.544 GB, free: 51.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.785e-06/0.3645, allocations: 0 / 0.544 GB, free: 51.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0119/0.3764, allocations: 6.451 MB / 0.5503 GB, free: 49.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.3764, allocations: 69.53 kB / 0.5504 GB, free: 49.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003287/0.3797, allocations: 2.239 MB / 0.5526 GB, free: 48.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/0.3799, allocations: 49.64 kB / 0.5526 GB, free: 48.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000807/0.3807, allocations: 1.705 MB / 0.5543 GB, free: 47.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003242/0.381, allocations: 0.546 MB / 0.5548 GB, free: 47.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004836/0.3815, allocations: 388.7 kB / 0.5552 GB, free: 46.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.96e-05/0.3815, allocations: 305.1 kB / 0.5555 GB, free: 46.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.3826, allocations: 0.8257 MB / 0.5563 GB, free: 46.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.3839, allocations: 1.492 MB / 0.5577 GB, free: 45.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.3864, allocations: 2.446 MB / 0.5601 GB, free: 43.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.3864, allocations: 7.875 kB / 0.5601 GB, free: 43.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004161/0.3906, allocations: 2.952 MB / 0.563 GB, free: 41.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.3906, allocations: 15.38 kB / 0.563 GB, free: 41.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/0.3906, allocations: 25.08 kB / 0.5631 GB, free: 41.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008125/0.3915, allocations: 294.5 kB / 0.5633 GB, free: 41.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.3931, allocations: 485.8 kB / 0.5638 GB, free: 41.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003535/0.3966, allocations: 4.508 MB / 0.5682 GB, free: 37.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.3985, allocations: 92 kB / 0.5683 GB, free: 37.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.3987, allocations: 94.61 kB / 0.5684 GB, free: 37.5 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.001924/0.4006, allocations: 1.121 MB / 0.5695 GB, free: 36.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004607/0.4011, allocations: 239.4 kB / 0.5697 GB, free: 36.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/0.4044, allocations: 2.431 MB / 0.5721 GB, free: 35.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.4045, allocations: 16.19 kB / 0.5721 GB, free: 35.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.4045, allocations: 3.719 kB / 0.5721 GB, free: 35.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.4045, allocations: 11.91 kB / 0.5721 GB, free: 35.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00706/0.4116, allocations: 5.794 MB / 0.5778 GB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.4116, allocations: 5.562 kB / 0.5778 GB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.4127, allocations: 267.7 kB / 0.578 GB, free: 29.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007566/0.4134, allocations: 331.2 kB / 0.5783 GB, free: 29.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.284e-05/0.4136, allocations: 35.98 kB / 0.5784 GB, free: 29.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004512/0.4181, allocations: 6.431 MB / 0.5847 GB, free: 22.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4181, allocations: 12.03 kB / 0.5847 GB, free: 22.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004362/0.4225, allocations: 3.517 MB / 0.5881 GB, free: 19.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009945/0.4235, allocations: 0.4952 MB / 0.5886 GB, free: 18.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.4238, allocations: 32 kB / 0.5886 GB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.4248, allocations: 63.95 kB / 0.5887 GB, free: 18.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.4251, allocations: 125 kB / 0.5888 GB, free: 18.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.117e-05/0.4252, allocations: 43.75 kB / 0.5888 GB, free: 18.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001733/0.4269, allocations: 1.519 MB / 0.5903 GB, free: 16.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4269, allocations: 0 / 0.5903 GB, free: 16.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002019/0.4289, allocations: 0.6529 MB / 0.591 GB, free: 16.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.004457/0.4334, allocations: 4.151 MB / 0.595 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003287/0.4367, allocations: 2.423 MB / 0.5974 GB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4368, allocations: 0 / 0.5974 GB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.4384, allocations: 1.422 MB / 0.5988 GB, free: 8.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0027/0.4411, allocations: 0.5425 MB / 0.5993 GB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04608/0.4872, allocations: 28.88 MB / 0.6275 GB, free: 8.055 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00263/0.4899, allocations: 2.515 MB / 0.6299 GB, free: 5.508 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001944/0.4918, allocations: 0.5116 MB / 0.6304 GB, free: 4.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/0.4937, allocations: 1.347 MB / 0.6318 GB, free: 3.645 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4937, allocations: 4 kB / 0.6318 GB, free: 3.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09271/0.5864, allocations: 57.6 MB / 0.688 GB, free: 10.45 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002422/0.5867, allocations: 232 kB / 0.6882 GB, free: 10.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.82/3.407, allocations: 0 / 0.6882 GB, free: 10.19 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)