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.0009622/0.0009622, allocations: 96.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000986/0.000986, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002573/0.0002575, allocations: 8 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1223, allocations: 51.49 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01124/0.1336, allocations: 9.619 MB / 367.8 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008533/0.1422, allocations: 3.881 MB / 371.7 MB, free: 456 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001937/0.1442, allocations: 55.75 kB / 371.8 MB, free: 400 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2126/0.3569, allocations: 0.6841 MB / 372.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004119/0.361, allocations: 0.8551 MB / 373.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001647/0.3627, allocations: 342.9 kB / 373.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005601/0.3683, allocations: 2.232 MB / 375.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003051/0.3714, allocations: 1.835 MB / 377.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002918/0.3743, allocations: 1.081 MB / 378.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003716/0.3781, allocations: 1.401 MB / 380.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008852/0.379, allocations: 170.3 kB / 380.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002079/0.3811, allocations: 376.3 kB / 380.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3822, allocations: 0.8225 MB / 381.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001698/0.3839, allocations: 0.628 MB / 382.2 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00596/0.3899, allocations: 4.26 MB / 386.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3899, allocations: 0.9375 kB / 386.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.89e-06/0.39, allocations: 0 / 386.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002119/0.3902, allocations: 6.188 kB / 386.4 MB, free: 7.852 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.009648/0.3998, allocations: 3.189 MB / 389.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.3999, allocations: 9.469 kB / 389.6 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001785/0.4017, allocations: 389.3 kB / 390 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002705/0.4044, allocations: 475.2 kB / 390.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005046/0.4095, allocations: 1.866 MB / 392.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.4097, allocations: 210 kB / 392.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006947/0.4104, allocations: 263.5 kB / 392.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006979/0.4174, allocations: 3.494 MB / 396.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.105e-05/0.4175, allocations: 17.38 kB / 396.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/0.4177, allocations: 114 kB / 396.4 MB, free: 3.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.4179, allocations: 121.7 kB / 396.5 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005/0.4229, allocations: 2.979 MB / 399.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/0.4423, allocations: 11.14 MB / 410.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/0.4453, allocations: 2.29 MB / 412.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003187/0.4457, allocations: 212 kB / 413.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.4457, allocations: 43.88 kB / 413.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 3.186e-06/0.4457, allocations: 3.938 kB / 413.2 MB, free: 4.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.01758/0.4633, allocations: 7.77 MB / 421 MB, free: 12.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.4634, allocations: 72.67 kB / 421 MB, free: 12.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003494/0.4669, allocations: 1.948 MB / 423 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.4671, allocations: 53.45 kB / 423 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.4681, allocations: 1.313 MB / 424.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/0.4686, allocations: 0.5102 MB / 424.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.546e-05/0.4687, allocations: 32 kB / 424.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4689, allocations: 373.9 kB / 425.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.4705, allocations: 0.9032 MB / 426.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/0.4723, allocations: 1.374 MB / 427.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001696/0.474, allocations: 1.098 MB / 428.6 MB, free: 4.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.474, allocations: 4 kB / 428.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00529/0.4793, allocations: 2.974 MB / 431.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.4794, allocations: 12 kB / 431.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.4794, allocations: 16 kB / 431.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.4805, allocations: 437.8 kB / 432.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.4821, allocations: 455.2 kB / 432.5 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006054/0.4882, allocations: 5.484 MB / 438 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/0.4907, allocations: 135.8 kB / 438.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002992/0.491, allocations: 75.98 kB / 438.2 MB, free: 10.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (202): * Single equations (assignments): 197 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002162/0.4932, allocations: 0.8408 MB / 439 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006413/0.4939, allocations: 213.5 kB / 439.3 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00454/0.4984, allocations: 2.595 MB / 441.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.836e-05/0.4985, allocations: 24.03 kB / 441.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.4985, allocations: 7.984 kB / 441.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.4985, allocations: 11.97 kB / 441.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.5093, allocations: 5.626 MB / 447.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.5094, allocations: 4 kB / 447.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.5106, allocations: 300 kB / 447.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001358/0.512, allocations: 470 kB / 448.3 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.5121, allocations: 39.98 kB / 448.3 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00743/0.5195, allocations: 6.986 MB / 455.3 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.5196, allocations: 7.938 kB / 455.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007164/0.5267, allocations: 4.073 MB / 459.4 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/0.5289, allocations: 478.4 kB / 459.8 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.5292, allocations: 35.95 kB / 459.9 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.5304, allocations: 118.4 kB / 460 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002997/0.5307, allocations: 113.1 kB / 460.1 MB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.5309, allocations: 47.98 kB / 460.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.5332, allocations: 1.336 MB / 461.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5332, allocations: 0 / 461.5 MB, free: 2.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003313/0.5365, allocations: 0.5897 MB / 462.1 MB, free: 1.73 MB / 366.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 (128): * Single equations (assignments): 123 * 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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007611/0.5442, allocations: 5.535 MB / 467.6 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005234/0.5494, allocations: 2.604 MB / 470.2 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.5495, allocations: 0 / 470.2 MB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002995/0.5525, allocations: 1.602 MB / 471.8 MB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.5554, allocations: 470.9 kB / 472.3 MB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0429/0.5983, allocations: 27.25 MB / 499.5 MB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002392/0.6008, allocations: 2.19 MB / 0.49 GB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001921/0.6027, allocations: 473 kB / 0.4904 GB, free: 8.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/0.6043, allocations: 1.064 MB / 0.4914 GB, free: 7.07 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6043, allocations: 0 / 0.4914 GB, free: 7.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3351/0.9394, allocations: 49.55 MB / 0.5398 GB, free: 145.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.9396, allocations: 215.9 kB / 0.54 GB, free: 145.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.293/4.233, allocations: 0 / 0.54 GB, free: 145.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