Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008999/0.0009, allocations: 98.75 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.122e-05/2.124e-05, allocations: 4 kB / 343.8 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 51.48 MB / 395.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.4854, allocations: 105.9 MB / 0.4894 GB, free: 3.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.4856, allocations: 85.02 kB / 0.4895 GB, free: 3.379 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1052/0.5909, allocations: 39.04 MB / 0.5276 GB, free: 1.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5909, allocations: 0 / 0.5276 GB, free: 1.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001879/0.5911, allocations: 47.92 kB / 0.5276 GB, free: 1.203 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004673/0.5958, allocations: 1.777 MB / 0.5294 GB, free: 15.37 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.5959, allocations: 15.97 kB / 0.5294 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.5971, allocations: 229.5 kB / 0.5296 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002902/0.6, allocations: 1.297 MB / 0.5309 GB, free: 13.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.687e-05/0.6001, allocations: 48 kB / 0.5309 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004669/0.6006, allocations: 92 kB / 0.531 GB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003216/0.6038, allocations: 1.459 MB / 0.5324 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/0.6073, allocations: 1.74 MB / 0.5341 GB, free: 10.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.054e-05/0.6074, allocations: 11.84 kB / 0.5341 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.6075, allocations: 4 kB / 0.5341 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.543e-05/0.6076, allocations: 70.92 kB / 0.5342 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009913/0.6175, allocations: 6.695 MB / 0.5407 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000655/0.6182, allocations: 459.8 kB / 0.5412 GB, free: 2.832 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003467/0.6186, allocations: 270.5 kB / 0.5414 GB, free: 2.566 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002433/0.621, allocations: 1.382 MB / 0.5428 GB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.6211, allocations: 42.55 kB / 0.5428 GB, free: 1.082 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 1.964e-06/0.6211, allocations: 3.938 kB / 0.5428 GB, free: 1.078 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.003847/0.6249, allocations: 2.084 MB / 0.5449 GB, free: 14.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.625, allocations: 55.97 kB / 0.5449 GB, free: 14.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002019/0.627, allocations: 1.173 MB / 0.5461 GB, free: 13.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.802e-05/0.6271, allocations: 25.7 kB / 0.5461 GB, free: 13.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000713/0.6278, allocations: 1.044 MB / 0.5471 GB, free: 12.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.628, allocations: 205.2 kB / 0.5473 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.6281, allocations: 0 / 0.5473 GB, free: 12.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001886/0.6282, allocations: 373.9 kB / 0.5477 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006653/0.6289, allocations: 447.8 kB / 0.5481 GB, free: 11.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.6301, allocations: 1.292 MB / 0.5493 GB, free: 9.867 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.6312, allocations: 0.7123 MB / 0.55 GB, free: 9.152 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-05/0.6313, allocations: 8 kB / 0.5501 GB, free: 9.145 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003553/0.6348, allocations: 1.785 MB / 0.5518 GB, free: 7.344 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.618e-05/0.6349, allocations: 24.92 kB / 0.5518 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.617e-05/0.6349, allocations: 28 kB / 0.5518 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/0.6356, allocations: 234.4 kB / 0.5521 GB, free: 7.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.6369, allocations: 383.3 kB / 0.5524 GB, free: 6.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001634/0.6385, allocations: 1.674 MB / 0.5541 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.64, allocations: 111.5 kB / 0.5542 GB, free: 4.777 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.6401, allocations: 91.98 kB / 0.5543 GB, free: 4.688 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * 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 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002634/0.6404, allocations: 176.2 kB / 0.5544 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001577/0.642, allocations: 0.8784 MB / 0.5553 GB, free: 3.613 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.6423, allocations: 142.2 kB / 0.5554 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.644, allocations: 0.9489 MB / 0.5564 GB, free: 2.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.644, allocations: 8 kB / 0.5564 GB, free: 2.492 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.644, allocations: 144 / 0.5564 GB, free: 2.492 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.644, allocations: 7.969 kB / 0.5564 GB, free: 2.484 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004517/0.6485, allocations: 2.363 MB / 0.5587 GB, free: 44 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.6486, allocations: 0 / 0.5587 GB, free: 44 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.6491, allocations: 119.8 kB / 0.5588 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/0.6495, allocations: 166.5 kB / 0.5589 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.6496, allocations: 0 / 0.5589 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.6509, allocations: 1.627 MB / 0.5605 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.651, allocations: 0 / 0.5605 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.6529, allocations: 1.434 MB / 0.5619 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005563/0.6534, allocations: 279.2 kB / 0.5622 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/0.6537, allocations: 0 / 0.5622 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006998/0.6544, allocations: 55.98 kB / 0.5623 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6545, allocations: 36.52 kB / 0.5623 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.6546, allocations: 23.98 kB / 0.5623 GB, free: 12.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001365/0.656, allocations: 0.8449 MB / 0.5631 GB, free: 11.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.656, allocations: 0 / 0.5631 GB, free: 11.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001574/0.6575, allocations: 316 kB / 0.5634 GB, free: 10.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 53 * 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 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002781/0.6603, allocations: 2.303 MB / 0.5657 GB, free: 8.645 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.6627, allocations: 1.404 MB / 0.5671 GB, free: 7.191 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6628, allocations: 0 / 0.5671 GB, free: 7.191 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008752/0.6636, allocations: 0.6916 MB / 0.5677 GB, free: 6.449 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.6653, allocations: 312.1 kB / 0.568 GB, free: 6.148 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005743/0.6711, allocations: 2.538 MB / 0.5705 GB, free: 3.559 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.6724, allocations: 1.495 MB / 0.572 GB, free: 2.027 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001141/0.6735, allocations: 344.7 kB / 0.5723 GB, free: 1.684 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008049/0.6744, allocations: 0.6321 MB / 0.5729 GB, free: 1.055 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6744, allocations: 0 / 0.5729 GB, free: 1.055 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3421/1.017, allocations: 29.74 MB / 0.602 GB, free: 97.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.017, allocations: 170.9 kB / 0.6021 GB, free: 97.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.796, allocations: 0 / 0.6021 GB, free: 97.2 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.32 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat does not exist to compare? outputFormat=mat