Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001065/0.001064, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009767/0.0009767, allocations: 101.4 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003974, allocations: 7.984 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.2993, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3458/0.6452, allocations: 122.5 MB / 0.5118 GB, free: 50.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/0.6455, allocations: 100.5 kB / 0.5119 GB, free: 50.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2207/0.8663, allocations: 102.6 MB / 0.6121 GB, free: 6.586 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.8663, allocations: 0 / 0.6121 GB, free: 6.586 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009039/0.8673, allocations: 99.94 kB / 0.6122 GB, free: 6.488 MB / 394.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.01789/0.8852, allocations: 4.723 MB / 0.6168 GB, free: 1.676 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.8852, allocations: 8.031 kB / 0.6168 GB, free: 1.668 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002244/0.8875, allocations: 0.6268 MB / 0.6174 GB, free: 1.027 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005184/0.8927, allocations: 0.9623 MB / 0.6183 GB, free: 60 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.9028, allocations: 3.992 MB / 0.6222 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000443/0.9033, allocations: 478.5 kB / 0.6227 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/0.9046, allocations: 411.9 kB / 0.6231 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009513/0.9141, allocations: 5.298 MB / 0.6283 GB, free: 5.586 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.118e-05/0.9142, allocations: 8 kB / 0.6283 GB, free: 5.578 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004036/0.9146, allocations: 180 kB / 0.6284 GB, free: 5.402 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/0.9148, allocations: 168.2 kB / 0.6286 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00794/0.9227, allocations: 4.335 MB / 0.6328 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03187/0.9546, allocations: 17.91 MB / 0.6503 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007498/0.9622, allocations: 8.267 MB / 0.6584 GB, free: 5.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009739/0.9719, allocations: 4.677 MB / 0.663 GB, free: 448 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2302/1.202, allocations: 1.315 MB / 0.6642 GB, free: 76.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=192): time 3.827e-06/1.202, allocations: 0 / 0.6642 GB, free: 76.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=225): time 0.01937/1.222, allocations: 9.526 MB / 0.6735 GB, free: 75.52 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/1.222, allocations: 345.5 kB / 0.6739 GB, free: 75.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/1.226, allocations: 2.154 MB / 0.676 GB, free: 74.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003234/1.226, allocations: 72.05 kB / 0.6761 GB, free: 74.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00177/1.228, allocations: 1.916 MB / 0.6779 GB, free: 74.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006752/1.228, allocations: 0.7521 MB / 0.6787 GB, free: 73.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/1.229, allocations: 56.19 kB / 0.6787 GB, free: 73.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/1.229, allocations: 406.7 kB / 0.6791 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/1.231, allocations: 1.14 MB / 0.6802 GB, free: 73.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002232/1.233, allocations: 1.893 MB / 0.6821 GB, free: 72.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/1.235, allocations: 1.428 MB / 0.6835 GB, free: 72.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.889e-06/1.235, allocations: 3.812 kB / 0.6835 GB, free: 72.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=336) (initialization): time 0.006612/1.241, allocations: 4.245 MB / 0.6876 GB, free: 72.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001539/1.243, allocations: 8.014 MB / 0.6954 GB, free: 63.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/1.243, allocations: 18.41 kB / 0.6954 GB, free: 63.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002348/1.245, allocations: 1.061 MB / 0.6965 GB, free: 63.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/1.247, allocations: 482.2 kB / 0.6969 GB, free: 63.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01321/1.26, allocations: 15.06 MB / 0.7117 GB, free: 55.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003395/1.264, allocations: 173.1 kB / 0.7118 GB, free: 55.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003209/1.264, allocations: 111.8 kB / 0.7119 GB, free: 55.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/1.264, allocations: 6.75 kB / 0.7119 GB, free: 55.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005876/1.27, allocations: 3.955 MB / 0.7158 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.037e-05/1.27, allocations: 20.81 kB / 0.7158 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002275/1.272, allocations: 1.047 MB / 0.7168 GB, free: 55.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/1.274, allocations: 483.5 kB / 0.7173 GB, free: 55.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01288/1.287, allocations: 15.03 MB / 0.732 GB, free: 46.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00307/1.29, allocations: 171.1 kB / 0.7321 GB, free: 46.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003507/1.291, allocations: 106.3 kB / 0.7322 GB, free: 46.16 MB / 442.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 (273): * Single equations (assignments): 266 * 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.002909/1.294, allocations: 1.353 MB / 0.7336 GB, free: 45.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007011/1.294, allocations: 281.3 kB / 0.7338 GB, free: 45.29 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006005/1.3, allocations: 3.551 MB / 0.7373 GB, free: 43.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/1.3, allocations: 22.78 kB / 0.7373 GB, free: 43.89 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/1.3, allocations: 3.375 kB / 0.7373 GB, free: 43.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/1.3, allocations: 9.797 kB / 0.7373 GB, free: 43.89 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/1.313, allocations: 7.503 MB / 0.7447 GB, free: 40.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/1.313, allocations: 3.562 kB / 0.7447 GB, free: 40.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.314, allocations: 301.2 kB / 0.745 GB, free: 40.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002425/1.316, allocations: 1.1 MB / 0.746 GB, free: 40.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/1.317, allocations: 61.94 kB / 0.7461 GB, free: 40.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/1.329, allocations: 12.64 MB / 0.7584 GB, free: 31.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.329, allocations: 3.781 kB / 0.7584 GB, free: 31.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007133/1.336, allocations: 5.059 MB / 0.7634 GB, free: 29.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/1.337, allocations: 0.6144 MB / 0.764 GB, free: 29.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007621/1.338, allocations: 70.16 kB / 0.764 GB, free: 29.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.34, allocations: 126 kB / 0.7642 GB, free: 28.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007148/1.341, allocations: 250.3 kB / 0.7644 GB, free: 28.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001674/1.341, allocations: 69.05 kB / 0.7645 GB, free: 28.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003729/1.345, allocations: 1.644 MB / 0.7661 GB, free: 28.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.345, allocations: 0 / 0.7661 GB, free: 28.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006107/1.351, allocations: 1.55 MB / 0.7676 GB, free: 28.14 MB / 442.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 (159): * Single equations (assignments): 151 * 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 {3 61,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.007053/1.358, allocations: 6.328 MB / 0.7738 GB, free: 24.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00878/1.367, allocations: 6.814 MB / 0.7804 GB, free: 18.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.367, allocations: 8.062 kB / 0.7804 GB, free: 18.42 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002967/1.37, allocations: 2.259 MB / 0.7826 GB, free: 16.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/1.373, allocations: 0.6226 MB / 0.7832 GB, free: 15.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04481/1.417, allocations: 37.53 MB / 0.8199 GB, free: 11.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002769/1.42, allocations: 2.931 MB / 0.8227 GB, free: 9.176 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002888/1.423, allocations: 0.7032 MB / 0.8234 GB, free: 8.699 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00203/1.425, allocations: 1.595 MB / 0.825 GB, free: 7.227 MB / 474.7 MB Notification: Performance of SimCode: time 7.62e-07/1.425, allocations: 0 / 0.825 GB, free: 7.227 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.348/1.773, allocations: 83.97 MB / 0.907 GB, free: 90.89 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/1.773, allocations: 265.6 kB / 0.9072 GB, free: 90.53 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.585/6.358, allocations: 0 / 0.9072 GB, free: 90.53 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_LoadDump.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat