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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008924/0.0008921, allocations: 100.4 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001117/0.001117, allocations: 192.3 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002452/0.0002453, allocations: 8 kB / 306.8 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1293, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02368/0.1531, allocations: 13.87 MB / 372.2 MB, free: 44 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2806/0.4338, allocations: 4.928 MB / 377.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00374/0.4375, allocations: 92.78 kB / 377.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00405/0.4416, allocations: 0.8264 MB / 378 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005517/0.4472, allocations: 1.006 MB / 379 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.45, allocations: 0.6584 MB / 379.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007243/0.4573, allocations: 3.561 MB / 383.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00554/0.4629, allocations: 2.317 MB / 385.6 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003563/0.4664, allocations: 1.209 MB / 386.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004212/0.4707, allocations: 1.583 MB / 388.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0012/0.4719, allocations: 190.2 kB / 388.5 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002934/0.4749, allocations: 414.9 kB / 389 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001208/0.4761, allocations: 0.7885 MB / 389.7 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00177/0.4779, allocations: 0.6987 MB / 390.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006151/0.484, allocations: 5.106 MB / 395.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4841, allocations: 4.047 kB / 395.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4841, allocations: 0 / 395.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002085/0.4843, allocations: 0 / 395.5 MB, free: 2.984 MB / 302.1 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.01075/0.495, allocations: 3.651 MB / 399.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.4951, allocations: 10.66 kB / 399.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001422/0.4965, allocations: 452.6 kB / 399.7 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003147/0.4997, allocations: 0.6147 MB / 400.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005434/0.5052, allocations: 2.156 MB / 402.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.5055, allocations: 247.8 kB / 402.7 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007804/0.5062, allocations: 306.7 kB / 403 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00815/0.5144, allocations: 4.029 MB / 407 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.767e-05/0.5145, allocations: 7.938 kB / 407 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.5148, allocations: 130.5 kB / 407.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001543/0.515, allocations: 146.2 kB / 407.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006353/0.5213, allocations: 3.37 MB / 410.6 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02237/0.5437, allocations: 13.53 MB / 424.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004317/0.5481, allocations: 4.28 MB / 428.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/0.5498, allocations: 1.035 MB / 429.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005783/0.5556, allocations: 2.871 MB / 432.4 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.547e-05/0.5557, allocations: 47.52 kB / 432.4 MB, free: 368 kB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.045e-06/0.5557, allocations: 0 / 432.4 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01294/0.5686, allocations: 5.984 MB / 438.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.5687, allocations: 68.72 kB / 438.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003985/0.5727, allocations: 1.89 MB / 440.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.5729, allocations: 45.7 kB / 440.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/0.5745, allocations: 1.515 MB / 441.9 MB, free: 6.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007065/0.5753, allocations: 499.2 kB / 442.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.5754, allocations: 36 kB / 442.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002295/0.5757, allocations: 377.9 kB / 442.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.5773, allocations: 0.7652 MB / 443.6 MB, free: 5.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.5792, allocations: 1.371 MB / 444.9 MB, free: 3.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.581, allocations: 1.01 MB / 445.9 MB, free: 2.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.879e-05/0.5811, allocations: 8 kB / 445.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004788/0.5859, allocations: 2.462 MB / 448.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.5859, allocations: 12 kB / 448.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-05/0.586, allocations: 28 kB / 448.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.5865, allocations: 118.5 kB / 448.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002034/0.5885, allocations: 487.2 kB / 449 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.5903, allocations: 1.309 MB / 450.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002538/0.5929, allocations: 120 kB / 450.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/0.5932, allocations: 79.98 kB / 450.5 MB, free: 13.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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.00254/0.5957, allocations: 0.9812 MB / 451.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006967/0.5964, allocations: 209.4 kB / 451.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004051/0.6005, allocations: 1.966 MB / 453.7 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.6005, allocations: 12 kB / 453.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.6005, allocations: 0 / 453.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.6005, allocations: 11.97 kB / 453.7 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.6116, allocations: 4.998 MB / 458.7 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-05/0.6117, allocations: 7.984 kB / 458.7 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.613, allocations: 303.6 kB / 459 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003336/0.6134, allocations: 94.77 kB / 459.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001351/0.6136, allocations: 35.95 kB / 459.2 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.6147, allocations: 1.272 MB / 460.4 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.435e-06/0.6147, allocations: 11.94 kB / 460.4 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005221/0.6199, allocations: 3.073 MB / 463.5 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/0.6213, allocations: 462.4 kB / 464 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006778/0.622, allocations: 28 kB / 464 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.6234, allocations: 75.91 kB / 464.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.6236, allocations: 97.14 kB / 464.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.886e-05/0.6237, allocations: 43.98 kB / 464.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002833/0.6266, allocations: 1.282 MB / 465.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6266, allocations: 0 / 465.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002955/0.6295, allocations: 0.539 MB / 466 MB, free: 13.81 MB / 382.1 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 (141): * Single equations (assignments): 138 * 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.005801/0.6353, allocations: 3.697 MB / 469.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.6392, allocations: 2.205 MB / 471.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.6392, allocations: 7.938 kB / 471.9 MB, free: 7.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.641, allocations: 1.166 MB / 473.1 MB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003794/0.6448, allocations: 0.5103 MB / 473.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04113/0.6859, allocations: 16.86 MB / 490.5 MB, free: 4.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003447/0.6895, allocations: 2.264 MB / 492.7 MB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002488/0.692, allocations: 0.5172 MB / 493.3 MB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002102/0.6941, allocations: 1.185 MB / 494.4 MB, free: 4 kB / 398.1 MB Notification: Performance of SimCode: time 2.134e-06/0.6941, allocations: 0 / 494.4 MB, free: 4 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08942/0.7835, allocations: 46.83 MB / 0.5286 GB, free: 1.633 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/0.7838, allocations: 265.9 kB / 0.5288 GB, free: 1.273 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.794/3.578, allocations: 0 / 0.5288 GB, free: 1.273 MB / 446.1 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