Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002253/0.002253, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001122, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.58e-05/3.589e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.09867, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5172/0.6159, allocations: 121.1 MB / 490.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.6163, allocations: 89 kB / 490.4 MB, free: 4.812 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6871/1.303, allocations: 102.2 MB / 0.5787 GB, free: 91.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.303, allocations: 4 kB / 0.5787 GB, free: 91.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004739/1.304, allocations: 115.4 kB / 0.5789 GB, free: 91.93 MB / 410.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.01748/1.321, allocations: 4.184 MB / 0.5829 GB, free: 89.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/1.321, allocations: 16.66 kB / 0.583 GB, free: 89.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00279/1.324, allocations: 0.6195 MB / 0.5836 GB, free: 89.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008145/1.332, allocations: 0.9555 MB / 0.5845 GB, free: 89.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/1.348, allocations: 3.961 MB / 0.5884 GB, free: 87.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005945/1.349, allocations: 478.4 kB / 0.5888 GB, free: 86.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001886/1.351, allocations: 418.6 kB / 0.5892 GB, free: 86.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/1.369, allocations: 5.21 MB / 0.5943 GB, free: 84.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002209/1.369, allocations: 7.844 kB / 0.5943 GB, free: 84.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00142/1.371, allocations: 175.9 kB / 0.5945 GB, free: 84.19 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002181/1.371, allocations: 167.1 kB / 0.5946 GB, free: 84.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/1.385, allocations: 4.178 MB / 0.5987 GB, free: 82.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/1.434, allocations: 17.99 MB / 0.6163 GB, free: 65.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/1.445, allocations: 8.117 MB / 0.6242 GB, free: 56.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004936/1.45, allocations: 1.815 MB / 0.626 GB, free: 54.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0153/1.465, allocations: 5.414 MB / 0.6313 GB, free: 48.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0025/1.468, allocations: 1.187 MB / 0.6324 GB, free: 47.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=175): time 5.811e-06/1.468, allocations: 0 / 0.6324 GB, free: 47.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=207): time 0.02257/1.491, allocations: 6.915 MB / 0.6392 GB, free: 40.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/1.491, allocations: 342.4 kB / 0.6395 GB, free: 40.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005663/1.496, allocations: 2.151 MB / 0.6416 GB, free: 38.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005106/1.497, allocations: 73.69 kB / 0.6417 GB, free: 38.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002074/1.499, allocations: 1.811 MB / 0.6435 GB, free: 36.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.5, allocations: 0.6947 MB / 0.6441 GB, free: 35.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/1.5, allocations: 48 kB / 0.6442 GB, free: 35.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/1.501, allocations: 411.9 kB / 0.6446 GB, free: 35.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002709/1.503, allocations: 1.032 MB / 0.6456 GB, free: 34.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00351/1.507, allocations: 1.795 MB / 0.6473 GB, free: 31.92 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00346/1.51, allocations: 1.31 MB / 0.6486 GB, free: 30.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.619e-05/1.511, allocations: 11.94 kB / 0.6486 GB, free: 30.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.01041/1.521, allocations: 3.701 MB / 0.6522 GB, free: 26.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0017/1.523, allocations: 7.935 MB / 0.66 GB, free: 18.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.818e-05/1.523, allocations: 20 kB / 0.66 GB, free: 18.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004222/1.527, allocations: 1.013 MB / 0.661 GB, free: 17.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003644/1.531, allocations: 479.2 kB / 0.6615 GB, free: 16.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/1.551, allocations: 14.13 MB / 0.6753 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/1.555, allocations: 167.9 kB / 0.6754 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005961/1.556, allocations: 108 kB / 0.6755 GB, free: 1.582 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.556, allocations: 4 kB / 0.6755 GB, free: 1.578 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01062/1.567, allocations: 3.6 MB / 0.679 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.543e-05/1.567, allocations: 23.94 kB / 0.6791 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004032/1.571, allocations: 0.9862 MB / 0.68 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003742/1.575, allocations: 467.2 kB / 0.6805 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.347/1.922, allocations: 14.15 MB / 0.6943 GB, free: 92.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/1.925, allocations: 155 kB / 0.6944 GB, free: 92.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006399/1.925, allocations: 106.7 kB / 0.6945 GB, free: 92.11 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 91 * 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 (265): * Single equations (assignments): 258 * 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%) 21,(1,100.0%) 8} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008071/1.926, allocations: 284.7 kB / 0.6948 GB, free: 92 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.927, allocations: 283.5 kB / 0.6951 GB, free: 92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.939, allocations: 3.225 MB / 0.6982 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-05/1.939, allocations: 21.42 kB / 0.6983 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/1.939, allocations: 0 / 0.6983 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.685e-05/1.939, allocations: 11.75 kB / 0.6983 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02039/1.959, allocations: 7.01 MB / 0.7051 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.672e-05/1.959, allocations: 4.828 kB / 0.7051 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002725/1.962, allocations: 284.9 kB / 0.7054 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004957/1.967, allocations: 1.029 MB / 0.7064 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005159/1.968, allocations: 57.94 kB / 0.7064 GB, free: 91.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02356/1.991, allocations: 11.6 MB / 0.7178 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/1.991, allocations: 0 / 0.7178 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/2.004, allocations: 4.635 MB / 0.7223 GB, free: 85.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002486/2.007, allocations: 0.5874 MB / 0.7229 GB, free: 85.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001214/2.008, allocations: 59.95 kB / 0.7229 GB, free: 85.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003625/2.012, allocations: 127.7 kB / 0.7231 GB, free: 85.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001145/2.013, allocations: 233.7 kB / 0.7233 GB, free: 85.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/2.013, allocations: 64.16 kB / 0.7233 GB, free: 85.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00463/2.018, allocations: 1.632 MB / 0.7249 GB, free: 85 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.018, allocations: 5.766 kB / 0.7249 GB, free: 85 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009538/2.028, allocations: 1.512 MB / 0.7264 GB, free: 84.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (147): * Single equations (assignments): 139 * 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 55,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01502/2.043, allocations: 6.003 MB / 0.7323 GB, free: 81.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01627/2.059, allocations: 6.331 MB / 0.7385 GB, free: 78.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/2.059, allocations: 3.188 kB / 0.7385 GB, free: 78.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005684/2.065, allocations: 2.04 MB / 0.7405 GB, free: 77.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005545/2.07, allocations: 0.6216 MB / 0.7411 GB, free: 77.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02659/2.097, allocations: 7.401 MB / 0.7483 GB, free: 74.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004821/2.102, allocations: 2.863 MB / 0.7511 GB, free: 73.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004125/2.106, allocations: 1.613 MB / 0.7527 GB, free: 71.91 MB / 426.7 MB Notification: Performance of SimCode: time 3.406e-06/2.106, allocations: 3.391 kB / 0.7527 GB, free: 71.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.983/7.089, allocations: 182.5 MB / 0.9309 GB, free: 72.58 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_LoadDump.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_LoadDump_res.mat does not exist to compare? outputFormat=mat