Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001518/0.001517, allocations: 196.9 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008432/0.0008431, allocations: 94.16 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.213e-05/4.22e-05, allocations: 11.98 kB / 350.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1347, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4114/0.5461, allocations: 117.8 MB / 0.5077 GB, free: 4.324 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.5464, allocations: 96.08 kB / 0.5078 GB, free: 4.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4858/1.032, allocations: 77.92 MB / 0.5839 GB, free: 76.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.032, allocations: 0 / 0.5839 GB, free: 76.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002808/1.033, allocations: 87 kB / 0.584 GB, free: 76.87 MB / 442.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.009274/1.042, allocations: 3.176 MB / 0.5871 GB, free: 75.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/1.042, allocations: 9.781 kB / 0.5871 GB, free: 75.7 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001575/1.044, allocations: 445.3 kB / 0.5875 GB, free: 75.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003597/1.047, allocations: 0.5966 MB / 0.5881 GB, free: 75.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009201/1.056, allocations: 3.133 MB / 0.5912 GB, free: 74.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/1.057, allocations: 238.4 kB / 0.5914 GB, free: 74.92 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/1.058, allocations: 311.4 kB / 0.5917 GB, free: 74.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00778/1.066, allocations: 3.918 MB / 0.5955 GB, free: 74.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-05/1.066, allocations: 5.938 kB / 0.5955 GB, free: 74.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/1.066, allocations: 139.4 kB / 0.5957 GB, free: 74.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001366/1.066, allocations: 142.5 kB / 0.5958 GB, free: 74.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006577/1.073, allocations: 3.089 MB / 0.5988 GB, free: 74.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02381/1.097, allocations: 13.63 MB / 0.6121 GB, free: 70.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004192/1.101, allocations: 4.219 MB / 0.6163 GB, free: 67.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/1.103, allocations: 1.006 MB / 0.6172 GB, free: 67.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005335/1.108, allocations: 2.878 MB / 0.62 GB, free: 66.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/1.108, allocations: 45.53 kB / 0.6201 GB, free: 66.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=107): time 3.917e-06/1.108, allocations: 1.344 kB / 0.6201 GB, free: 66.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.01242/1.121, allocations: 5.189 MB / 0.6252 GB, free: 64.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/1.121, allocations: 70.47 kB / 0.6252 GB, free: 64.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002893/1.124, allocations: 1.65 MB / 0.6268 GB, free: 64.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/1.124, allocations: 46.98 kB / 0.6269 GB, free: 64.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/1.125, allocations: 1.52 MB / 0.6284 GB, free: 62.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000337/1.125, allocations: 488.5 kB / 0.6288 GB, free: 62.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/1.125, allocations: 34.75 kB / 0.6289 GB, free: 62.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/1.125, allocations: 383 kB / 0.6292 GB, free: 62.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/1.126, allocations: 0.7335 MB / 0.6299 GB, free: 61.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/1.128, allocations: 1.322 MB / 0.6312 GB, free: 60.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/1.129, allocations: 0.9827 MB / 0.6322 GB, free: 60.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/1.129, allocations: 5.531 kB / 0.6322 GB, free: 60.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00421/1.133, allocations: 2.406 MB / 0.6346 GB, free: 59.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/1.133, allocations: 11.81 kB / 0.6346 GB, free: 59.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/1.134, allocations: 19.56 kB / 0.6346 GB, free: 59.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003528/1.134, allocations: 124.4 kB / 0.6347 GB, free: 59.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/1.136, allocations: 477.2 kB / 0.6352 GB, free: 59.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007857/1.136, allocations: 1.307 MB / 0.6364 GB, free: 58.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/1.138, allocations: 113.3 kB / 0.6365 GB, free: 58.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/1.138, allocations: 82 kB / 0.6366 GB, free: 58.09 MB / 442.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.0002739/1.138, allocations: 224.4 kB / 0.6368 GB, free: 57.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/1.139, allocations: 202.3 kB / 0.637 GB, free: 57.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002973/1.142, allocations: 1.923 MB / 0.6389 GB, free: 56.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/1.142, allocations: 14.53 kB / 0.6389 GB, free: 56.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.142, allocations: 0 / 0.6389 GB, free: 56.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/1.142, allocations: 7.172 kB / 0.6389 GB, free: 56.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007431/1.149, allocations: 4.953 MB / 0.6438 GB, free: 54.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/1.149, allocations: 0 / 0.6438 GB, free: 54.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/1.15, allocations: 311.3 kB / 0.6441 GB, free: 54.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002687/1.151, allocations: 100.9 kB / 0.6442 GB, free: 54.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.288e-05/1.151, allocations: 25.69 kB / 0.6442 GB, free: 54.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000718/1.152, allocations: 1.28 MB / 0.6454 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.152, allocations: 6.562 kB / 0.6454 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/1.155, allocations: 3.14 MB / 0.6485 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.156, allocations: 461.9 kB / 0.6489 GB, free: 51.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/1.157, allocations: 27.84 kB / 0.649 GB, free: 51.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000989/1.158, allocations: 84.05 kB / 0.649 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/1.158, allocations: 84.95 kB / 0.6491 GB, free: 51.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/1.158, allocations: 42.41 kB / 0.6492 GB, free: 51.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001794/1.16, allocations: 1.257 MB / 0.6504 GB, free: 50.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.16, allocations: 0 / 0.6504 GB, free: 50.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002131/1.162, allocations: 0.5933 MB / 0.651 GB, free: 50.82 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 () * 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.004438/1.166, allocations: 4.626 MB / 0.6555 GB, free: 48.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003006/1.169, allocations: 2.138 MB / 0.6576 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.169, allocations: 0 / 0.6576 GB, free: 47.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/1.171, allocations: 1.147 MB / 0.6587 GB, free: 46.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002794/1.174, allocations: 490.4 kB / 0.6592 GB, free: 46.31 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/1.184, allocations: 5.22 MB / 0.6643 GB, free: 44.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/1.186, allocations: 2.321 MB / 0.6665 GB, free: 43.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001959/1.188, allocations: 0.5126 MB / 0.667 GB, free: 43.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/1.19, allocations: 1.188 MB / 0.6682 GB, free: 42.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.312e-06/1.19, allocations: 0 / 0.6682 GB, free: 42.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08389/1.273, allocations: 52.28 MB / 0.7193 GB, free: 13.26 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/1.274, allocations: 224.9 kB / 0.7195 GB, free: 13.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/5.126, allocations: 0 / 0.7195 GB, free: 13.04 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat