Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000856/0.000856, allocations: 98.42 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 192.5 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002349/0.000235, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1115, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0117/0.1233, allocations: 10.18 MB / 368.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007638/0.131, allocations: 3.707 MB / 372.2 MB, free: 24 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.2493/0.3803, allocations: 51.08 kB / 372.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003433/0.3838, allocations: 0.6833 MB / 372.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004484/0.3883, allocations: 0.8049 MB / 373.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.39, allocations: 329.7 kB / 374.1 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007321/0.3973, allocations: 3.257 MB / 377.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003601/0.4009, allocations: 1.725 MB / 379.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003243/0.4042, allocations: 1.079 MB / 380.1 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004327/0.4086, allocations: 1.478 MB / 381.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008473/0.4094, allocations: 162 kB / 381.8 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002022/0.4115, allocations: 371.8 kB / 382.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001271/0.4128, allocations: 0.7971 MB / 382.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001721/0.4145, allocations: 0.5871 MB / 383.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00645/0.4209, allocations: 4.036 MB / 387.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.318e-05/0.421, allocations: 0 / 387.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.101e-06/0.421, allocations: 1.531 kB / 387.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.4213, allocations: 0 / 387.6 MB, free: 6.504 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.01113/0.4324, allocations: 2.997 MB / 390.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.4325, allocations: 8.938 kB / 390.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001658/0.4342, allocations: 365.2 kB / 390.9 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002354/0.4365, allocations: 455.8 kB / 391.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.4401, allocations: 1.732 MB / 393.1 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.4404, allocations: 196.1 kB / 393.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004197/0.4408, allocations: 254.2 kB / 393.5 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006471/0.4473, allocations: 3.244 MB / 396.8 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.165e-05/0.4474, allocations: 11.12 kB / 396.8 MB, free: 2.285 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002218/0.4476, allocations: 99.95 kB / 396.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.4477, allocations: 120.9 kB / 397 MB, free: 2.188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004731/0.4525, allocations: 2.707 MB / 399.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0193/0.4718, allocations: 10.43 MB / 410.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.4742, allocations: 1.783 MB / 411.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.476, allocations: 1.078 MB / 413 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003326/0.4763, allocations: 207.5 kB / 413.2 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.4764, allocations: 43.56 kB / 413.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 2.865e-06/0.4764, allocations: 0 / 413.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01893/0.4953, allocations: 7.743 MB / 421 MB, free: 11.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.4954, allocations: 72.7 kB / 421.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/0.4989, allocations: 1.864 MB / 422.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001589/0.4991, allocations: 49.7 kB / 423 MB, free: 9.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.5001, allocations: 1.24 MB / 424.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004906/0.5006, allocations: 468 kB / 424.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.313e-05/0.5007, allocations: 33.02 kB / 424.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.5009, allocations: 377.8 kB / 425.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.5023, allocations: 0.8237 MB / 425.9 MB, free: 6.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.504, allocations: 1.321 MB / 427.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.5057, allocations: 1.031 MB / 428.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.5057, allocations: 4 kB / 428.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005023/0.5107, allocations: 2.822 MB / 431.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.5108, allocations: 12 kB / 431.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/0.5108, allocations: 16 kB / 431.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.5118, allocations: 418.5 kB / 431.5 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.5133, allocations: 411.3 kB / 431.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006373/0.5197, allocations: 5.304 MB / 437.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002308/0.522, allocations: 131.8 kB / 437.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.5223, allocations: 79.5 kB / 437.4 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 12,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002193/0.5245, allocations: 0.7939 MB / 438.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007065/0.5252, allocations: 205.5 kB / 438.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004597/0.5298, allocations: 2.422 MB / 440.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-05/0.5299, allocations: 18.3 kB / 440.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.5299, allocations: 4 kB / 440.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.5299, allocations: 7.969 kB / 440.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.5399, allocations: 5.31 MB / 446.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/0.5399, allocations: 4.562 kB / 446.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.541, allocations: 270.5 kB / 446.4 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.5423, allocations: 454 kB / 446.9 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.5424, allocations: 35.98 kB / 446.9 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007039/0.5494, allocations: 6.722 MB / 453.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.5495, allocations: 8.031 kB / 453.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006644/0.5561, allocations: 3.621 MB / 457.3 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001648/0.5578, allocations: 458.5 kB / 457.7 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/0.5582, allocations: 35.95 kB / 457.8 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.5593, allocations: 111.9 kB / 457.9 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.5596, allocations: 108.7 kB / 458 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5597, allocations: 44 kB / 458 MB, free: 4.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002543/0.5623, allocations: 1.279 MB / 459.3 MB, free: 3.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.42e-07/0.5623, allocations: 11.94 kB / 459.3 MB, free: 3.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002823/0.5651, allocations: 0.543 MB / 459.8 MB, free: 2.988 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006831/0.572, allocations: 4.244 MB / 464.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004739/0.5768, allocations: 2.429 MB / 466.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/0.5768, allocations: 4 kB / 466.5 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00285/0.5797, allocations: 1.524 MB / 468 MB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003237/0.5829, allocations: 441.6 kB / 468.5 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03286/0.6158, allocations: 16.38 MB / 484.9 MB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/0.6179, allocations: 2.01 MB / 486.9 MB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001752/0.6196, allocations: 431.7 kB / 487.3 MB, free: 6.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/0.6209, allocations: 0.9952 MB / 488.3 MB, free: 5.238 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.621, allocations: 0 / 488.3 MB, free: 5.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07977/0.7007, allocations: 45.49 MB / 0.5213 GB, free: 8.191 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.701, allocations: 240.5 kB / 0.5215 GB, free: 7.945 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.135/3.836, allocations: 3.938 kB / 0.5215 GB, free: 7.941 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat