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.001492/0.001492, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 91.5 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.433e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3376, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.5391, allocations: 120.5 MB / 482.9 MB, free: 13.72 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.5394, allocations: 87.94 kB / 483 MB, free: 13.63 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6522/1.192, allocations: 101 MB / 0.5703 GB, free: 72.53 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.936e-06/1.192, allocations: 0 / 0.5703 GB, free: 72.53 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004791/1.192, allocations: 107.8 kB / 0.5704 GB, free: 72.43 MB / 395.1 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.01741/1.21, allocations: 4.196 MB / 0.5745 GB, free: 68.16 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/1.21, allocations: 8.031 kB / 0.5745 GB, free: 68.16 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007991/1.218, allocations: 0.9623 MB / 0.5754 GB, free: 67.19 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01525/1.233, allocations: 3.932 MB / 0.5793 GB, free: 63.25 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004342/1.233, allocations: 346.5 kB / 0.5796 GB, free: 62.87 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/1.235, allocations: 247.9 kB / 0.5798 GB, free: 62.63 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01285/1.248, allocations: 3.929 MB / 0.5837 GB, free: 58.69 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0168/1.265, allocations: 4.614 MB / 0.5882 GB, free: 53.89 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000238/1.265, allocations: 11.84 kB / 0.5882 GB, free: 53.88 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001372/1.267, allocations: 4 kB / 0.5882 GB, free: 53.88 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002125/1.267, allocations: 168.2 kB / 0.5884 GB, free: 53.71 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0452/1.312, allocations: 17.19 MB / 0.6051 GB, free: 36.19 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009888/1.322, allocations: 8.014 MB / 0.613 GB, free: 27.23 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004432/1.326, allocations: 1.742 MB / 0.6147 GB, free: 25.5 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01537/1.342, allocations: 5.27 MB / 0.6198 GB, free: 20.12 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002224/1.344, allocations: 1.132 MB / 0.6209 GB, free: 18.95 MB / 395.1 MB Notification: Performance of pre-optimization done (n=175): time 4.789e-06/1.344, allocations: 0 / 0.6209 GB, free: 18.95 MB / 395.1 MB Notification: Performance of matching and sorting (n=207): time 0.02481/1.369, allocations: 7.105 MB / 0.6279 GB, free: 11.79 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/1.369, allocations: 334.4 kB / 0.6282 GB, free: 11.39 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004015/1.373, allocations: 1.809 MB / 0.6299 GB, free: 9.559 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005106/1.374, allocations: 37.69 kB / 0.63 GB, free: 9.516 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.376, allocations: 1.843 MB / 0.6318 GB, free: 7.652 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009562/1.377, allocations: 0.6656 MB / 0.6324 GB, free: 6.98 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/1.377, allocations: 0 / 0.6324 GB, free: 6.98 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.377, allocations: 415.8 kB / 0.6328 GB, free: 6.566 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/1.379, allocations: 0.9812 MB / 0.6338 GB, free: 5.582 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002896/1.382, allocations: 1.737 MB / 0.6355 GB, free: 3.531 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003903/1.386, allocations: 1.414 MB / 0.6369 GB, free: 2.121 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.213e-05/1.386, allocations: 4 kB / 0.6369 GB, free: 2.117 MB / 395.1 MB Notification: Performance of matching and sorting (n=323) (initialization): time 0.01044/1.397, allocations: 3.581 MB / 0.6404 GB, free: 14.49 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003379/1.4, allocations: 7.941 MB / 0.6481 GB, free: 5.926 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-05/1.4, allocations: 20 kB / 0.6481 GB, free: 5.906 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004468/1.405, allocations: 0.9908 MB / 0.6491 GB, free: 4.895 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/1.409, allocations: 479.2 kB / 0.6496 GB, free: 4.426 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3488/1.758, allocations: 13.64 MB / 0.6629 GB, free: 77.95 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003844/1.762, allocations: 123.8 kB / 0.663 GB, free: 77.95 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006204/1.762, allocations: 105.8 kB / 0.6631 GB, free: 77.95 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/1.762, allocations: 3.406 kB / 0.6631 GB, free: 77.95 MB / 411.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009619/1.772, allocations: 3.437 MB / 0.6665 GB, free: 77.75 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.499e-05/1.772, allocations: 19 kB / 0.6665 GB, free: 77.75 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003596/1.776, allocations: 0.9832 MB / 0.6674 GB, free: 77.68 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003607/1.779, allocations: 467.4 kB / 0.6679 GB, free: 77.68 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/1.8, allocations: 13.67 MB / 0.6812 GB, free: 70.09 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/1.803, allocations: 103.6 kB / 0.6813 GB, free: 70.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005836/1.803, allocations: 111.3 kB / 0.6814 GB, free: 70.09 MB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[3]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[1]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch.v[2]:VARIABLE(unit = "V" ) "Voltage drops of the two polyphase plugs" type: Real [3] 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.0007964/1.804, allocations: 203.6 kB / 0.6816 GB, free: 69.98 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01001/1.814, allocations: 3.009 MB / 0.6846 GB, free: 69.84 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.815, allocations: 256.2 kB / 0.6848 GB, free: 69.84 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/1.826, allocations: 3.142 MB / 0.6879 GB, free: 69.67 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.518e-05/1.826, allocations: 24.03 kB / 0.6879 GB, free: 69.67 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.826, allocations: 3.953 kB / 0.6879 GB, free: 69.66 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.607e-05/1.827, allocations: 7.219 kB / 0.6879 GB, free: 69.66 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01917/1.846, allocations: 6.407 MB / 0.6942 GB, free: 69.16 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/1.846, allocations: 3.938 kB / 0.6942 GB, free: 69.16 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002595/1.848, allocations: 282.9 kB / 0.6944 GB, free: 69.16 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00417/1.853, allocations: 1.015 MB / 0.6954 GB, free: 69.11 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004219/1.853, allocations: 31.89 kB / 0.6955 GB, free: 69.11 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0192/1.872, allocations: 11.23 MB / 0.7064 GB, free: 62.73 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/1.872, allocations: 4.781 kB / 0.7064 GB, free: 62.73 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01207/1.884, allocations: 4.561 MB / 0.7109 GB, free: 60.65 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/1.887, allocations: 0.5624 MB / 0.7114 GB, free: 60.28 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009881/1.888, allocations: 24.56 kB / 0.7115 GB, free: 60.27 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00323/1.891, allocations: 98.91 kB / 0.7116 GB, free: 60.27 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009975/1.892, allocations: 235.1 kB / 0.7118 GB, free: 60.23 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002291/1.892, allocations: 58.89 kB / 0.7118 GB, free: 60.22 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003667/1.896, allocations: 1.341 MB / 0.7131 GB, free: 59.64 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.363e-06/1.896, allocations: 1.406 kB / 0.7131 GB, free: 59.64 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.009278/1.905, allocations: 1.317 MB / 0.7144 GB, free: 59.63 MB / 411.1 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.01333/1.919, allocations: 5.847 MB / 0.7201 GB, free: 56.61 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01444/1.933, allocations: 6.035 MB / 0.726 GB, free: 53.43 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.933, allocations: 3.594 kB / 0.726 GB, free: 53.43 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005126/1.938, allocations: 1.955 MB / 0.7279 GB, free: 52.38 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/1.943, allocations: 485.7 kB / 0.7284 GB, free: 52.26 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02425/1.967, allocations: 7.161 MB / 0.7354 GB, free: 46.81 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00435/1.972, allocations: 2.87 MB / 0.7382 GB, free: 44.61 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003682/1.976, allocations: 1.597 MB / 0.7398 GB, free: 43.14 MB / 411.1 MB Notification: Performance of SimCode: time 1.412e-06/1.976, allocations: 4 kB / 0.7398 GB, free: 43.13 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.727/6.703, allocations: 179.6 MB / 0.9151 GB, free: 60.21 MB / 443.1 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