Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008951/0.0008952, 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.0009663/0.0009665, 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.429/1.429, allocations: 227.4 MB / 246 MB, free: 12.01 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002425, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1094, 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_DOL): time 0.0107/0.1202, allocations: 10.49 MB / 368.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2506/0.3708, allocations: 3.755 MB / 372.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002572/0.3735, allocations: 55.94 kB / 372.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002941/0.3764, allocations: 0.7013 MB / 373.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004183/0.3806, allocations: 0.8414 MB / 374.2 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001687/0.3823, allocations: 341.6 kB / 374.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006655/0.389, allocations: 3.506 MB / 378 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003761/0.3928, allocations: 1.835 MB / 379.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003408/0.3962, allocations: 1.151 MB / 381 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004548/0.4008, allocations: 1.589 MB / 382.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001339/0.4022, allocations: 171.1 kB / 382.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002682/0.4049, allocations: 380.1 kB / 383.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001666/0.4066, allocations: 0.8596 MB / 384 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002011/0.4086, allocations: 0.6265 MB / 384.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007527/0.4161, allocations: 4.288 MB / 388.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.4162, allocations: 0 / 388.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.4162, allocations: 0 / 388.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002359/0.4165, allocations: 1.031 kB / 388.9 MB, free: 5.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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01148/0.4279, allocations: 3.195 MB / 392.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/0.428, allocations: 8.25 kB / 392.1 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001881/0.4299, allocations: 390.8 kB / 392.5 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.4321, allocations: 475.5 kB / 392.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004938/0.4371, allocations: 1.847 MB / 394.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/0.4374, allocations: 205.5 kB / 395 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006246/0.4381, allocations: 271.5 kB / 395.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007234/0.4453, allocations: 3.525 MB / 398.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.898e-05/0.4454, allocations: 2.688 kB / 398.8 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002573/0.4457, allocations: 112.7 kB / 398.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001559/0.4458, allocations: 123.7 kB / 399 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006052/0.4519, allocations: 2.981 MB / 402 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02615/0.4781, allocations: 11.15 MB / 413.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003339/0.4814, allocations: 2.288 MB / 415.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002354/0.4838, allocations: 1.212 MB / 416.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004048/0.4843, allocations: 204.2 kB / 416.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.458e-05/0.4843, allocations: 47.88 kB / 416.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.958e-06/0.4844, allocations: 0 / 416.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01904/0.5034, allocations: 7.647 MB / 424.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.5035, allocations: 68.72 kB / 424.6 MB, free: 7.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004428/0.508, allocations: 1.971 MB / 426.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.5082, allocations: 49.7 kB / 426.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.5094, allocations: 1.313 MB / 427.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000641/0.5101, allocations: 0.5034 MB / 428.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.5102, allocations: 36 kB / 428.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.5105, allocations: 373.9 kB / 428.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.5121, allocations: 0.8979 MB / 429.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.5141, allocations: 1.381 MB / 431.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.516, allocations: 1.096 MB / 432.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.691e-05/0.5161, allocations: 8 kB / 432.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005789/0.5219, allocations: 3.001 MB / 435.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.442e-05/0.5219, allocations: 15.98 kB / 435.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/0.522, allocations: 12 kB / 435.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.5232, allocations: 464.8 kB / 435.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.5249, allocations: 443.3 kB / 436.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006975/0.5319, allocations: 5.59 MB / 441.7 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002577/0.5345, allocations: 135.7 kB / 441.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003468/0.5348, allocations: 79.92 kB / 441.9 MB, free: 5.551 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * 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%) 16,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00255/0.5374, allocations: 0.8478 MB / 442.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009125/0.5383, allocations: 208 kB / 443 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005453/0.5438, allocations: 2.619 MB / 445.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/0.5438, allocations: 20 kB / 445.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.5439, allocations: 4 kB / 445.6 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.921e-05/0.5439, allocations: 7.969 kB / 445.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01237/0.5563, allocations: 5.669 MB / 451.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.415e-05/0.5563, allocations: 0 / 451.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.5576, allocations: 298.4 kB / 451.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.559, allocations: 0.4902 MB / 452.1 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.5592, allocations: 39.98 kB / 452.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008473/0.5677, allocations: 7.047 MB / 459.2 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/0.5677, allocations: 8.031 kB / 459.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007578/0.5753, allocations: 3.871 MB / 463 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/0.577, allocations: 482.4 kB / 463.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009416/0.578, allocations: 43.92 kB / 463.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/0.5799, allocations: 103.9 kB / 463.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.5802, allocations: 121.1 kB / 463.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001494/0.5804, allocations: 47.98 kB / 463.8 MB, free: 15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003265/0.5837, allocations: 1.34 MB / 465.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5837, allocations: 4 kB / 465.2 MB, free: 13.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003688/0.5874, allocations: 0.5859 MB / 465.8 MB, free: 13.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * 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%) 16,(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.008134/0.5955, allocations: 4.512 MB / 470.3 MB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005259/0.6008, allocations: 2.62 MB / 472.9 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.6009, allocations: 0 / 472.9 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003206/0.6041, allocations: 1.622 MB / 474.5 MB, free: 4.113 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004469/0.6086, allocations: 486.8 kB / 475 MB, free: 3.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04435/0.653, allocations: 17.7 MB / 492.7 MB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002799/0.6558, allocations: 2.132 MB / 494.8 MB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002107/0.6579, allocations: 473 kB / 495.3 MB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002182/0.6601, allocations: 1.062 MB / 496.3 MB, free: 13.09 MB / 414.1 MB Notification: Performance of SimCode: time 1.713e-06/0.6602, allocations: 0 / 496.3 MB, free: 13.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2762/0.9364, allocations: 49.59 MB / 0.5331 GB, free: 139.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.9366, allocations: 226 kB / 0.5334 GB, free: 139.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.991/3.928, allocations: 0 / 0.5334 GB, free: 139.2 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat