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.002712/0.002712, allocations: 181.4 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 2.163/2.163, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001124/0.001124, allocations: 82.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.041e-05/3.051e-05, allocations: 7.984 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09676, allocations: 47.56 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4944/0.5912, allocations: 109.9 MB / 479.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.5916, allocations: 89.33 kB / 479.2 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2609/0.8525, allocations: 53.01 MB / 0.5197 GB, free: 11.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.8526, allocations: 4 kB / 0.5197 GB, free: 11.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004296/0.8531, allocations: 75.88 kB / 0.5198 GB, free: 11.64 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.01357/0.8667, allocations: 2.589 MB / 0.5223 GB, free: 8.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.676e-05/0.8668, allocations: 12.03 kB / 0.5223 GB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002063/0.8688, allocations: 362.8 kB / 0.5227 GB, free: 8.621 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002679/0.8716, allocations: 348.1 kB / 0.523 GB, free: 8.277 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008217/0.8798, allocations: 1.904 MB / 0.5249 GB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/0.8802, allocations: 185 kB / 0.5251 GB, free: 6.133 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001142/0.8814, allocations: 252.2 kB / 0.5253 GB, free: 5.887 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/0.893, allocations: 3.205 MB / 0.5284 GB, free: 2.531 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/0.8932, allocations: 3.906 kB / 0.5284 GB, free: 2.527 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000624/0.8938, allocations: 108 kB / 0.5285 GB, free: 2.422 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000205/0.894, allocations: 116.9 kB / 0.5286 GB, free: 2.305 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3103/1.204, allocations: 2.524 MB / 0.5311 GB, free: 97.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03064/1.235, allocations: 10.49 MB / 0.5414 GB, free: 94.48 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003478/1.239, allocations: 1.41 MB / 0.5427 GB, free: 94.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001967/1.241, allocations: 0.7556 MB / 0.5435 GB, free: 94.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004978/1.241, allocations: 221.3 kB / 0.5437 GB, free: 93.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/1.241, allocations: 42.56 kB / 0.5437 GB, free: 93.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=103): time 4.558e-06/1.241, allocations: 0 / 0.5437 GB, free: 93.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.02418/1.265, allocations: 6.151 MB / 0.5497 GB, free: 93.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.092e-05/1.265, allocations: 67.34 kB / 0.5498 GB, free: 93.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/1.269, allocations: 1.535 MB / 0.5513 GB, free: 92.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003674/1.27, allocations: 47.89 kB / 0.5513 GB, free: 92.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009338/1.271, allocations: 1.203 MB / 0.5525 GB, free: 92.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006064/1.271, allocations: 454.3 kB / 0.5529 GB, free: 92.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/1.272, allocations: 32.41 kB / 0.553 GB, free: 92.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/1.272, allocations: 384.5 kB / 0.5533 GB, free: 91.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/1.274, allocations: 0.7753 MB / 0.5541 GB, free: 91.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002039/1.276, allocations: 1.292 MB / 0.5554 GB, free: 91.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/1.278, allocations: 0.9986 MB / 0.5563 GB, free: 91.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/1.278, allocations: 3.812 kB / 0.5563 GB, free: 91.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.006093/1.284, allocations: 2.373 MB / 0.5587 GB, free: 90.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/1.284, allocations: 11.59 kB / 0.5587 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.711e-05/1.284, allocations: 15.38 kB / 0.5587 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009936/1.285, allocations: 241.1 kB / 0.5589 GB, free: 90.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/1.288, allocations: 444.3 kB / 0.5593 GB, free: 90.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003249/1.292, allocations: 3 MB / 0.5623 GB, free: 87.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00291/1.295, allocations: 131.7 kB / 0.5624 GB, free: 87.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004648/1.295, allocations: 73.12 kB / 0.5625 GB, free: 87.55 MB / 410.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 () * 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.0004824/1.296, allocations: 216 kB / 0.5627 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007461/1.297, allocations: 185.2 kB / 0.5628 GB, free: 87.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005584/1.302, allocations: 2.094 MB / 0.5649 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/1.302, allocations: 11.5 kB / 0.5649 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/1.302, allocations: 7.094 kB / 0.5649 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.181e-05/1.302, allocations: 6.797 kB / 0.5649 GB, free: 86.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/1.317, allocations: 4.831 MB / 0.5696 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/1.317, allocations: 3.562 kB / 0.5696 GB, free: 84.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/1.319, allocations: 288.2 kB / 0.5699 GB, free: 84.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009252/1.32, allocations: 210.2 kB / 0.5701 GB, free: 84.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/1.32, allocations: 28.48 kB / 0.5701 GB, free: 84.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002888/1.323, allocations: 2.959 MB / 0.573 GB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/1.323, allocations: 10 kB / 0.573 GB, free: 81.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/1.331, allocations: 3.355 MB / 0.5763 GB, free: 80.12 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/1.333, allocations: 446.3 kB / 0.5767 GB, free: 79.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006764/1.334, allocations: 28.47 kB / 0.5768 GB, free: 79.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002199/1.336, allocations: 98.14 kB / 0.5769 GB, free: 79.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003694/1.336, allocations: 86.98 kB / 0.5769 GB, free: 79.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001413/1.336, allocations: 37.94 kB / 0.577 GB, free: 79.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002888/1.339, allocations: 1.167 MB / 0.5781 GB, free: 79.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.339, allocations: 0 / 0.5781 GB, free: 79.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003122/1.342, allocations: 0.5277 MB / 0.5786 GB, free: 79.27 MB / 410.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 () * 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.008711/1.351, allocations: 4.789 MB / 0.5833 GB, free: 76.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005925/1.357, allocations: 2.377 MB / 0.5856 GB, free: 75.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/1.357, allocations: 384 / 0.5856 GB, free: 75.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003141/1.36, allocations: 1.354 MB / 0.587 GB, free: 74.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/1.365, allocations: 463.6 kB / 0.5874 GB, free: 74.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/1.38, allocations: 4.64 MB / 0.5919 GB, free: 72.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/1.382, allocations: 2.041 MB / 0.5939 GB, free: 71.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002523/1.385, allocations: 1.013 MB / 0.5949 GB, free: 70.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/1.385, allocations: 0 / 0.5949 GB, free: 70.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.804/5.189, allocations: 92.77 MB / 0.6855 GB, free: 5.52 MB / 426.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