Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001592/0.001592, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.954/1.954, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001178/0.001177, allocations: 97.84 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003893, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3358, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1933/0.5292, allocations: 110 MB / 484.6 MB, free: 2.578 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005251/0.5298, allocations: 91.95 kB / 484.7 MB, free: 2.488 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5522/1.082, allocations: 52.95 MB / 0.5251 GB, free: 90.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.317e-06/1.082, allocations: 0 / 0.5251 GB, free: 90.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003078/1.082, allocations: 71.88 kB / 0.5252 GB, free: 90.73 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.01136/1.094, allocations: 2.903 MB / 0.528 GB, free: 87.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/1.094, allocations: 12.03 kB / 0.528 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001822/1.096, allocations: 378.6 kB / 0.5284 GB, free: 87.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001971/1.098, allocations: 344.1 kB / 0.5287 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007133/1.105, allocations: 1.928 MB / 0.5306 GB, free: 85.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/1.105, allocations: 189 kB / 0.5307 GB, free: 84.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/1.106, allocations: 255.8 kB / 0.531 GB, free: 84.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009879/1.116, allocations: 3.245 MB / 0.5342 GB, free: 81.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/1.116, allocations: 11.84 kB / 0.5342 GB, free: 81.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/1.117, allocations: 104 kB / 0.5343 GB, free: 81.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/1.117, allocations: 116.9 kB / 0.5344 GB, free: 81.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008438/1.125, allocations: 2.592 MB / 0.5369 GB, free: 78.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02746/1.153, allocations: 10.49 MB / 0.5472 GB, free: 67.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00337/1.156, allocations: 1.446 MB / 0.5486 GB, free: 66.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005077/1.157, allocations: 221.1 kB / 0.5488 GB, free: 65.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/1.157, allocations: 43.56 kB / 0.5488 GB, free: 65.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=103): time 4.128e-06/1.157, allocations: 0 / 0.5488 GB, free: 65.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.02703/1.184, allocations: 7.17 MB / 0.5558 GB, free: 58.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/1.184, allocations: 64.72 kB / 0.5559 GB, free: 58.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/1.188, allocations: 1.554 MB / 0.5574 GB, free: 56.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003835/1.188, allocations: 45.7 kB / 0.5574 GB, free: 56.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009688/1.189, allocations: 1.202 MB / 0.5586 GB, free: 55.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006646/1.19, allocations: 456.6 kB / 0.5591 GB, free: 55.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/1.19, allocations: 39.94 kB / 0.5591 GB, free: 55.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/1.19, allocations: 370.8 kB / 0.5595 GB, free: 54.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/1.193, allocations: 0.8042 MB / 0.5602 GB, free: 54.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002458/1.195, allocations: 1.331 MB / 0.5615 GB, free: 52.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/1.198, allocations: 1.017 MB / 0.5625 GB, free: 51.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/1.198, allocations: 8 kB / 0.5625 GB, free: 51.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.006699/1.205, allocations: 2.436 MB / 0.5649 GB, free: 49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.238e-05/1.205, allocations: 12 kB / 0.5649 GB, free: 48.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.741e-05/1.205, allocations: 16 kB / 0.5649 GB, free: 48.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/1.206, allocations: 243.5 kB / 0.5652 GB, free: 48.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/1.209, allocations: 443.3 kB / 0.5656 GB, free: 48.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003261/1.212, allocations: 3.037 MB / 0.5686 GB, free: 44.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002886/1.215, allocations: 135.8 kB / 0.5687 GB, free: 44.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004635/1.216, allocations: 68 kB / 0.5688 GB, free: 44.78 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002406/1.218, allocations: 0.8334 MB / 0.5696 GB, free: 43.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006619/1.219, allocations: 189.7 kB / 0.5698 GB, free: 43.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/1.225, allocations: 2.148 MB / 0.5719 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/1.225, allocations: 12 kB / 0.5719 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/1.225, allocations: 0 / 0.5719 GB, free: 41.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-05/1.225, allocations: 11.97 kB / 0.5719 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01295/1.238, allocations: 4.88 MB / 0.5766 GB, free: 36.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/1.238, allocations: 4 kB / 0.5766 GB, free: 36.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002433/1.24, allocations: 287.6 kB / 0.5769 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000946/1.241, allocations: 211.5 kB / 0.5771 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002694/1.241, allocations: 27.94 kB / 0.5771 GB, free: 36.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/1.245, allocations: 3.013 MB / 0.5801 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.245, allocations: 3.984 kB / 0.5801 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007882/1.252, allocations: 3.436 MB / 0.5834 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/1.254, allocations: 442.6 kB / 0.5839 GB, free: 28.79 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005752/1.255, allocations: 24 kB / 0.5839 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002274/1.257, allocations: 107.8 kB / 0.584 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004741/1.257, allocations: 88.89 kB / 0.5841 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/1.258, allocations: 39.98 kB / 0.5841 GB, free: 28.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002848/1.26, allocations: 1.188 MB / 0.5853 GB, free: 27.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.261, allocations: 0 / 0.5853 GB, free: 27.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002901/1.263, allocations: 0.5234 MB / 0.5858 GB, free: 26.83 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (129): * Single equations (assignments): 125 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008902/1.272, allocations: 4.872 MB / 0.5905 GB, free: 21.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006032/1.278, allocations: 2.431 MB / 0.5929 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.279, allocations: 4 kB / 0.5929 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002997/1.282, allocations: 1.385 MB / 0.5943 GB, free: 17.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/1.285, allocations: 466.7 kB / 0.5947 GB, free: 17.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04219/1.328, allocations: 26.43 MB / 0.6205 GB, free: 5.934 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002953/1.331, allocations: 2.028 MB / 0.6225 GB, free: 3.871 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002771/1.333, allocations: 1.015 MB / 0.6235 GB, free: 2.855 MB / 394.7 MB Notification: Performance of SimCode: time 4.969e-06/1.333, allocations: 0 / 0.6235 GB, free: 2.855 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.052/5.386, allocations: 92.89 MB / 0.7142 GB, free: 62.2 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat