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.0009516/0.0009517, allocations: 95.52 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001093, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002115/0.0002116, allocations: 4 kB / 306.7 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1099, allocations: 51.5 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01444/0.1244, allocations: 12.76 MB / 371 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2135/0.338, allocations: 5.043 MB / 376 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003362/0.3414, allocations: 88.72 kB / 376.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003873/0.3452, allocations: 0.9381 MB / 377 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006884/0.3522, allocations: 1.353 MB / 378.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00336/0.3555, allocations: 0.7215 MB / 379.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007158/0.3627, allocations: 2.536 MB / 381.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003843/0.3666, allocations: 2.327 MB / 384 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003022/0.3696, allocations: 1.168 MB / 385.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.3728, allocations: 1.447 MB / 386.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005841/0.3734, allocations: 186.6 kB / 386.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002234/0.3757, allocations: 385.1 kB / 387.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001015/0.3767, allocations: 0.7589 MB / 387.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.3782, allocations: 0.6976 MB / 388.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006503/0.3847, allocations: 5.06 MB / 393.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3848, allocations: 0 / 393.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.085e-06/0.3848, allocations: 4 kB / 393.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002623/0.3851, allocations: 1.125 kB / 393.7 MB, free: 4.625 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.01158/0.3966, allocations: 3.618 MB / 397.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3967, allocations: 9.344 kB / 397.3 MB, free: 2.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00152/0.3982, allocations: 452.8 kB / 397.7 MB, free: 1.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003776/0.402, allocations: 0.6368 MB / 398.4 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005618/0.4077, allocations: 2.163 MB / 400.5 MB, free: 56 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.4079, allocations: 246 kB / 400.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007187/0.4087, allocations: 319.2 kB / 401.1 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007552/0.4162, allocations: 3.993 MB / 405.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.855e-05/0.4163, allocations: 11.84 kB / 405.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.4166, allocations: 128 kB / 405.2 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/0.4168, allocations: 150.2 kB / 405.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006475/0.4233, allocations: 3.366 MB / 408.7 MB, free: 9.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02261/0.4459, allocations: 13.46 MB / 422.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004268/0.4502, allocations: 4.262 MB / 426.5 MB, free: 6.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005195/0.4554, allocations: 2.853 MB / 429.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.4555, allocations: 47.56 kB / 429.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 2.835e-06/0.4555, allocations: 0 / 429.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=147): time 0.01239/0.4679, allocations: 6.065 MB / 435.4 MB, free: 13.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.468, allocations: 68.72 kB / 435.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003233/0.4712, allocations: 1.815 MB / 437.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.4715, allocations: 49.7 kB / 437.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001413/0.4729, allocations: 1.513 MB / 438.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005303/0.4734, allocations: 0.4929 MB / 439.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.4735, allocations: 44 kB / 439.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.4737, allocations: 377.8 kB / 439.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.475, allocations: 0.7809 MB / 440.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00205/0.4771, allocations: 1.374 MB / 441.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.4789, allocations: 1.023 MB / 442.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/0.4789, allocations: 8 kB / 443 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.004987/0.4839, allocations: 2.489 MB / 445.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.42e-05/0.484, allocations: 16 kB / 445.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.871e-05/0.4841, allocations: 20.03 kB / 445.5 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.4845, allocations: 122.5 kB / 445.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/0.4864, allocations: 491.2 kB / 446.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.4877, allocations: 1.315 MB / 447.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00194/0.4897, allocations: 120 kB / 447.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.4898, allocations: 84 kB / 447.6 MB, free: 0.9922 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * 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.002314/0.4922, allocations: 0.9812 MB / 448.6 MB, free: 0 / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004986/0.4927, allocations: 197.7 kB / 448.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.496, allocations: 2.016 MB / 450.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/0.496, allocations: 12 kB / 450.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.496, allocations: 4 kB / 450.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.4961, allocations: 7.969 kB / 450.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008434/0.5045, allocations: 5.034 MB / 455.8 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5046, allocations: 0 / 455.8 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/0.5059, allocations: 323.5 kB / 456.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002809/0.5062, allocations: 94.78 kB / 456.2 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/0.5063, allocations: 31.98 kB / 456.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009729/0.5073, allocations: 1.284 MB / 457.6 MB, free: 6.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.5073, allocations: 4 kB / 457.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004726/0.512, allocations: 3.264 MB / 460.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.5134, allocations: 464.3 kB / 461.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/0.5137, allocations: 36.06 kB / 461.3 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009044/0.5146, allocations: 79.91 kB / 461.4 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.5148, allocations: 93.08 kB / 461.5 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-05/0.5148, allocations: 43.98 kB / 461.5 MB, free: 2.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002033/0.5169, allocations: 1.223 MB / 462.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5169, allocations: 4 kB / 462.8 MB, free: 1.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002188/0.5191, allocations: 0.5429 MB / 463.3 MB, free: 0.8398 MB / 366.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 (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.005967/0.5251, allocations: 4.414 MB / 467.7 MB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004036/0.5291, allocations: 2.236 MB / 470 MB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5292, allocations: 1.75 kB / 470 MB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/0.5313, allocations: 1.202 MB / 471.2 MB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002833/0.5341, allocations: 483.4 kB / 471.6 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04107/0.5752, allocations: 29.37 MB / 0.4893 GB, free: 9.641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/0.5774, allocations: 2.334 MB / 0.4915 GB, free: 7.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00204/0.5794, allocations: 0.5132 MB / 0.492 GB, free: 6.754 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/0.5811, allocations: 1.167 MB / 0.4932 GB, free: 5.586 MB / 414.1 MB Notification: Performance of SimCode: time 1.373e-06/0.5811, allocations: 0 / 0.4932 GB, free: 5.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/0.9214, allocations: 46.19 MB / 0.5383 GB, free: 143.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.9216, allocations: 255.4 kB / 0.5385 GB, free: 143.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.597, allocations: 2.812 kB / 0.5385 GB, free: 143.1 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