Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",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.0009548/0.0009547, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0007951/0.0007948, allocations: 92.98 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.0002821, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2377, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.3608, allocations: 115.8 MB / 491.7 MB, free: 12.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/0.3611, allocations: 95.94 kB / 491.8 MB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3274/0.6885, allocations: 74.99 MB / 0.5535 GB, free: 64.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.6886, allocations: 0 / 0.5535 GB, free: 64.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001823/0.6888, allocations: 91.81 kB / 0.5536 GB, free: 64.03 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.006858/0.6956, allocations: 3.482 MB / 0.557 GB, free: 60.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.6957, allocations: 8.031 kB / 0.557 GB, free: 60.47 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007121/0.6964, allocations: 459.1 kB / 0.5574 GB, free: 60.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002284/0.6987, allocations: 0.5812 MB / 0.558 GB, free: 59.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005952/0.7047, allocations: 3.146 MB / 0.5611 GB, free: 56.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.7048, allocations: 234.3 kB / 0.5613 GB, free: 55.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000367/0.7052, allocations: 315.9 kB / 0.5616 GB, free: 55.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00531/0.7105, allocations: 3.979 MB / 0.5655 GB, free: 51.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.01e-05/0.7106, allocations: 7.938 kB / 0.5655 GB, free: 51.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002544/0.7108, allocations: 132 kB / 0.5656 GB, free: 51.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.7109, allocations: 142.2 kB / 0.5658 GB, free: 51.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004309/0.7153, allocations: 3.179 MB / 0.5689 GB, free: 48.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/0.7305, allocations: 13.44 MB / 0.582 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.7335, allocations: 3.993 MB / 0.5859 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003378/0.7369, allocations: 2.72 MB / 0.5885 GB, free: 26.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.7369, allocations: 43.56 kB / 0.5886 GB, free: 26.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=113): time 2.965e-06/0.737, allocations: 0 / 0.5886 GB, free: 26.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=147): time 0.01106/0.748, allocations: 6.486 MB / 0.5949 GB, free: 20.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.7481, allocations: 68.72 kB / 0.595 GB, free: 20.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/0.7502, allocations: 1.657 MB / 0.5966 GB, free: 18.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.462e-05/0.7503, allocations: 49.7 kB / 0.5967 GB, free: 18.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006758/0.751, allocations: 1.509 MB / 0.5981 GB, free: 16.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.7512, allocations: 0.4968 MB / 0.5986 GB, free: 16.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.377e-05/0.7513, allocations: 39.94 kB / 0.5987 GB, free: 16.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.959e-05/0.7514, allocations: 377.9 kB / 0.599 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009537/0.7524, allocations: 0.7769 MB / 0.5998 GB, free: 15.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.7536, allocations: 1.36 MB / 0.6011 GB, free: 13.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.7548, allocations: 1.018 MB / 0.6021 GB, free: 12.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.7548, allocations: 8 kB / 0.6021 GB, free: 12.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.0033/0.7581, allocations: 2.481 MB / 0.6045 GB, free: 10.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.7582, allocations: 16.12 kB / 0.6045 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.7582, allocations: 20 kB / 0.6046 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003152/0.7585, allocations: 122.5 kB / 0.6047 GB, free: 9.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.7602, allocations: 499.2 kB / 0.6052 GB, free: 9.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008431/0.7611, allocations: 1.307 MB / 0.6064 GB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.7627, allocations: 123.9 kB / 0.6065 GB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.7629, allocations: 87.94 kB / 0.6066 GB, free: 7.766 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (233): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001871/0.7647, allocations: 0.9734 MB / 0.6076 GB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002613/0.765, allocations: 205.5 kB / 0.6078 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.7678, allocations: 2.02 MB / 0.6097 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.7678, allocations: 12 kB / 0.6098 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.7678, allocations: 4 kB / 0.6098 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.7679, allocations: 3.984 kB / 0.6098 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006821/0.7747, allocations: 5.105 MB / 0.6148 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.7747, allocations: 4 kB / 0.6148 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/0.7761, allocations: 323.8 kB / 0.6151 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002844/0.7764, allocations: 102.5 kB / 0.6152 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.16e-05/0.7765, allocations: 31.92 kB / 0.6152 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008828/0.7774, allocations: 1.284 MB / 0.6164 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.7774, allocations: 0 / 0.6164 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004278/0.7817, allocations: 3.298 MB / 0.6197 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.7827, allocations: 470.5 kB / 0.6201 GB, free: 9.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.783, allocations: 28 kB / 0.6201 GB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009511/0.7839, allocations: 91.83 kB / 0.6202 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.7841, allocations: 89.19 kB / 0.6203 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/0.7842, allocations: 36 kB / 0.6204 GB, free: 9.277 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001783/0.786, allocations: 1.274 MB / 0.6216 GB, free: 7.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.786, allocations: 0 / 0.6216 GB, free: 7.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001754/0.7878, allocations: 0.5781 MB / 0.6222 GB, free: 7.402 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005064/0.7928, allocations: 4.697 MB / 0.6267 GB, free: 2.625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003285/0.7961, allocations: 2.235 MB / 0.6289 GB, free: 344 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.7962, allocations: 0 / 0.6289 GB, free: 344 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.7977, allocations: 1.206 MB / 0.6301 GB, free: 15.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.8, allocations: 486.5 kB / 0.6306 GB, free: 14.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2037/1.004, allocations: 29.07 MB / 0.659 GB, free: 85.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00181/1.005, allocations: 2.324 MB / 0.6612 GB, free: 84.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001744/1.007, allocations: 0.5187 MB / 0.6617 GB, free: 84.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/1.008, allocations: 1.168 MB / 0.6629 GB, free: 84.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/1.008, allocations: 0 / 0.6629 GB, free: 84.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07025/1.079, allocations: 51.16 MB / 0.7128 GB, free: 64.78 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001506/1.079, allocations: 229.5 kB / 0.7131 GB, free: 64.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.089/4.168, allocations: 0 / 0.7131 GB, free: 64.54 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat