Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001037/0.001037, allocations: 102.3 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.001239/0.001239, allocations: 205.7 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: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003259/0.0003262, allocations: 12 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1172, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.008147/0.1254, allocations: 7.252 MB / 365.5 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005076/0.1305, allocations: 2.803 MB / 368.3 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008827/0.1314, allocations: 43.75 kB / 368.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.1327, allocations: 0.5054 MB / 368.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001651/0.1344, allocations: 0.6192 MB / 369.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005299/0.1349, allocations: 203.7 kB / 369.6 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002081/0.137, allocations: 1.523 MB / 371.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2115/0.3485, allocations: 1.225 MB / 372.4 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.3506, allocations: 0.7378 MB / 373.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001649/0.3523, allocations: 0.9615 MB / 374.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003034/0.3526, allocations: 118.4 kB / 374.2 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006343/0.3532, allocations: 191.8 kB / 374.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008094/0.354, allocations: 0.5768 MB / 375 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006121/0.3547, allocations: 450.6 kB / 375.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004195/0.3589, allocations: 2.933 MB / 378.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3589, allocations: 0 / 378.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3589, allocations: 2.25 kB / 378.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001179/0.359, allocations: 0 / 378.3 MB, free: 9.219 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.005989/0.365, allocations: 2.222 MB / 380.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3651, allocations: 11.41 kB / 380.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006147/0.3657, allocations: 268.5 kB / 380.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.3668, allocations: 302.1 kB / 381.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002538/0.3693, allocations: 1.325 MB / 382.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.3694, allocations: 134.1 kB / 382.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003062/0.3697, allocations: 182.4 kB / 382.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004618/0.3744, allocations: 2.383 MB / 385.1 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.437e-05/0.3744, allocations: 11.08 kB / 385.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/0.3746, allocations: 74.28 kB / 385.2 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.3748, allocations: 82.97 kB / 385.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.3784, allocations: 2.021 MB / 387.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01167/0.3901, allocations: 7.445 MB / 394.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.392, allocations: 1.283 MB / 396.1 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002328/0.3923, allocations: 123.8 kB / 396.2 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.3923, allocations: 41.06 kB / 396.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.946e-06/0.3923, allocations: 0.6875 kB / 396.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.009003/0.4013, allocations: 4.947 MB / 401.2 MB, free: 14.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.4014, allocations: 67.81 kB / 401.2 MB, free: 14.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.4036, allocations: 1.332 MB / 402.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.4038, allocations: 45.7 kB / 402.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006945/0.4045, allocations: 0.8997 MB / 403.5 MB, free: 12.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.4048, allocations: 353.2 kB / 403.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.739e-05/0.4049, allocations: 20 kB / 403.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.405, allocations: 353.9 kB / 404.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.4061, allocations: 0.6506 MB / 404.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.4073, allocations: 0.9297 MB / 405.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.4085, allocations: 0.7681 MB / 406.6 MB, free: 9.473 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.4085, allocations: 4 kB / 406.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004313/0.4128, allocations: 2.433 MB / 409 MB, free: 7.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.4129, allocations: 8 kB / 409 MB, free: 7.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.4129, allocations: 8 kB / 409 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001909/0.4148, allocations: 0.7361 MB / 409.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009024/0.4157, allocations: 231.6 kB / 410 MB, free: 6.031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/0.4274, allocations: 8.535 MB / 418.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.4295, allocations: 88.17 kB / 418.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4296, allocations: 51.97 kB / 418.7 MB, free: 13.1 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (111): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001537/0.4312, allocations: 0.6223 MB / 419.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004281/0.4316, allocations: 146.2 kB / 419.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005421/0.437, allocations: 1.925 MB / 421.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.4371, allocations: 11.98 kB / 421.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.4371, allocations: 4 kB / 421.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.4371, allocations: 3.984 kB / 421.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.4495, allocations: 3.989 MB / 425.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.4496, allocations: 4 kB / 425.4 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.4508, allocations: 182.4 kB / 425.5 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.4527, allocations: 467.1 kB / 426 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.4528, allocations: 23.98 kB / 426 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.4632, allocations: 6.27 MB / 432.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.4632, allocations: 0 / 432.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00768/0.4709, allocations: 2.909 MB / 435.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.4725, allocations: 359.2 kB / 435.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004279/0.4729, allocations: 23.98 kB / 435.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/0.4743, allocations: 75.92 kB / 435.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.4747, allocations: 84.78 kB / 435.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.4749, allocations: 31.98 kB / 435.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002448/0.4773, allocations: 0.9154 MB / 436.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4773, allocations: 0 / 436.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002747/0.4801, allocations: 432 kB / 437.1 MB, free: 10.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.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 (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00826/0.4884, allocations: 3.973 MB / 441.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005831/0.4943, allocations: 2.042 MB / 443.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.4943, allocations: 1.875 kB / 443.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003517/0.4978, allocations: 1.359 MB / 444.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.5006, allocations: 347.4 kB / 444.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04542/0.5461, allocations: 18.14 MB / 462.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/0.5492, allocations: 1.731 MB / 464.7 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001979/0.5512, allocations: 315.9 kB / 465 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001853/0.5531, allocations: 0.7023 MB / 465.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5531, allocations: 0 / 465.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06373/0.6168, allocations: 36.59 MB / 0.4905 GB, free: 8.527 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.6171, allocations: 227.3 kB / 0.4907 GB, free: 8.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.173, allocations: 0 / 0.4907 GB, free: 8.285 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat