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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01384/0.01384, allocations: 167.8 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06173/0.06173, allocations: 8.806 MB / 24.68 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.595/2.595, allocations: 223.2 MB / 250.8 MB, free: 6.551 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001333, allocations: 97.25 kB / 304.1 MB, free: 4.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006989/0.0006992, allocations: 20 kB / 367.3 MB, free: 4.875 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.57/0.5708, allocations: 52.53 MB / 419.8 MB, free: 48.11 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.02617/0.597, allocations: 13.91 MB / 433.7 MB, free: 38.06 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.6175, allocations: 4.91 MB / 438.6 MB, free: 34.46 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006822/0.6244, allocations: 86.03 kB / 438.7 MB, free: 34.45 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006952/0.6314, allocations: 0.9278 MB / 439.6 MB, free: 34.01 MB / 330.7 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.01143/0.6429, allocations: 1.276 MB / 440.9 MB, free: 33.2 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006339/0.6493, allocations: 0.6721 MB / 441.6 MB, free: 32.78 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0154/0.6647, allocations: 4.648 MB / 446.2 MB, free: 30.19 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00859/0.6734, allocations: 2.463 MB / 448.7 MB, free: 28.23 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005987/0.6795, allocations: 1.467 MB / 450.1 MB, free: 26.75 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006354/0.6859, allocations: 1.887 MB / 452 MB, free: 24.86 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002208/0.6881, allocations: 236 kB / 452.3 MB, free: 24.63 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005128/0.6933, allocations: 435.7 kB / 452.7 MB, free: 24.2 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003401/0.6968, allocations: 0.8757 MB / 453.6 MB, free: 23.32 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004881/0.7018, allocations: 0.8395 MB / 454.4 MB, free: 22.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.7145, allocations: 6.104 MB / 460.5 MB, free: 16.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.7146, allocations: 0 / 460.5 MB, free: 16.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.049e-06/0.7146, allocations: 3.938 kB / 460.5 MB, free: 16.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003419/0.715, allocations: 0 / 460.5 MB, free: 16.35 MB / 330.7 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.0197/0.7347, allocations: 4.257 MB / 464.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.311e-05/0.7348, allocations: 12.5 kB / 464.8 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00421/0.739, allocations: 0.5607 MB / 465.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00974/0.7488, allocations: 0.9707 MB / 466.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01075/0.7597, allocations: 2.583 MB / 468.9 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004428/0.7602, allocations: 283.4 kB / 469.2 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002057/0.7623, allocations: 363.9 kB / 469.5 MB, free: 7.195 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01917/0.7815, allocations: 4.749 MB / 474.3 MB, free: 2.402 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001747/0.7817, allocations: 8 kB / 474.3 MB, free: 2.395 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.7829, allocations: 148 kB / 474.4 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/0.7831, allocations: 159.3 kB / 474.6 MB, free: 2.094 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.7995, allocations: 4.038 MB / 478.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05674/0.8564, allocations: 15.9 MB / 494.5 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01253/0.869, allocations: 6.94 MB / 0.4897 GB, free: 5.828 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00571/0.8748, allocations: 1.538 MB / 0.4912 GB, free: 4.293 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01365/0.8886, allocations: 4.25 MB / 0.4954 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.884e-05/0.8888, allocations: 47.88 kB / 0.4954 GB, free: 15.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 6.842e-06/0.8888, allocations: 4 kB / 0.4954 GB, free: 15.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02286/0.9116, allocations: 6.512 MB / 0.5018 GB, free: 9.188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.635e-05/0.9118, allocations: 76.67 kB / 0.5018 GB, free: 9.102 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006495/0.9183, allocations: 2.211 MB / 0.504 GB, free: 6.859 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004787/0.9189, allocations: 53.7 kB / 0.5041 GB, free: 6.801 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002247/0.9212, allocations: 1.7 MB / 0.5057 GB, free: 5.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/0.9223, allocations: 0.5508 MB / 0.5063 GB, free: 4.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.9225, allocations: 40 kB / 0.5063 GB, free: 4.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003074/0.9228, allocations: 390.1 kB / 0.5067 GB, free: 4.094 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002498/0.9253, allocations: 0.824 MB / 0.5075 GB, free: 3.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003014/0.9284, allocations: 1.48 MB / 0.5089 GB, free: 1.488 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002777/0.9312, allocations: 1.087 MB / 0.51 GB, free: 412 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.032e-05/0.9312, allocations: 12 kB / 0.51 GB, free: 400 kB / 378.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008745/0.94, allocations: 2.947 MB / 0.5129 GB, free: 13.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.377e-05/0.9401, allocations: 19.95 kB / 0.5129 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-05/0.9402, allocations: 23.98 kB / 0.5129 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.9416, allocations: 306.7 kB / 0.5132 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003006/0.9447, allocations: 491.2 kB / 0.5137 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007996/0.9527, allocations: 4.503 MB / 0.5181 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004147/0.9569, allocations: 87.88 kB / 0.5181 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005004/0.9575, allocations: 100 kB / 0.5182 GB, free: 7.613 MB / 394.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004095/0.9616, allocations: 1.106 MB / 0.5193 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001139/0.9627, allocations: 233.2 kB / 0.5195 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007022/0.9698, allocations: 2.44 MB / 0.5219 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.9698, allocations: 19.95 kB / 0.5219 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.9699, allocations: 8.062 kB / 0.522 GB, free: 3.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/0.9699, allocations: 7.969 kB / 0.522 GB, free: 3.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/0.9868, allocations: 5.79 MB / 0.5276 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/0.9869, allocations: 0 / 0.5276 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/0.9889, allocations: 283.8 kB / 0.5279 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/0.9904, allocations: 318.3 kB / 0.5282 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002141/0.9906, allocations: 35.98 kB / 0.5282 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/1.001, allocations: 6.436 MB / 0.5345 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.055e-06/1.001, allocations: 3.953 kB / 0.5345 GB, free: 6.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009639/1.01, allocations: 3.525 MB / 0.538 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002198/1.013, allocations: 0.4981 MB / 0.5384 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00105/1.014, allocations: 31.98 kB / 0.5385 GB, free: 2.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002266/1.016, allocations: 75.89 kB / 0.5385 GB, free: 2.105 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000443/1.017, allocations: 121.1 kB / 0.5387 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/1.017, allocations: 43.98 kB / 0.5387 GB, free: 1.945 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004306/1.021, allocations: 1.507 MB / 0.5402 GB, free: 432 kB / 410.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.021, allocations: 0 / 0.5402 GB, free: 432 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.005775/1.027, allocations: 0.6524 MB / 0.5408 GB, free: 15.77 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01104/1.038, allocations: 4.137 MB / 0.5449 GB, free: 11.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007263/1.045, allocations: 2.44 MB / 0.5472 GB, free: 9.051 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.046, allocations: 3.938 kB / 0.5472 GB, free: 9.047 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003884/1.049, allocations: 1.423 MB / 0.5486 GB, free: 7.586 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006204/1.056, allocations: 0.5511 MB / 0.5492 GB, free: 7.035 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4717/1.528, allocations: 19.69 MB / 0.5684 GB, free: 121 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005683/1.533, allocations: 2.517 MB / 0.5709 GB, free: 119.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004276/1.538, allocations: 0.5078 MB / 0.5713 GB, free: 119.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00379/1.541, allocations: 1.349 MB / 0.5727 GB, free: 118.8 MB / 426.7 MB Notification: Performance of SimCode: time 2.785e-06/1.542, allocations: 0 / 0.5727 GB, free: 118.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2005/1.742, allocations: 55.69 MB / 0.6271 GB, free: 71.89 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003551/1.743, allocations: 211.9 kB / 0.6273 GB, free: 71.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/9.386, allocations: 0 / 0.6273 GB, free: 71.65 MB / 426.7 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/linux/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)