Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",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.001152/0.001152, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0397/0.0397, allocations: 8.699 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 221.4 MB / 246 MB, free: 3.543 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.0009221/0.0009221, allocations: 96.33 kB / 299.1 MB, free: 2.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.558e-05/3.56e-05, allocations: 4 kB / 359.6 MB, free: 6.402 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2793, allocations: 52.54 MB / 412.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4599/0.7392, allocations: 139.9 MB / 0.5392 GB, free: 37.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.7396, allocations: 79.83 kB / 0.5392 GB, free: 37.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8474/1.587, allocations: 271.5 MB / 0.8044 GB, free: 35.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.425e-06/1.587, allocations: 4 kB / 0.8044 GB, free: 35.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005246/1.588, allocations: 171.8 kB / 0.8045 GB, free: 34.9 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.02652/1.614, allocations: 7.425 MB / 0.8118 GB, free: 27.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/1.614, allocations: 8.031 kB / 0.8118 GB, free: 27.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005276/1.619, allocations: 1.262 MB / 0.813 GB, free: 26.17 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02273/1.642, allocations: 3.886 MB / 0.8168 GB, free: 22.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01747/1.66, allocations: 6.769 MB / 0.8234 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005457/1.66, allocations: 0.565 MB / 0.824 GB, free: 15.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003739/1.664, allocations: 0.7504 MB / 0.8247 GB, free: 14.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03195/1.696, allocations: 12.48 MB / 0.8369 GB, free: 1.566 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002552/1.696, allocations: 15.91 kB / 0.8369 GB, free: 1.551 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001774/1.698, allocations: 328.3 kB / 0.8372 GB, free: 1.238 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005313/1.699, allocations: 0.5944 MB / 0.8378 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3986/2.097, allocations: 11.33 MB / 0.8489 GB, free: 50.13 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08457/2.182, allocations: 43.6 MB / 0.8915 GB, free: 41.36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02027/2.202, allocations: 25.08 MB / 0.916 GB, free: 19.92 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004947/2.207, allocations: 2.885 MB / 0.9188 GB, free: 18.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004223/2.208, allocations: 244.6 kB / 0.919 GB, free: 18.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003782/2.212, allocations: 2.501 MB / 0.9214 GB, free: 17.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 6.973e-06/2.212, allocations: 2.062 kB / 0.9214 GB, free: 17.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.02301/2.235, allocations: 13.75 MB / 0.9349 GB, free: 10.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/2.235, allocations: 356 kB / 0.9352 GB, free: 10.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005372/2.24, allocations: 3.091 MB / 0.9382 GB, free: 8.898 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008678/2.241, allocations: 95.83 kB / 0.9383 GB, free: 8.816 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002246/2.243, allocations: 3.375 MB / 0.9416 GB, free: 6.266 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002195/2.245, allocations: 1.351 MB / 0.9429 GB, free: 5.227 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003246/2.246, allocations: 111 kB / 0.943 GB, free: 5.141 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003548/2.246, allocations: 0.5226 MB / 0.9436 GB, free: 4.738 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003636/2.25, allocations: 2.454 MB / 0.946 GB, free: 3.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005005/2.255, allocations: 4.389 MB / 0.9502 GB, free: 392 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005654/2.261, allocations: 3.483 MB / 0.9536 GB, free: 15.05 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.546e-05/2.261, allocations: 22.86 kB / 0.9537 GB, free: 15.04 MB / 474.7 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01773/2.278, allocations: 8.069 MB / 0.9615 GB, free: 12.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001676/2.279, allocations: 55.77 kB / 0.9616 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/2.279, allocations: 61.34 kB / 0.9617 GB, free: 12.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003114/2.282, allocations: 1.011 MB / 0.9626 GB, free: 12.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006117/2.288, allocations: 1.262 MB / 0.9639 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01326/2.301, allocations: 8.228 MB / 0.9719 GB, free: 7.484 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006105/2.308, allocations: 391.8 kB / 0.9723 GB, free: 7.371 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00156/2.309, allocations: 265.9 kB / 0.9725 GB, free: 7.27 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002558/2.312, allocations: 474.2 kB / 0.973 GB, free: 6.879 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001747/2.313, allocations: 394.7 kB / 0.9734 GB, free: 6.492 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/2.328, allocations: 6.036 MB / 0.9793 GB, free: 1.441 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.394e-05/2.328, allocations: 50.75 kB / 0.9793 GB, free: 1.398 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.785e-05/2.328, allocations: 8 kB / 0.9793 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.786e-05/2.328, allocations: 21.09 kB / 0.9793 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03302/2.361, allocations: 15.08 MB / 0.9941 GB, free: 5.438 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/2.362, allocations: 4 kB / 0.9941 GB, free: 5.434 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002977/2.365, allocations: 0.6793 MB / 0.9947 GB, free: 4.891 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002632/2.367, allocations: 0.8761 MB / 0.9956 GB, free: 4.219 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006256/2.368, allocations: 90.42 kB / 0.9957 GB, free: 4.137 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/2.379, allocations: 7.129 MB / 1.003 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/2.379, allocations: 8.031 kB / 1.003 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01638/2.396, allocations: 9.065 MB / 1.011 GB, free: 5.426 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003269/2.399, allocations: 0.9415 MB / 1.012 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001144/2.4, allocations: 76 kB / 1.012 GB, free: 4.496 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/2.403, allocations: 216.6 kB / 1.013 GB, free: 4.344 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007046/2.404, allocations: 268.6 kB / 1.013 GB, free: 4.176 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/2.404, allocations: 119.2 kB / 1.013 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004993/2.409, allocations: 2.291 MB / 1.015 GB, free: 2.023 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.11e-07/2.409, allocations: 0 / 1.015 GB, free: 2.023 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008911/2.418, allocations: 1.514 MB / 1.017 GB, free: 0.5234 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3819/2.8, allocations: 11.22 MB / 1.028 GB, free: 89.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01105/2.811, allocations: 6.294 MB / 1.034 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/2.811, allocations: 4.641 kB / 1.034 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005265/2.816, allocations: 3.016 MB / 1.037 GB, free: 88.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00416/2.821, allocations: 0.7221 MB / 1.038 GB, free: 88.66 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03512/2.856, allocations: 14.16 MB / 1.051 GB, free: 86.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006982/2.863, allocations: 5.134 MB / 1.056 GB, free: 85.42 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005864/2.869, allocations: 1.666 MB / 1.058 GB, free: 85.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005018/2.874, allocations: 2.745 MB / 1.061 GB, free: 85.34 MB / 0.4948 GB Notification: Performance of SimCode: time 1.253e-06/2.874, allocations: 4 kB / 1.061 GB, free: 85.33 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1736/3.047, allocations: 113 MB / 1.171 GB, free: 26.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/3.048, allocations: 176.5 kB / 1.171 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.385/8.432, allocations: 0 / 1.171 GB, free: 26.7 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)