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.001604/0.001603, allocations: 181 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 1.994/1.994, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001106/0.001105, allocations: 90.69 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.274e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09572, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4608/0.5565, allocations: 115.7 MB / 484.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/0.5569, allocations: 86.2 kB / 485 MB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.617/1.174, allocations: 74.98 MB / 0.5468 GB, free: 92.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.174, allocations: 0 / 0.5468 GB, free: 92.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003982/1.174, allocations: 89.7 kB / 0.5469 GB, free: 92.02 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.01342/1.188, allocations: 3.145 MB / 0.55 GB, free: 90.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.188, allocations: 9.781 kB / 0.55 GB, free: 90.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001852/1.19, allocations: 443.7 kB / 0.5504 GB, free: 90.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004873/1.195, allocations: 0.592 MB / 0.551 GB, free: 90.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01223/1.207, allocations: 3.098 MB / 0.554 GB, free: 89.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/1.207, allocations: 242 kB / 0.5543 GB, free: 89.94 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001219/1.209, allocations: 311.1 kB / 0.5546 GB, free: 89.94 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/1.221, allocations: 3.923 MB / 0.5584 GB, free: 89.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001746/1.221, allocations: 10.12 kB / 0.5584 GB, free: 89.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005031/1.221, allocations: 133.4 kB / 0.5585 GB, free: 89.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/1.222, allocations: 140.7 kB / 0.5587 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009885/1.232, allocations: 3.09 MB / 0.5617 GB, free: 89.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03104/1.263, allocations: 13.44 MB / 0.5748 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005665/1.268, allocations: 3.92 MB / 0.5786 GB, free: 79.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002468/1.271, allocations: 0.989 MB / 0.5796 GB, free: 79.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006338/1.277, allocations: 2.663 MB / 0.5822 GB, free: 77.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/1.277, allocations: 46.97 kB / 0.5822 GB, free: 77.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=107): time 4.037e-06/1.277, allocations: 0 / 0.5822 GB, free: 77.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.01575/1.293, allocations: 5.171 MB / 0.5873 GB, free: 75.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/1.293, allocations: 66.78 kB / 0.5874 GB, free: 75.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/1.297, allocations: 1.641 MB / 0.589 GB, free: 74.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002368/1.297, allocations: 57.05 kB / 0.589 GB, free: 74.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000938/1.298, allocations: 1.433 MB / 0.5904 GB, free: 73.37 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004967/1.298, allocations: 494 kB / 0.5909 GB, free: 72.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/1.298, allocations: 35.47 kB / 0.5909 GB, free: 72.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001359/1.299, allocations: 381.9 kB / 0.5913 GB, free: 72.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001834/1.3, allocations: 0.7338 MB / 0.592 GB, free: 72.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/1.304, allocations: 1.329 MB / 0.5933 GB, free: 71.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003208/1.307, allocations: 0.9738 MB / 0.5942 GB, free: 70.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-05/1.307, allocations: 11.31 kB / 0.5943 GB, free: 70.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007926/1.315, allocations: 2.271 MB / 0.5965 GB, free: 69.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.314e-05/1.315, allocations: 15.25 kB / 0.5965 GB, free: 69.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.681e-05/1.315, allocations: 17.53 kB / 0.5965 GB, free: 69.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007331/1.316, allocations: 127.1 kB / 0.5966 GB, free: 69.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/1.321, allocations: 485.6 kB / 0.5971 GB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/1.322, allocations: 1.314 MB / 0.5984 GB, free: 68.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003865/1.326, allocations: 121 kB / 0.5985 GB, free: 68.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004438/1.327, allocations: 78.53 kB / 0.5986 GB, free: 68.49 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.0006284/1.327, allocations: 221.9 kB / 0.5988 GB, free: 68.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008066/1.328, allocations: 200.5 kB / 0.599 GB, free: 68.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007119/1.335, allocations: 1.909 MB / 0.6008 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/1.336, allocations: 11.34 kB / 0.6008 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/1.336, allocations: 7.562 kB / 0.6008 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.95e-05/1.336, allocations: 13.19 kB / 0.6009 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/1.353, allocations: 4.952 MB / 0.6057 GB, free: 65.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/1.353, allocations: 0 / 0.6057 GB, free: 65.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003842/1.357, allocations: 320.8 kB / 0.606 GB, free: 65.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/1.358, allocations: 100.5 kB / 0.6061 GB, free: 65.08 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002685/1.358, allocations: 27.34 kB / 0.6061 GB, free: 65.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/1.359, allocations: 1.271 MB / 0.6074 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.862e-06/1.359, allocations: 3.969 kB / 0.6074 GB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/1.37, allocations: 3.134 MB / 0.6104 GB, free: 61.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001679/1.372, allocations: 464.3 kB / 0.6109 GB, free: 61.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007494/1.373, allocations: 27.52 kB / 0.6109 GB, free: 61.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002935/1.376, allocations: 85.88 kB / 0.611 GB, free: 61.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004872/1.376, allocations: 89.12 kB / 0.6111 GB, free: 61.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/1.376, allocations: 40 kB / 0.6111 GB, free: 60.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00409/1.38, allocations: 1.249 MB / 0.6123 GB, free: 59.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.381, allocations: 0 / 0.6123 GB, free: 59.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00442/1.385, allocations: 0.5778 MB / 0.6129 GB, free: 59.23 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.01106/1.396, allocations: 4.598 MB / 0.6174 GB, free: 54.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006995/1.403, allocations: 2.145 MB / 0.6195 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/1.403, allocations: 0 / 0.6195 GB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/1.407, allocations: 1.149 MB / 0.6206 GB, free: 51.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005413/1.412, allocations: 490.1 kB / 0.6211 GB, free: 51.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0222/1.435, allocations: 5.205 MB / 0.6261 GB, free: 46.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003685/1.438, allocations: 2.272 MB / 0.6284 GB, free: 44.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003527/1.442, allocations: 1.19 MB / 0.6295 GB, free: 43.78 MB / 410.7 MB Notification: Performance of SimCode: time 2.063e-06/1.442, allocations: 0 / 0.6295 GB, free: 43.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.398/5.84, allocations: 98.39 MB / 0.7256 GB, free: 98.93 MB / 426.7 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