Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009003/0.0009003, allocations: 91.55 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002751, allocations: 12 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2208, allocations: 50.39 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.5761, allocations: 116.8 MB / 0.5063 GB, free: 49.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.5765, allocations: 102.3 kB / 0.5063 GB, free: 49.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1718/0.7482, allocations: 75.31 MB / 0.5799 GB, free: 23.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7483, allocations: 0 / 0.5799 GB, free: 23.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003092/0.7486, allocations: 87.88 kB / 0.58 GB, free: 23.67 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01025/0.7589, allocations: 3.505 MB / 0.5834 GB, free: 20.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.7589, allocations: 8.031 kB / 0.5834 GB, free: 20.08 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001756/0.7607, allocations: 447.1 kB / 0.5838 GB, free: 19.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00332/0.764, allocations: 0.593 MB / 0.5844 GB, free: 19.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008845/0.7729, allocations: 3.145 MB / 0.5875 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.7732, allocations: 234.3 kB / 0.5877 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/0.7744, allocations: 307.9 kB / 0.588 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009744/0.7841, allocations: 3.987 MB / 0.5919 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001816/0.7844, allocations: 4 kB / 0.5919 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009251/0.7853, allocations: 132 kB / 0.592 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.7855, allocations: 146.2 kB / 0.5922 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007355/0.7929, allocations: 3.171 MB / 0.5953 GB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02521/0.8181, allocations: 13.44 MB / 0.6084 GB, free: 9.816 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004554/0.8227, allocations: 3.985 MB / 0.6123 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005646/0.8284, allocations: 2.72 MB / 0.6149 GB, free: 2.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.373e-05/0.8285, allocations: 43.56 kB / 0.615 GB, free: 2.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=113): time 2.825e-06/0.8285, allocations: 0 / 0.615 GB, free: 2.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=147): time 0.01317/0.8417, allocations: 6.096 MB / 0.6209 GB, free: 12.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/0.8418, allocations: 76.72 kB / 0.621 GB, free: 12.19 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004003/0.8458, allocations: 1.657 MB / 0.6226 GB, free: 10.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002557/0.846, allocations: 45.7 kB / 0.6227 GB, free: 10.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001547/0.8476, allocations: 1.505 MB / 0.6241 GB, free: 8.922 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000683/0.8483, allocations: 0.4968 MB / 0.6246 GB, free: 8.418 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.8485, allocations: 32 kB / 0.6246 GB, free: 8.387 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002182/0.8487, allocations: 377.9 kB / 0.625 GB, free: 8.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.8503, allocations: 0.7809 MB / 0.6258 GB, free: 7.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.8522, allocations: 1.36 MB / 0.6271 GB, free: 5.613 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.854, allocations: 1.018 MB / 0.6281 GB, free: 4.598 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.212e-05/0.8541, allocations: 11.95 kB / 0.6281 GB, free: 4.586 MB / 410.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004635/0.8587, allocations: 2.478 MB / 0.6305 GB, free: 2.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.8587, allocations: 12.12 kB / 0.6305 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-05/0.8588, allocations: 24 kB / 0.6306 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003856/0.8592, allocations: 122.5 kB / 0.6307 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/0.8611, allocations: 479.2 kB / 0.6311 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.8622, allocations: 1.319 MB / 0.6324 GB, free: 4 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.8641, allocations: 120 kB / 0.6325 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.8643, allocations: 83.98 kB / 0.6326 GB, free: 15.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (233): * Single equations (assignments): 230 * 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.002279/0.8666, allocations: 0.9812 MB / 0.6336 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005565/0.8672, allocations: 201.5 kB / 0.6338 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/0.8709, allocations: 2.02 MB / 0.6357 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.8709, allocations: 12 kB / 0.6358 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.871, allocations: 4 kB / 0.6358 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.871, allocations: 7.969 kB / 0.6358 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.8817, allocations: 5.106 MB / 0.6407 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.8818, allocations: 0 / 0.6407 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.8835, allocations: 323.5 kB / 0.6411 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003866/0.8839, allocations: 94.77 kB / 0.6411 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000153/0.8841, allocations: 32 kB / 0.6412 GB, free: 6.887 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.8854, allocations: 1.288 MB / 0.6424 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.8854, allocations: 0 / 0.6424 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005368/0.8908, allocations: 3.294 MB / 0.6457 GB, free: 2.051 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.8923, allocations: 470.4 kB / 0.6461 GB, free: 1.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005866/0.8929, allocations: 24.06 kB / 0.6461 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.8944, allocations: 91.91 kB / 0.6462 GB, free: 1.457 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.8946, allocations: 89.14 kB / 0.6463 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000104/0.8947, allocations: 47.92 kB / 0.6463 GB, free: 1.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002837/0.8976, allocations: 1.266 MB / 0.6476 GB, free: 32 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8976, allocations: 4 kB / 0.6476 GB, free: 28 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.002923/0.9005, allocations: 0.5859 MB / 0.6482 GB, free: 15.44 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * 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.006453/0.907, allocations: 4.703 MB / 0.6527 GB, free: 10.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004227/0.9112, allocations: 2.231 MB / 0.6549 GB, free: 8.363 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.9113, allocations: 4.938 kB / 0.6549 GB, free: 8.359 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/0.913, allocations: 1.201 MB / 0.6561 GB, free: 7.102 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002689/0.9157, allocations: 489.8 kB / 0.6566 GB, free: 6.629 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2734/1.189, allocations: 29.09 MB / 0.685 GB, free: 82.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0019/1.191, allocations: 2.321 MB / 0.6872 GB, free: 81.43 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002179/1.193, allocations: 0.5207 MB / 0.6878 GB, free: 81.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/1.195, allocations: 1.169 MB / 0.6889 GB, free: 81.4 MB / 442.7 MB Notification: Performance of SimCode: time 8.51e-07/1.195, allocations: 0 / 0.6889 GB, free: 81.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08597/1.281, allocations: 51.34 MB / 0.739 GB, free: 72.79 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/1.281, allocations: 251.1 kB / 0.7393 GB, free: 72.45 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.251/4.533, allocations: 0 / 0.7393 GB, free: 72.45 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat