Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_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.001346/0.001346, 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.367/1.367, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009339/0.0009338, allocations: 93.77 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.426e-05/2.421e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3706/0.4869, allocations: 110.3 MB / 0.4938 GB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.4873, allocations: 86.69 kB / 0.4938 GB, free: 15.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1404/0.6277, allocations: 52.56 MB / 0.5452 GB, free: 15.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6277, allocations: 4 kB / 0.5452 GB, free: 15.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002372/0.628, allocations: 71.88 kB / 0.5452 GB, free: 15.17 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006822/0.6348, allocations: 2.609 MB / 0.5478 GB, free: 12.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/0.6349, allocations: 8.031 kB / 0.5478 GB, free: 12.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001918/0.6368, allocations: 356.1 kB / 0.5481 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004335/0.6412, allocations: 1.904 MB / 0.55 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.6413, allocations: 88.33 kB / 0.5501 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005846/0.6419, allocations: 155.9 kB / 0.5502 GB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004805/0.6467, allocations: 2.345 MB / 0.5525 GB, free: 7.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00625/0.653, allocations: 2.825 MB / 0.5553 GB, free: 4.621 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.395e-05/0.6531, allocations: 7.906 kB / 0.5553 GB, free: 4.613 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002432/0.6534, allocations: 7.984 kB / 0.5553 GB, free: 4.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/0.6536, allocations: 116.9 kB / 0.5554 GB, free: 4.488 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.672, allocations: 9.997 MB / 0.5652 GB, free: 10.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.674, allocations: 1.403 MB / 0.5665 GB, free: 8.695 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.6751, allocations: 0.731 MB / 0.5673 GB, free: 7.965 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003903/0.6755, allocations: 219.5 kB / 0.5675 GB, free: 7.711 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.6756, allocations: 44.53 kB / 0.5675 GB, free: 7.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 4.779e-06/0.6756, allocations: 0 / 0.5675 GB, free: 7.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.01025/0.6858, allocations: 5.183 MB / 0.5726 GB, free: 2.426 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.6859, allocations: 68.72 kB / 0.5726 GB, free: 2.348 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.6882, allocations: 1.297 MB / 0.5739 GB, free: 1.047 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.6883, allocations: 25.7 kB / 0.5739 GB, free: 1.016 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2287/0.917, allocations: 1.267 MB / 0.5752 GB, free: 88.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006866/0.9177, allocations: 458 kB / 0.5756 GB, free: 88.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.9178, allocations: 1.062 kB / 0.5756 GB, free: 88.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.918, allocations: 373.1 kB / 0.576 GB, free: 88.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.9192, allocations: 0.763 MB / 0.5767 GB, free: 88.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.9202, allocations: 1.265 MB / 0.5779 GB, free: 87.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.9215, allocations: 0.9844 MB / 0.5789 GB, free: 87.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.9215, allocations: 6.594 kB / 0.5789 GB, free: 87.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003539/0.9251, allocations: 2.346 MB / 0.5812 GB, free: 87.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.9251, allocations: 12.59 kB / 0.5812 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.9252, allocations: 15.75 kB / 0.5812 GB, free: 87.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005461/0.9257, allocations: 238.1 kB / 0.5814 GB, free: 87.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001585/0.9273, allocations: 454.1 kB / 0.5819 GB, free: 87.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.9292, allocations: 2.888 MB / 0.5847 GB, free: 84.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.9309, allocations: 98.86 kB / 0.5848 GB, free: 84.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/0.9311, allocations: 72.5 kB / 0.5849 GB, free: 84.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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.0003243/0.9314, allocations: 152.8 kB / 0.585 GB, free: 84.82 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002745/0.9342, allocations: 1.876 MB / 0.5868 GB, free: 84.63 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.9345, allocations: 176.3 kB / 0.587 GB, free: 84.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.9376, allocations: 2.028 MB / 0.589 GB, free: 84.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.9376, allocations: 12.91 kB / 0.589 GB, free: 84.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.9377, allocations: 2.594 kB / 0.589 GB, free: 84.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.9377, allocations: 6.562 kB / 0.589 GB, free: 84.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006593/0.9443, allocations: 4.503 MB / 0.5934 GB, free: 83.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.9443, allocations: 7.016 kB / 0.5934 GB, free: 83.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.9455, allocations: 307.1 kB / 0.5937 GB, free: 83.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000462/0.946, allocations: 202.8 kB / 0.5939 GB, free: 83.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.386e-05/0.9461, allocations: 9.469 kB / 0.5939 GB, free: 83.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.9478, allocations: 2.858 MB / 0.5967 GB, free: 81.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.9478, allocations: 3 kB / 0.5967 GB, free: 81.51 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003863/0.9517, allocations: 3.355 MB / 0.6 GB, free: 80.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001081/0.9528, allocations: 427.4 kB / 0.6004 GB, free: 80.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/0.953, allocations: 5.281 kB / 0.6004 GB, free: 80.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009548/0.954, allocations: 84.59 kB / 0.6005 GB, free: 80.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.9542, allocations: 91.08 kB / 0.6006 GB, free: 80.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-05/0.9543, allocations: 36.47 kB / 0.6006 GB, free: 80.75 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001459/0.9557, allocations: 0.9709 MB / 0.6015 GB, free: 80.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9557, allocations: 0 / 0.6015 GB, free: 80.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001914/0.9577, allocations: 461.1 kB / 0.602 GB, free: 80.64 MB / 442.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 (134): * Single equations (assignments): 130 * 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.004766/0.9624, allocations: 4.771 MB / 0.6066 GB, free: 78.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.9661, allocations: 2.317 MB / 0.6089 GB, free: 78.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.9661, allocations: 3.5 kB / 0.6089 GB, free: 78.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.9679, allocations: 1.351 MB / 0.6102 GB, free: 78.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/0.9703, allocations: 385.3 kB / 0.6106 GB, free: 78.14 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008689/0.979, allocations: 4.527 MB / 0.615 GB, free: 77.15 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001708/0.9807, allocations: 2.08 MB / 0.617 GB, free: 76.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00171/0.9825, allocations: 0.5149 MB / 0.6175 GB, free: 76.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/0.9836, allocations: 0.9985 MB / 0.6185 GB, free: 75.52 MB / 442.7 MB Notification: Performance of SimCode: time 8.52e-07/0.9836, allocations: 0 / 0.6185 GB, free: 75.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07961/1.063, allocations: 40.64 MB / 0.6582 GB, free: 73.16 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002756/1.064, allocations: 173.1 kB / 0.6584 GB, free: 72.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.272/4.335, allocations: 5.797 kB / 0.6584 GB, free: 72.98 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat