Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.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_LoadDump,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump",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.007033/0.007033, allocations: 169.8 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03793/0.03793, allocations: 8.797 MB / 24.65 MB, free: 4.113 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.325/1.325, allocations: 223.2 MB / 250.7 MB, free: 6.57 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.0008781/0.0008782, allocations: 94.16 kB / 304 MB, free: 4.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003748, allocations: 8 kB / 367.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3051, allocations: 52.54 MB / 419.7 MB, free: 48.14 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1442/0.4493, allocations: 121.5 MB / 0.5285 GB, free: 15.5 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.4496, allocations: 79.97 kB / 0.5286 GB, free: 15.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4534/0.903, allocations: 104.5 MB / 0.6306 GB, free: 75.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.903, allocations: 4 kB / 0.6306 GB, free: 75.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004612/0.9035, allocations: 99.92 kB / 0.6307 GB, free: 75.54 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1073 * Number of variables: 1073 Notification: Performance of Generate backend data structure: time 0.01522/0.9187, allocations: 4.719 MB / 0.6353 GB, free: 70.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.9188, allocations: 8.562 kB / 0.6353 GB, free: 70.73 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002745/0.9215, allocations: 0.6267 MB / 0.6359 GB, free: 70.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005907/0.9275, allocations: 0.9661 MB / 0.6369 GB, free: 69.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/0.9394, allocations: 3.992 MB / 0.6408 GB, free: 65.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/0.9398, allocations: 478.5 kB / 0.6412 GB, free: 64.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/0.9416, allocations: 419.9 kB / 0.6416 GB, free: 64.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/0.9559, allocations: 5.294 MB / 0.6468 GB, free: 58.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001969/0.9562, allocations: 4 kB / 0.6468 GB, free: 58.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001288/0.9575, allocations: 176 kB / 0.647 GB, free: 58.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001624/0.9576, allocations: 176.2 kB / 0.6472 GB, free: 58.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009681/0.9673, allocations: 4.327 MB / 0.6514 GB, free: 53.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03332/1.001, allocations: 17.89 MB / 0.6688 GB, free: 35.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006584/1.007, allocations: 8.277 MB / 0.6769 GB, free: 26.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009153/1.016, allocations: 4.688 MB / 0.6815 GB, free: 21.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/1.018, allocations: 1.315 MB / 0.6828 GB, free: 20.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=193): time 4.499e-06/1.018, allocations: 4 kB / 0.6828 GB, free: 20.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=226): time 0.01845/1.037, allocations: 9.185 MB / 0.6918 GB, free: 10.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/1.037, allocations: 346.4 kB / 0.6921 GB, free: 10.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004324/1.041, allocations: 2.158 MB / 0.6942 GB, free: 8.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004485/1.042, allocations: 73.7 kB / 0.6943 GB, free: 8.152 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002686/1.045, allocations: 1.906 MB / 0.6961 GB, free: 6.223 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001251/1.046, allocations: 0.7471 MB / 0.6969 GB, free: 5.465 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/1.046, allocations: 56 kB / 0.6969 GB, free: 5.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000236/1.047, allocations: 407.4 kB / 0.6973 GB, free: 5.008 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/1.049, allocations: 1.149 MB / 0.6984 GB, free: 3.855 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002491/1.051, allocations: 1.893 MB / 0.7003 GB, free: 1.652 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/1.054, allocations: 1.427 MB / 0.7017 GB, free: 236 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/1.054, allocations: 4 kB / 0.7017 GB, free: 232 kB / 426.7 MB Notification: Performance of matching and sorting (n=337) (initialization): time 0.008825/1.063, allocations: 4.262 MB / 0.7058 GB, free: 11.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004098/1.067, allocations: 8.021 MB / 0.7137 GB, free: 3.145 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.823e-05/1.067, allocations: 16 kB / 0.7137 GB, free: 3.129 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003199/1.07, allocations: 1.068 MB / 0.7147 GB, free: 2.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/1.072, allocations: 487.2 kB / 0.7152 GB, free: 1.562 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/1.09, allocations: 15.03 MB / 0.7299 GB, free: 1.734 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/1.093, allocations: 175.8 kB / 0.73 GB, free: 1.562 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005637/1.094, allocations: 104 kB / 0.7301 GB, free: 1.461 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/1.094, allocations: 8 kB / 0.7301 GB, free: 1.453 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.3058/1.4, allocations: 3.954 MB / 0.734 GB, free: 97.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.286e-05/1.4, allocations: 21.44 kB / 0.734 GB, free: 97.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002404/1.402, allocations: 1.064 MB / 0.7351 GB, free: 97.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/1.404, allocations: 482.4 kB / 0.7355 GB, free: 97.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01483/1.419, allocations: 15.01 MB / 0.7502 GB, free: 89.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/1.422, allocations: 162.4 kB / 0.7503 GB, free: 89.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003383/1.423, allocations: 107.7 kB / 0.7504 GB, free: 89.76 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition1,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.loadControl.pulseStart,loadControl.pulseStart,$PRE.switch.closerWithArc[1].off,switch.closerWithArc[1].off,$PRE.switch.closerWithArc[1].quenched,switch.closerWithArc[1].quenched,$PRE.switch.closerWithArc[1].tSwitch,switch.closerWithArc[1].tSwitch,$PRE.switch.closerWithArc[2].off,switch.closerWithArc[2].off,$PRE.switch.closerWithArc[2].quenched,switch.closerWithArc[2].quenched,$PRE.switch.closerWithArc[2].tSwitch,switch.closerWithArc[2].tSwitch,$PRE.switch.closerWithArc[3].off,switch.closerWithArc[3].off,$PRE.switch.closerWithArc[3].quenched,switch.closerWithArc[3].quenched,$PRE.switch.closerWithArc[3].tSwitch,switch.closerWithArc[3].tSwitch,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 267 * 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: 6 * 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: 3 {(2,100.0%) 22,(3,100.0%) 26,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.003304/1.426, allocations: 1.353 MB / 0.7518 GB, free: 89.56 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000852/1.427, allocations: 283.9 kB / 0.752 GB, free: 89.56 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007496/1.434, allocations: 3.554 MB / 0.7555 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.997e-05/1.434, allocations: 21.34 kB / 0.7555 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.434, allocations: 0 / 0.7555 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.249e-05/1.434, allocations: 12.39 kB / 0.7555 GB, free: 89.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/1.448, allocations: 7.511 MB / 0.7629 GB, free: 88.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/1.448, allocations: 2.625 kB / 0.7629 GB, free: 88.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/1.45, allocations: 304.3 kB / 0.7632 GB, free: 88.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003452/1.453, allocations: 1.125 MB / 0.7643 GB, free: 88.83 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/1.454, allocations: 59.66 kB / 0.7643 GB, free: 88.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.47, allocations: 12.61 MB / 0.7766 GB, free: 83.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.47, allocations: 7.062 kB / 0.7766 GB, free: 83.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009337/1.479, allocations: 5.057 MB / 0.7816 GB, free: 81.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002378/1.482, allocations: 0.616 MB / 0.7822 GB, free: 80.72 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/1.483, allocations: 62.83 kB / 0.7822 GB, free: 80.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/1.485, allocations: 128.3 kB / 0.7824 GB, free: 80.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007702/1.486, allocations: 251.7 kB / 0.7826 GB, free: 80.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002005/1.486, allocations: 59.23 kB / 0.7827 GB, free: 80.61 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004261/1.491, allocations: 1.652 MB / 0.7843 GB, free: 79.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.491, allocations: 3.188 kB / 0.7843 GB, free: 79.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008446/1.499, allocations: 1.536 MB / 0.7858 GB, free: 79.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,speed.phi,speed.w,voltageController.I.y,loadInductor.inductor[2].i,loadInductor.inductor[3].i) * Number of discrete variables: 14 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,loadControl.pulseStart,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[1].tSwitch,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched,switch.closerWithArc[2].tSwitch,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[3].tSwitch) * Number of discrete states: 6 (switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (160): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {4 60,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009587/1.509, allocations: 6.299 MB / 0.7919 GB, free: 76.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01128/1.52, allocations: 6.835 MB / 0.7986 GB, free: 73.14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/1.52, allocations: 0 / 0.7986 GB, free: 73.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003919/1.524, allocations: 2.296 MB / 0.8008 GB, free: 71.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/1.528, allocations: 0.6123 MB / 0.8014 GB, free: 71.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05418/1.582, allocations: 37.53 MB / 0.8381 GB, free: 38.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004396/1.587, allocations: 2.923 MB / 0.8409 GB, free: 36.74 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003572/1.59, allocations: 0.7033 MB / 0.8416 GB, free: 36.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002415/1.593, allocations: 1.592 MB / 0.8432 GB, free: 34.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/1.593, allocations: 0 / 0.8432 GB, free: 34.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3911/1.984, allocations: 83.12 MB / 0.9244 GB, free: 113.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.984, allocations: 210.3 kB / 0.9246 GB, free: 113.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.553/6.538, allocations: 2.125 kB / 0.9246 GB, free: 113.6 MB / 490.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_LoadDump.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_LoadDump.pipe 2>&1)