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.001517/0.001517, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.2 MB / 245 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009771/0.0009771, allocations: 105.7 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002252/0.0002252, allocations: 4 kB / 358 MB, free: 9.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2277, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3123/0.54, allocations: 117.8 MB / 0.515 GB, free: 97.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5402, allocations: 99.22 kB / 0.5151 GB, free: 97.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1601/0.7003, allocations: 77.95 MB / 0.5912 GB, free: 19.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7004, allocations: 0 / 0.5912 GB, free: 19.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.7006, allocations: 87.81 kB / 0.5913 GB, free: 19.32 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.008569/0.7091, allocations: 3.536 MB / 0.5948 GB, free: 15.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.7092, allocations: 12.02 kB / 0.5948 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001354/0.7106, allocations: 451.1 kB / 0.5952 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002615/0.7132, allocations: 0.5937 MB / 0.5958 GB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006901/0.7201, allocations: 3.165 MB / 0.5989 GB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.7203, allocations: 238.3 kB / 0.5991 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/0.7207, allocations: 307.9 kB / 0.5994 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005909/0.7267, allocations: 3.983 MB / 0.6033 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.881e-05/0.7268, allocations: 11.91 kB / 0.6033 GB, free: 6.758 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002651/0.727, allocations: 135.9 kB / 0.6034 GB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.894e-05/0.7272, allocations: 154.2 kB / 0.6036 GB, free: 6.473 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005199/0.7324, allocations: 3.167 MB / 0.6067 GB, free: 3.297 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0219/0.7543, allocations: 13.62 MB / 0.62 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004424/0.7587, allocations: 4.273 MB / 0.6241 GB, free: 356 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005289/0.7641, allocations: 2.917 MB / 0.627 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/0.7642, allocations: 47.56 kB / 0.627 GB, free: 13.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=113): time 3.447e-06/0.7642, allocations: 0 / 0.627 GB, free: 13.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.01421/0.7784, allocations: 6.509 MB / 0.6334 GB, free: 6.645 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.7785, allocations: 72.72 kB / 0.6335 GB, free: 6.562 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003053/0.7815, allocations: 1.662 MB / 0.6351 GB, free: 4.863 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.927e-05/0.7816, allocations: 53.7 kB / 0.6351 GB, free: 4.805 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.7827, allocations: 1.509 MB / 0.6366 GB, free: 3.277 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004085/0.7831, allocations: 0.4929 MB / 0.6371 GB, free: 2.777 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.753e-05/0.7832, allocations: 40 kB / 0.6371 GB, free: 2.738 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.7834, allocations: 373.9 kB / 0.6375 GB, free: 2.367 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.7847, allocations: 0.7809 MB / 0.6382 GB, free: 1.586 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.7863, allocations: 1.364 MB / 0.6396 GB, free: 15.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.7879, allocations: 1.021 MB / 0.6406 GB, free: 14.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.7879, allocations: 4 kB / 0.6406 GB, free: 14.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.004072/0.792, allocations: 2.497 MB / 0.643 GB, free: 12.42 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.792, allocations: 12 kB / 0.643 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.842e-05/0.792, allocations: 20 kB / 0.643 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000352/0.7924, allocations: 123 kB / 0.6432 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001751/0.7942, allocations: 483.2 kB / 0.6436 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.7952, allocations: 1.319 MB / 0.6449 GB, free: 10.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/0.7968, allocations: 120 kB / 0.645 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.797, allocations: 83.98 kB / 0.6451 GB, free: 10.14 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.002017/0.799, allocations: 0.9851 MB / 0.6461 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005475/0.7996, allocations: 201.5 kB / 0.6463 GB, free: 8.941 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003504/0.8031, allocations: 2.013 MB / 0.6482 GB, free: 6.906 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.8031, allocations: 23.94 kB / 0.6482 GB, free: 6.883 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.8031, allocations: 0 / 0.6482 GB, free: 6.883 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.8032, allocations: 7.969 kB / 0.6483 GB, free: 6.875 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.814, allocations: 5.106 MB / 0.6532 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.814, allocations: 0 / 0.6532 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.8154, allocations: 319.5 kB / 0.6535 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/0.8158, allocations: 98.73 kB / 0.6536 GB, free: 1.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.8159, allocations: 32 kB / 0.6537 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000956/0.8168, allocations: 1.28 MB / 0.6549 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.8169, allocations: 11.92 kB / 0.6549 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004839/0.8217, allocations: 3.291 MB / 0.6581 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/0.8232, allocations: 474.3 kB / 0.6586 GB, free: 11.89 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005091/0.8237, allocations: 28 kB / 0.6586 GB, free: 11.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.825, allocations: 91.95 kB / 0.6587 GB, free: 11.78 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.8252, allocations: 89.12 kB / 0.6588 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.688e-05/0.8253, allocations: 36 kB / 0.6588 GB, free: 11.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002317/0.8276, allocations: 1.274 MB / 0.6601 GB, free: 10.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8276, allocations: 0 / 0.6601 GB, free: 10.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002126/0.8297, allocations: 0.6015 MB / 0.6607 GB, free: 9.754 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.005872/0.8356, allocations: 4.719 MB / 0.6653 GB, free: 4.949 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003482/0.8391, allocations: 2.24 MB / 0.6675 GB, free: 2.656 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.8391, allocations: 0 / 0.6675 GB, free: 2.656 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001567/0.8407, allocations: 1.201 MB / 0.6686 GB, free: 1.402 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002182/0.8429, allocations: 485.6 kB / 0.6691 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2268/1.07, allocations: 29.16 MB / 0.6976 GB, free: 75.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/1.072, allocations: 2.327 MB / 0.6998 GB, free: 74.31 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00194/1.074, allocations: 0.5152 MB / 0.7004 GB, free: 74.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/1.075, allocations: 1.179 MB / 0.7015 GB, free: 74.29 MB / 442.7 MB Notification: Performance of SimCode: time 9.82e-07/1.075, allocations: 0 / 0.7015 GB, free: 74.29 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08732/1.163, allocations: 51.83 MB / 0.7521 GB, free: 63.16 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/1.163, allocations: 265.5 kB / 0.7524 GB, free: 62.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.232/4.395, allocations: 0 / 0.7524 GB, free: 62.82 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