Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 90.98 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.217e-05/4.239e-05, allocations: 4 kB / 350.7 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1201, allocations: 51.5 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5355, allocations: 123.5 MB / 0.5133 GB, free: 14.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.5359, allocations: 91.58 kB / 0.5134 GB, free: 14.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5148/1.051, allocations: 106 MB / 0.6169 GB, free: 79.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.051, allocations: 4.047 kB / 0.6169 GB, free: 79.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006217/1.051, allocations: 105.6 kB / 0.617 GB, free: 79.41 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1076 * Number of variables: 1076 Notification: Performance of Generate backend data structure: time 0.01411/1.066, allocations: 4.224 MB / 0.6211 GB, free: 77.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/1.066, allocations: 13.41 kB / 0.6212 GB, free: 77.71 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002197/1.068, allocations: 0.6187 MB / 0.6218 GB, free: 77.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006086/1.074, allocations: 0.9661 MB / 0.6227 GB, free: 77.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/1.087, allocations: 3.975 MB / 0.6266 GB, free: 76.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005446/1.087, allocations: 484.2 kB / 0.6271 GB, free: 76.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/1.089, allocations: 413.4 kB / 0.6274 GB, free: 76.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01442/1.103, allocations: 5.213 MB / 0.6325 GB, free: 74.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/1.103, allocations: 7.844 kB / 0.6325 GB, free: 74.56 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001093/1.105, allocations: 182.5 kB / 0.6327 GB, free: 74.43 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/1.105, allocations: 167 kB / 0.6329 GB, free: 74.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00872/1.113, allocations: 4.184 MB / 0.637 GB, free: 72.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03078/1.144, allocations: 18.06 MB / 0.6546 GB, free: 62.72 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005682/1.15, allocations: 8.38 MB / 0.6628 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003302/1.153, allocations: 2.161 MB / 0.6649 GB, free: 54.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009251/1.163, allocations: 6.244 MB / 0.671 GB, free: 50.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00146/1.164, allocations: 1.204 MB / 0.6722 GB, free: 50.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=176): time 3.666e-06/1.164, allocations: 0 / 0.6722 GB, free: 50.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=208): time 0.01296/1.177, allocations: 6.979 MB / 0.679 GB, free: 47.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.177, allocations: 343.4 kB / 0.6793 GB, free: 46.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/1.181, allocations: 2.158 MB / 0.6814 GB, free: 46.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002743/1.181, allocations: 66.95 kB / 0.6815 GB, free: 45.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001504/1.182, allocations: 1.957 MB / 0.6834 GB, free: 44.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005457/1.183, allocations: 0.6871 MB / 0.6841 GB, free: 43.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/1.183, allocations: 49.84 kB / 0.6841 GB, free: 43.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/1.183, allocations: 407.5 kB / 0.6845 GB, free: 43.56 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/1.185, allocations: 1.046 MB / 0.6855 GB, free: 43.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001678/1.186, allocations: 1.807 MB / 0.6873 GB, free: 41.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001598/1.188, allocations: 1.338 MB / 0.6886 GB, free: 41.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/1.188, allocations: 3.969 kB / 0.6886 GB, free: 41.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.005483/1.194, allocations: 3.898 MB / 0.6924 GB, free: 39.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001386/1.195, allocations: 8.403 MB / 0.7006 GB, free: 30.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/1.195, allocations: 18.94 kB / 0.7006 GB, free: 30.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002288/1.197, allocations: 0.9989 MB / 0.7016 GB, free: 30.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/1.199, allocations: 476.4 kB / 0.7021 GB, free: 29.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/1.211, allocations: 15.11 MB / 0.7168 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/1.214, allocations: 172.2 kB / 0.717 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/1.214, allocations: 103.3 kB / 0.7171 GB, free: 14.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/1.214, allocations: 8 kB / 0.7171 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004806/1.219, allocations: 3.629 MB / 0.7206 GB, free: 11.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.52e-05/1.219, allocations: 23.89 kB / 0.7207 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/1.221, allocations: 0.9921 MB / 0.7216 GB, free: 10.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/1.222, allocations: 478.1 kB / 0.7221 GB, free: 10.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/1.235, allocations: 15.09 MB / 0.7368 GB, free: 10.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00309/1.238, allocations: 163.9 kB / 0.737 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004324/1.239, allocations: 108 kB / 0.7371 GB, free: 10.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 261 * 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: 7 * 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: 4 {(2,100.0%) 22,(1,100.0%) 12,(2,100.0%) 6,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008013/1.24, allocations: 275.4 kB / 0.7373 GB, free: 9.883 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000847/1.24, allocations: 284.6 kB / 0.7376 GB, free: 9.602 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007165/1.248, allocations: 3.263 MB / 0.7408 GB, free: 6.312 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/1.248, allocations: 20 kB / 0.7408 GB, free: 6.293 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/1.248, allocations: 4 kB / 0.7408 GB, free: 6.289 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.348e-05/1.248, allocations: 7.969 kB / 0.7408 GB, free: 6.281 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3208/1.569, allocations: 7.081 MB / 0.7477 GB, free: 83.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-05/1.569, allocations: 6.172 kB / 0.7477 GB, free: 83.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/1.57, allocations: 279.9 kB / 0.748 GB, free: 83.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002689/1.573, allocations: 1.044 MB / 0.749 GB, free: 83.94 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003556/1.573, allocations: 51.88 kB / 0.7491 GB, free: 83.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.586, allocations: 11.73 MB / 0.7605 GB, free: 78.84 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.586, allocations: 6.625 kB / 0.7605 GB, free: 78.84 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007108/1.593, allocations: 4.662 MB / 0.7651 GB, free: 78.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001637/1.595, allocations: 0.5969 MB / 0.7657 GB, free: 78.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006534/1.596, allocations: 63.16 kB / 0.7657 GB, free: 78.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/1.597, allocations: 124.2 kB / 0.7659 GB, free: 78.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005156/1.598, allocations: 241.5 kB / 0.7661 GB, free: 78.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/1.598, allocations: 54.84 kB / 0.7661 GB, free: 78.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002739/1.601, allocations: 1.641 MB / 0.7677 GB, free: 78.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.601, allocations: 0 / 0.7677 GB, free: 78.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006481/1.607, allocations: 1.523 MB / 0.7692 GB, free: 78.15 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.strayReluctance.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[3].off,switch.closerWithArc[3].quenched,switch.closerWithArc[1].off,switch.closerWithArc[1].quenched,switch.closerWithArc[2].off,switch.closerWithArc[2].quenched) * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 142 * 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 {5 51,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008082/1.615, allocations: 5.997 MB / 0.7751 GB, free: 76.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01155/1.627, allocations: 6.641 MB / 0.7816 GB, free: 74.93 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.627, allocations: 1.062 kB / 0.7816 GB, free: 74.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003768/1.631, allocations: 2.152 MB / 0.7837 GB, free: 74.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004389/1.635, allocations: 0.6301 MB / 0.7843 GB, free: 74.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.658, allocations: 7.553 MB / 0.7917 GB, free: 72.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004755/1.662, allocations: 2.928 MB / 0.7945 GB, free: 71.95 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005692/1.668, allocations: 1.055 MB / 0.7956 GB, free: 71.85 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002752/1.671, allocations: 1.554 MB / 0.7971 GB, free: 70.53 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/1.671, allocations: 4 kB / 0.7971 GB, free: 70.53 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1276/1.799, allocations: 86.1 MB / 0.8812 GB, free: 26.72 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/1.799, allocations: 236.2 kB / 0.8814 GB, free: 26.46 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.819/6.618, allocations: 3.438 kB / 0.8814 GB, free: 26.46 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat