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.0009552/0.0009552, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.369/1.369, allocations: 205.2 MB / 219.8 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.0009093/0.0009093, allocations: 78.72 kB / 267.9 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.438e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0806/0.08064, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.3968, allocations: 115.7 MB / 485.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000202/0.3971, allocations: 85.7 kB / 485.9 MB, free: 10.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3636/0.7607, allocations: 74.99 MB / 0.5477 GB, free: 92.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.7607, allocations: 0 / 0.5477 GB, free: 92.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000228/0.761, allocations: 90.66 kB / 0.5478 GB, free: 92.32 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.007936/0.7689, allocations: 3.139 MB / 0.5509 GB, free: 91.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.769, allocations: 9.594 kB / 0.5509 GB, free: 91.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007934/0.7698, allocations: 444.6 kB / 0.5513 GB, free: 90.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002878/0.7727, allocations: 0.5925 MB / 0.5519 GB, free: 90.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007322/0.78, allocations: 3.105 MB / 0.5549 GB, free: 90.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001348/0.7802, allocations: 239.1 kB / 0.5552 GB, free: 90.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003947/0.7806, allocations: 315.1 kB / 0.5555 GB, free: 90.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005609/0.7862, allocations: 3.925 MB / 0.5593 GB, free: 89.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-05/0.7863, allocations: 9.562 kB / 0.5593 GB, free: 89.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002656/0.7865, allocations: 135.7 kB / 0.5594 GB, free: 89.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.7866, allocations: 141.6 kB / 0.5596 GB, free: 89.78 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004379/0.791, allocations: 3.097 MB / 0.5626 GB, free: 89.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.8074, allocations: 13.43 MB / 0.5757 GB, free: 83.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.8104, allocations: 3.916 MB / 0.5795 GB, free: 79.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.8117, allocations: 0.9803 MB / 0.5805 GB, free: 79.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003853/0.8156, allocations: 2.665 MB / 0.5831 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.8156, allocations: 43.41 kB / 0.5831 GB, free: 77.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=107): time 2.595e-06/0.8156, allocations: 1.781 kB / 0.5831 GB, free: 77.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.008669/0.8243, allocations: 5.179 MB / 0.5882 GB, free: 75.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/0.8243, allocations: 64.31 kB / 0.5883 GB, free: 75.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.8265, allocations: 1.639 MB / 0.5899 GB, free: 74.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.781e-05/0.8266, allocations: 57.2 kB / 0.5899 GB, free: 74.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006867/0.8273, allocations: 1.51 MB / 0.5914 GB, free: 73.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002547/0.8276, allocations: 488.2 kB / 0.5919 GB, free: 73.13 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.8277, allocations: 35.59 kB / 0.5919 GB, free: 73.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.484e-05/0.8278, allocations: 378.5 kB / 0.5923 GB, free: 72.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008671/0.8286, allocations: 0.7351 MB / 0.593 GB, free: 72.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.8297, allocations: 1.321 MB / 0.5943 GB, free: 71.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.8308, allocations: 0.9824 MB / 0.5952 GB, free: 71.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.8309, allocations: 7.031 kB / 0.5952 GB, free: 71.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003061/0.8339, allocations: 2.395 MB / 0.5976 GB, free: 70.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.834, allocations: 16.44 kB / 0.5976 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.834, allocations: 17.31 kB / 0.5976 GB, free: 70.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003086/0.8343, allocations: 130.7 kB / 0.5977 GB, free: 69.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.8359, allocations: 481.8 kB / 0.5982 GB, free: 69.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.8366, allocations: 1.313 MB / 0.5995 GB, free: 68.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.8381, allocations: 121.4 kB / 0.5996 GB, free: 68.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.8382, allocations: 79.95 kB / 0.5997 GB, free: 68.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (229): * Single equations (assignments): 226 * 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.0002358/0.8384, allocations: 211.3 kB / 0.5999 GB, free: 68.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.8387, allocations: 203.9 kB / 0.6001 GB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0027/0.8414, allocations: 1.926 MB / 0.6019 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.8414, allocations: 14.88 kB / 0.6019 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.8414, allocations: 0 / 0.6019 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.8414, allocations: 7.312 kB / 0.602 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006303/0.8478, allocations: 4.938 MB / 0.6068 GB, free: 65.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.8478, allocations: 4.25 kB / 0.6068 GB, free: 65.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001207/0.849, allocations: 316 kB / 0.6071 GB, free: 65.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.8492, allocations: 92.88 kB / 0.6072 GB, free: 65.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.691e-05/0.8494, allocations: 38.8 kB / 0.6072 GB, free: 65.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005419/0.8499, allocations: 1.276 MB / 0.6085 GB, free: 63.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.8499, allocations: 7.594 kB / 0.6085 GB, free: 63.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003279/0.8532, allocations: 3.141 MB / 0.6115 GB, free: 61.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007604/0.854, allocations: 461.9 kB / 0.612 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002109/0.8542, allocations: 27.94 kB / 0.612 GB, free: 60.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008731/0.8551, allocations: 82.64 kB / 0.6121 GB, free: 60.83 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.8552, allocations: 98.03 kB / 0.6122 GB, free: 60.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-05/0.8553, allocations: 36 kB / 0.6122 GB, free: 60.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0015/0.8568, allocations: 1.246 MB / 0.6134 GB, free: 59.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8568, allocations: 0 / 0.6134 GB, free: 59.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001571/0.8584, allocations: 0.5736 MB / 0.614 GB, free: 59 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 137 * 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.003784/0.8622, allocations: 4.604 MB / 0.6185 GB, free: 54.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.8646, allocations: 2.14 MB / 0.6206 GB, free: 52.59 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.8647, allocations: 0 / 0.6206 GB, free: 52.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.8658, allocations: 1.149 MB / 0.6217 GB, free: 51.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.8677, allocations: 488.8 kB / 0.6222 GB, free: 51.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007785/0.8755, allocations: 5.198 MB / 0.6272 GB, free: 46.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001394/0.8769, allocations: 2.32 MB / 0.6295 GB, free: 44.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00151/0.8784, allocations: 0.5084 MB / 0.63 GB, free: 44.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001157/0.8796, allocations: 1.17 MB / 0.6311 GB, free: 43.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8796, allocations: 0 / 0.6311 GB, free: 43.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06823/0.9478, allocations: 51.58 MB / 0.6815 GB, free: 11.34 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.948, allocations: 198.3 kB / 0.6817 GB, free: 11.11 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.126/4.074, allocations: 64 / 0.6817 GB, free: 11.11 MB / 426.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