Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001983/0.001983, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 89.73 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.86e-05, allocations: 0 / 350.7 MB, free: 2.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1171, allocations: 51.49 MB / 402.2 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4649/0.5821, allocations: 158.1 MB / 0.5471 GB, free: 12.46 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003526/0.5825, allocations: 102.9 kB / 0.5472 GB, free: 12.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.849/2.432, allocations: 393 MB / 0.931 GB, free: 39.99 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.523e-06/2.432, allocations: 4 kB / 0.931 GB, free: 39.98 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001582/2.433, allocations: 286.9 kB / 0.9313 GB, free: 39.95 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04877/2.482, allocations: 10.78 MB / 0.9418 GB, free: 36.56 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/2.482, allocations: 9.219 kB / 0.9418 GB, free: 36.56 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01026/2.492, allocations: 1.694 MB / 0.9435 GB, free: 36.44 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02994/2.522, allocations: 4.402 MB / 0.9478 GB, free: 35.78 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03322/2.556, allocations: 9.346 MB / 0.9569 GB, free: 34.61 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001852/2.558, allocations: 0.8746 MB / 0.9577 GB, free: 34.58 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007091/2.565, allocations: 1.154 MB / 0.9589 GB, free: 34.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06898/2.634, allocations: 18.2 MB / 0.9766 GB, free: 33.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009254/2.635, allocations: 25.34 kB / 0.9767 GB, free: 33.09 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006195/2.641, allocations: 0.4966 MB / 0.9771 GB, free: 33.09 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001263/2.642, allocations: 0.8127 MB / 0.9779 GB, free: 33.06 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04596/2.688, allocations: 15.24 MB / 0.9928 GB, free: 32.95 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.133/2.821, allocations: 59.83 MB / 1.051 GB, free: 3.582 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02937/2.851, allocations: 33.01 MB / 1.083 GB, free: 2.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007483/2.858, allocations: 3.64 MB / 1.087 GB, free: 14.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01978/2.878, allocations: 8.746 MB / 1.096 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.623e-05/2.878, allocations: 69.27 kB / 1.096 GB, free: 7.609 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=350): time 6.833e-06/2.878, allocations: 0 / 1.096 GB, free: 7.609 MB / 0.5105 GB Notification: Performance of matching and sorting (n=390): time 0.4595/3.338, allocations: 13.57 MB / 1.109 GB, free: 84.39 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/3.338, allocations: 93.16 kB / 1.109 GB, free: 84.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01028/3.348, allocations: 4.283 MB / 1.113 GB, free: 83.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.00106/3.349, allocations: 89.83 kB / 1.113 GB, free: 83.92 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005132/3.354, allocations: 5.463 MB / 1.119 GB, free: 81.22 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002234/3.357, allocations: 1.358 MB / 1.12 GB, free: 80.38 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006966/3.357, allocations: 138.3 kB / 1.12 GB, free: 80.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004458/3.358, allocations: 0.576 MB / 1.121 GB, free: 80.07 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004543/3.362, allocations: 2.783 MB / 1.123 GB, free: 80.05 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007214/3.37, allocations: 5.806 MB / 1.129 GB, free: 76.28 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007604/3.377, allocations: 4.153 MB / 1.133 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001588/3.378, allocations: 30.25 kB / 1.133 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.0235/3.401, allocations: 9.634 MB / 1.142 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/3.401, allocations: 51.95 kB / 1.143 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000238/3.402, allocations: 103.9 kB / 1.143 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/3.404, allocations: 0.939 MB / 1.144 GB, free: 75.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007039/3.411, allocations: 1.589 MB / 1.145 GB, free: 75.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/3.423, allocations: 9.374 MB / 1.154 GB, free: 71.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008337/3.432, allocations: 411 kB / 1.155 GB, free: 71.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002888/3.435, allocations: 357 kB / 1.155 GB, free: 71.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (822): * Single equations (assignments): 816 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005165/3.44, allocations: 0.5614 MB / 1.156 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004011/3.444, allocations: 0.5086 MB / 1.156 GB, free: 71.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/3.461, allocations: 6.303 MB / 1.162 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.886e-05/3.461, allocations: 38.69 kB / 1.162 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/3.461, allocations: 11.84 kB / 1.162 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-05/3.461, allocations: 24.53 kB / 1.162 GB, free: 70.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03884/3.5, allocations: 15.41 MB / 1.177 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/3.5, allocations: 5.938 kB / 1.177 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003681/3.504, allocations: 0.7395 MB / 1.178 GB, free: 70.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/3.506, allocations: 0.7774 MB / 1.179 GB, free: 70.09 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007524/3.507, allocations: 84.61 kB / 1.179 GB, free: 70.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008824/3.516, allocations: 8.553 MB / 1.187 GB, free: 66.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/3.516, allocations: 2.969 kB / 1.187 GB, free: 66.11 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01609/3.532, allocations: 9.512 MB / 1.197 GB, free: 63.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004075/3.536, allocations: 1.045 MB / 1.198 GB, free: 63.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/3.538, allocations: 70.22 kB / 1.198 GB, free: 63.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00403/3.542, allocations: 232.1 kB / 1.198 GB, free: 62.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/3.543, allocations: 260 kB / 1.198 GB, free: 62.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003728/3.544, allocations: 118.3 kB / 1.198 GB, free: 62.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007476/3.551, allocations: 3.169 MB / 1.201 GB, free: 61.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.464e-06/3.551, allocations: 4.562 kB / 1.201 GB, free: 61.69 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01119/3.562, allocations: 1.939 MB / 1.203 GB, free: 61.49 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (368): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01555/3.578, allocations: 11.3 MB / 1.214 GB, free: 55.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01296/3.591, allocations: 7.429 MB / 1.221 GB, free: 52.97 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/3.591, allocations: 0.5 kB / 1.221 GB, free: 52.97 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006448/3.598, allocations: 3.44 MB / 1.225 GB, free: 51.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007708/3.605, allocations: 1.169 MB / 1.226 GB, free: 51.01 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06925/3.675, allocations: 20.2 MB / 1.246 GB, free: 36.09 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02176/3.696, allocations: 7.519 MB / 1.253 GB, free: 30.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00954/3.706, allocations: 2.148 MB / 1.255 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009517/3.716, allocations: 4.32 MB / 1.259 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of SimCode: time 1.583e-06/3.716, allocations: 0 / 1.259 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6368/4.352, allocations: 150.5 MB / 1.406 GB, free: 43.97 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/4.353, allocations: 237.2 kB / 1.407 GB, free: 43.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.963/11.32, allocations: 0 / 1.407 GB, free: 43.66 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat