Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.001385/0.001385, allocations: 174.6 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.05079/0.05079, allocations: 8.704 MB / 21.96 MB, free: 3.734 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.396/1.396, allocations: 221.4 MB / 246 MB, free: 3.555 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.001273/0.001273, allocations: 92.67 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.736e-05/4.744e-05, allocations: 11.97 kB / 359.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3012, allocations: 52.53 MB / 412.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4733/0.7745, allocations: 120.3 MB / 0.52 GB, free: 44.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002095/0.7748, allocations: 79.86 kB / 0.5201 GB, free: 44.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6366/1.411, allocations: 163.1 MB / 0.6794 GB, free: 74.38 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.411, allocations: 1.188 kB / 0.6794 GB, free: 74.38 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003215/1.412, allocations: 103.7 kB / 0.6795 GB, free: 74.37 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01385/1.426, allocations: 3.931 MB / 0.6833 GB, free: 73.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.818e-05/1.426, allocations: 9.656 kB / 0.6833 GB, free: 73.14 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002244/1.428, allocations: 0.5499 MB / 0.6839 GB, free: 73.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005892/1.434, allocations: 0.9226 MB / 0.6848 GB, free: 72.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009606/1.444, allocations: 3.828 MB / 0.6885 GB, free: 72.24 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/1.444, allocations: 302.8 kB / 0.6888 GB, free: 72.23 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007441/1.445, allocations: 398 kB / 0.6892 GB, free: 72.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007739/1.452, allocations: 5.025 MB / 0.6941 GB, free: 71.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.457e-05/1.452, allocations: 3.906 kB / 0.6941 GB, free: 71.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/1.453, allocations: 171.7 kB / 0.6942 GB, free: 71.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/1.453, allocations: 170.1 kB / 0.6944 GB, free: 71.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006056/1.459, allocations: 4.042 MB / 0.6983 GB, free: 71.65 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02326/1.482, allocations: 16.94 MB / 0.7149 GB, free: 67.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00662/1.489, allocations: 8.383 MB / 0.7231 GB, free: 61.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002678/1.492, allocations: 1.614 MB / 0.7247 GB, free: 61.47 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007325/1.499, allocations: 4.853 MB / 0.7294 GB, free: 60.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/1.499, allocations: 55.34 kB / 0.7294 GB, free: 60.21 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 3.256e-06/1.499, allocations: 0 / 0.7294 GB, free: 60.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=154): time 0.006747/1.506, allocations: 4.51 MB / 0.7338 GB, free: 58.16 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/1.506, allocations: 71.25 kB / 0.7339 GB, free: 58.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002573/1.508, allocations: 1.975 MB / 0.7358 GB, free: 57.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.543e-05/1.509, allocations: 52.8 kB / 0.7359 GB, free: 57.24 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008227/1.509, allocations: 1.845 MB / 0.7377 GB, free: 55.83 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002794/1.51, allocations: 0.5289 MB / 0.7382 GB, free: 55.43 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.928e-05/1.51, allocations: 39.12 kB / 0.7383 GB, free: 55.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/1.51, allocations: 393 kB / 0.7386 GB, free: 55.05 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009813/1.511, allocations: 0.7503 MB / 0.7394 GB, free: 54.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/1.512, allocations: 1.428 MB / 0.7408 GB, free: 53.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/1.513, allocations: 1.031 MB / 0.7418 GB, free: 53.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/1.513, allocations: 7.688 kB / 0.7418 GB, free: 53.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.003422/1.517, allocations: 2.669 MB / 0.7444 GB, free: 52.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/1.517, allocations: 13.5 kB / 0.7444 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/1.517, allocations: 22.78 kB / 0.7444 GB, free: 52.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/1.517, allocations: 122.2 kB / 0.7445 GB, free: 52.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/1.519, allocations: 0.5301 MB / 0.745 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/1.52, allocations: 1.838 MB / 0.7468 GB, free: 50.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/1.522, allocations: 120.7 kB / 0.747 GB, free: 50.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/1.522, allocations: 96.28 kB / 0.747 GB, free: 50.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 257 * 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: 1 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000282/1.522, allocations: 229.7 kB / 0.7473 GB, free: 50.32 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/1.522, allocations: 241.1 kB / 0.7475 GB, free: 50.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003776/1.526, allocations: 2.281 MB / 0.7497 GB, free: 49.13 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/1.526, allocations: 14.16 kB / 0.7497 GB, free: 49.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/1.526, allocations: 3.625 kB / 0.7497 GB, free: 49.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/1.526, allocations: 6.844 kB / 0.7497 GB, free: 49.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008913/1.535, allocations: 5.556 MB / 0.7552 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.714e-06/1.535, allocations: 2.719 kB / 0.7552 GB, free: 46.62 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/1.537, allocations: 290.8 kB / 0.7554 GB, free: 46.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007871/1.537, allocations: 302 kB / 0.7557 GB, free: 46.51 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/1.537, allocations: 38.31 kB / 0.7558 GB, free: 46.48 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004849/1.542, allocations: 6.34 MB / 0.762 GB, free: 41.21 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.542, allocations: 3.047 kB / 0.762 GB, free: 41.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004856/1.547, allocations: 3.389 MB / 0.7653 GB, free: 39.46 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/1.549, allocations: 0.4915 MB / 0.7658 GB, free: 39.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005654/1.549, allocations: 34.72 kB / 0.7658 GB, free: 39.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.55, allocations: 91.61 kB / 0.7659 GB, free: 39.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/1.551, allocations: 117.6 kB / 0.766 GB, free: 39.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/1.551, allocations: 42.08 kB / 0.766 GB, free: 39.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002206/1.553, allocations: 1.496 MB / 0.7675 GB, free: 38.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.553, allocations: 0 / 0.7675 GB, free: 38.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002631/1.556, allocations: 0.7156 MB / 0.7682 GB, free: 38.34 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004706/1.56, allocations: 4.655 MB / 0.7727 GB, free: 35.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002767/1.563, allocations: 2.08 MB / 0.7748 GB, free: 34.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.563, allocations: 3.688 kB / 0.7748 GB, free: 34.78 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/1.565, allocations: 1.337 MB / 0.7761 GB, free: 34.06 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/1.567, allocations: 0.5636 MB / 0.7766 GB, free: 33.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01383/1.581, allocations: 6.524 MB / 0.783 GB, free: 31.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002192/1.583, allocations: 2.73 MB / 0.7857 GB, free: 30.09 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002051/1.586, allocations: 0.5482 MB / 0.7862 GB, free: 29.72 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.587, allocations: 1.467 MB / 0.7876 GB, free: 28.36 MB / 458.7 MB Notification: Performance of SimCode: time 1.944e-06/1.587, allocations: 0 / 0.7876 GB, free: 28.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0925/1.68, allocations: 60.79 MB / 0.847 GB, free: 1.695 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/1.68, allocations: 168.1 kB / 0.8472 GB, free: 1.469 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.878/5.558, allocations: 0 / 0.8472 GB, free: 1.469 MB / 474.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)