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.001102/0.001102, allocations: 92.72 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.001293/0.001294, allocations: 198.8 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.474/1.474, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002447, allocations: 8 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.009579/0.124, allocations: 9.334 MB / 367.5 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007184/0.1312, allocations: 3.81 MB / 371.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001809/0.133, allocations: 51.75 kB / 371.4 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2314/0.3645, allocations: 0.6645 MB / 372.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003879/0.3684, allocations: 0.8306 MB / 372.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.3695, allocations: 328.2 kB / 373.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004096/0.3736, allocations: 2.096 MB / 375.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002811/0.3765, allocations: 1.714 MB / 377 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002292/0.3788, allocations: 1.01 MB / 378 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.3813, allocations: 1.321 MB / 379.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.3817, allocations: 159.6 kB / 379.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.3829, allocations: 369.1 kB / 379.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009234/0.3839, allocations: 0.7636 MB / 380.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.385, allocations: 0.5833 MB / 381.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004885/0.3899, allocations: 4.009 MB / 385.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.3899, allocations: 0 / 385.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3899, allocations: 5.156 kB / 385.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000118/0.39, allocations: 0 / 385.2 MB, free: 8.344 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.007719/0.3978, allocations: 2.993 MB / 388.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.3978, allocations: 10.09 kB / 388.2 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007236/0.3985, allocations: 364.8 kB / 388.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.4004, allocations: 455.6 kB / 389 MB, free: 6.258 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003803/0.4042, allocations: 1.745 MB / 390.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.4044, allocations: 198.5 kB / 391 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004021/0.4048, allocations: 252.5 kB / 391.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006111/0.411, allocations: 3.226 MB / 394.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.344e-05/0.4111, allocations: 6.281 kB / 394.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/0.4113, allocations: 105.4 kB / 394.6 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001764/0.4115, allocations: 112.3 kB / 394.7 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004943/0.4164, allocations: 2.712 MB / 397.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/0.4362, allocations: 10.42 MB / 407.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.4387, allocations: 1.786 MB / 409.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003168/0.4391, allocations: 205.8 kB / 409.8 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.4391, allocations: 51.56 kB / 409.8 MB, free: 7.461 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.526e-06/0.4391, allocations: 3.938 kB / 409.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.0202/0.4593, allocations: 7.865 MB / 417.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.4594, allocations: 68.66 kB / 417.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003382/0.4628, allocations: 1.849 MB / 419.6 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.463, allocations: 45.7 kB / 419.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.4641, allocations: 1.25 MB / 420.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004631/0.4645, allocations: 468.3 kB / 421.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.64e-05/0.4646, allocations: 32 kB / 421.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.4649, allocations: 369.9 kB / 421.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.4663, allocations: 0.8276 MB / 422.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.4681, allocations: 1.322 MB / 423.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.4697, allocations: 1.021 MB / 424.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.4697, allocations: 4 kB / 424.9 MB, free: 7.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005252/0.475, allocations: 2.786 MB / 427.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/0.475, allocations: 12 kB / 427.7 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.4751, allocations: 16.28 kB / 427.8 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.4761, allocations: 402.2 kB / 428.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.4776, allocations: 423.3 kB / 428.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005977/0.4836, allocations: 5.201 MB / 433.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002534/0.4862, allocations: 139.7 kB / 433.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.4864, allocations: 75.98 kB / 434 MB, free: 14.62 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 (190): * Single equations (assignments): 185 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.4884, allocations: 0.7862 MB / 434.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/0.489, allocations: 193.7 kB / 435 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004185/0.4932, allocations: 2.402 MB / 437.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.35e-05/0.4932, allocations: 19.98 kB / 437.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4932, allocations: 8 kB / 437.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.4933, allocations: 10.92 kB / 437.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.5044, allocations: 5.271 MB / 442.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/0.5045, allocations: 4 kB / 442.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.5057, allocations: 268 kB / 442.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.507, allocations: 432.9 kB / 443.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.5071, allocations: 39.98 kB / 443.4 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007227/0.5143, allocations: 6.698 MB / 450.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.5143, allocations: 7.938 kB / 450.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006744/0.5211, allocations: 3.91 MB / 454 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.5229, allocations: 446.6 kB / 454.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/0.5233, allocations: 35.98 kB / 454.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.5245, allocations: 115.4 kB / 454.6 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/0.5249, allocations: 116.7 kB / 454.7 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.525, allocations: 40 kB / 454.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002282/0.5273, allocations: 1.271 MB / 456 MB, free: 7.758 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5273, allocations: 0 / 456 MB, free: 7.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002465/0.5297, allocations: 0.5469 MB / 456.6 MB, free: 7.211 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 (118): * Single equations (assignments): 113 * 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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007401/0.5371, allocations: 5.676 MB / 462.2 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004331/0.5415, allocations: 2.422 MB / 464.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5415, allocations: 4 kB / 464.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002533/0.5441, allocations: 1.505 MB / 466.2 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002674/0.5468, allocations: 422.4 kB / 466.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03914/0.5859, allocations: 26.56 MB / 493.1 MB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001915/0.5879, allocations: 2.057 MB / 495.2 MB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001689/0.5896, allocations: 445.9 kB / 495.6 MB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.591, allocations: 0.9913 MB / 496.6 MB, free: 13.69 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.591, allocations: 3.938 kB / 496.6 MB, free: 13.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08077/0.6718, allocations: 45.42 MB / 0.5293 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.672, allocations: 232.2 kB / 0.5296 GB, free: 492 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.026/3.698, allocations: 0 / 0.5296 GB, free: 492 kB / 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