Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002268/0.002274, allocations: 178.3 kB / 8.362 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.979/1.979, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001087/0.001086, allocations: 91.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.872e-05/2.876e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3252, allocations: 47.57 MB / 362.4 MB, free: 45.69 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.5108, allocations: 115 MB / 477.5 MB, free: 3.09 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.5112, allocations: 91.8 kB / 477.6 MB, free: 3.004 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5508/1.062, allocations: 74 MB / 0.5386 GB, free: 94.86 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.335e-06/1.062, allocations: 0 / 0.5386 GB, free: 94.86 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003304/1.062, allocations: 78.28 kB / 0.5387 GB, free: 94.85 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01216/1.075, allocations: 3.136 MB / 0.5418 GB, free: 93.26 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/1.075, allocations: 9.344 kB / 0.5418 GB, free: 93.26 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004769/1.079, allocations: 0.5952 MB / 0.5424 GB, free: 93.03 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/1.092, allocations: 3.096 MB / 0.5454 GB, free: 91.54 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/1.092, allocations: 105.6 kB / 0.5455 GB, free: 91.53 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/1.094, allocations: 185.2 kB / 0.5457 GB, free: 91.52 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01003/1.104, allocations: 2.876 MB / 0.5485 GB, free: 90.24 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/1.116, allocations: 3.473 MB / 0.5519 GB, free: 88.18 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/1.116, allocations: 7.375 kB / 0.5519 GB, free: 88.18 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004741/1.116, allocations: 3.812 kB / 0.5519 GB, free: 88.18 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001822/1.117, allocations: 145.1 kB / 0.552 GB, free: 88.15 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0346/1.151, allocations: 12.82 MB / 0.5645 GB, free: 76.22 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005188/1.157, allocations: 3.901 MB / 0.5684 GB, free: 71.82 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/1.159, allocations: 0.9433 MB / 0.5693 GB, free: 70.88 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006436/1.165, allocations: 2.616 MB / 0.5718 GB, free: 68.2 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/1.165, allocations: 43.88 kB / 0.5719 GB, free: 68.15 MB / 395.1 MB Notification: Performance of pre-optimization done (n=111): time 4.178e-06/1.165, allocations: 4 kB / 0.5719 GB, free: 68.14 MB / 395.1 MB Notification: Performance of matching and sorting (n=147): time 0.01647/1.182, allocations: 5.325 MB / 0.5771 GB, free: 62.77 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/1.182, allocations: 64.72 kB / 0.5771 GB, free: 62.7 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00278/1.185, allocations: 1.375 MB / 0.5785 GB, free: 61.32 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003204/1.185, allocations: 25.7 kB / 0.5785 GB, free: 61.29 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009645/1.186, allocations: 1.457 MB / 0.5799 GB, free: 59.82 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006153/1.187, allocations: 488.7 kB / 0.5804 GB, free: 59.33 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/1.187, allocations: 0 / 0.5804 GB, free: 59.33 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/1.187, allocations: 386.8 kB / 0.5808 GB, free: 58.95 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001588/1.189, allocations: 0.7107 MB / 0.5815 GB, free: 58.23 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/1.191, allocations: 1.303 MB / 0.5827 GB, free: 56.67 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002815/1.193, allocations: 1.041 MB / 0.5837 GB, free: 55.63 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.62e-05/1.194, allocations: 12 kB / 0.5838 GB, free: 55.62 MB / 395.1 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.00574/1.199, allocations: 2.198 MB / 0.5859 GB, free: 53.4 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/1.199, allocations: 12 kB / 0.5859 GB, free: 53.39 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.33e-05/1.199, allocations: 20 kB / 0.5859 GB, free: 53.37 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004888/1.2, allocations: 119.1 kB / 0.586 GB, free: 53.25 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003668/1.204, allocations: 0.4913 MB / 0.5865 GB, free: 52.75 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/1.205, allocations: 1.256 MB / 0.5878 GB, free: 51.38 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/1.207, allocations: 79.97 kB / 0.5878 GB, free: 51.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004558/1.208, allocations: 83.98 kB / 0.5879 GB, free: 51.22 MB / 395.1 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 (235): * Single equations (assignments): 232 * 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.0004322/1.208, allocations: 160.3 kB / 0.5881 GB, free: 51.06 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004453/1.213, allocations: 1.751 MB / 0.5898 GB, free: 49.29 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000618/1.214, allocations: 185.7 kB / 0.59 GB, free: 49.11 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005118/1.219, allocations: 1.917 MB / 0.5918 GB, free: 47.17 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/1.219, allocations: 12 kB / 0.5918 GB, free: 47.16 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/1.219, allocations: 0 / 0.5918 GB, free: 47.16 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/1.219, allocations: 11.97 kB / 0.5918 GB, free: 47.14 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.231, allocations: 4.581 MB / 0.5963 GB, free: 42.52 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.231, allocations: 0 / 0.5963 GB, free: 42.52 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002727/1.234, allocations: 323.6 kB / 0.5966 GB, free: 42.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004626/1.234, allocations: 110.6 kB / 0.5967 GB, free: 42.08 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/1.234, allocations: 7.938 kB / 0.5967 GB, free: 42.07 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008323/1.235, allocations: 1.225 MB / 0.5979 GB, free: 40.73 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.235, allocations: 7.875 kB / 0.5979 GB, free: 40.72 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006672/1.242, allocations: 3.183 MB / 0.6011 GB, free: 37.45 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/1.243, allocations: 454.6 kB / 0.6015 GB, free: 36.98 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000349/1.244, allocations: 4 kB / 0.6015 GB, free: 36.98 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/1.245, allocations: 63.89 kB / 0.6016 GB, free: 36.91 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/1.246, allocations: 97.19 kB / 0.6016 GB, free: 36.82 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/1.246, allocations: 39.98 kB / 0.6017 GB, free: 36.78 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002109/1.248, allocations: 1.011 MB / 0.6027 GB, free: 35.78 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.353e-06/1.248, allocations: 0 / 0.6027 GB, free: 35.78 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002943/1.251, allocations: 0.5038 MB / 0.6032 GB, free: 35.27 MB / 395.1 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 (144): * Single equations (assignments): 141 * 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.007922/1.259, allocations: 4.578 MB / 0.6076 GB, free: 30.64 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004537/1.263, allocations: 2.089 MB / 0.6097 GB, free: 28.5 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.263, allocations: 0.9375 kB / 0.6097 GB, free: 28.5 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/1.266, allocations: 1.143 MB / 0.6108 GB, free: 27.3 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/1.269, allocations: 385.9 kB / 0.6112 GB, free: 26.92 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/1.284, allocations: 5.086 MB / 0.6161 GB, free: 21.75 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003094/1.287, allocations: 2.278 MB / 0.6184 GB, free: 19.44 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003026/1.29, allocations: 1.194 MB / 0.6195 GB, free: 18.25 MB / 395.1 MB Notification: Performance of SimCode: time 1.463e-06/1.29, allocations: 0 / 0.6195 GB, free: 18.25 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.169/5.459, allocations: 96.91 MB / 0.7142 GB, free: 72.33 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat