Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.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_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001236/0.001236, allocations: 96.77 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.001629/0.001629, allocations: 208.8 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.519/1.519, allocations: 227.3 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002314/0.0002317, allocations: 4 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1046, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01062/0.1153, allocations: 10.42 MB / 368.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2097/0.3251, allocations: 4.132 MB / 372.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002564/0.3277, allocations: 67.41 kB / 372.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.3304, allocations: 0.8044 MB / 373.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004241/0.3347, allocations: 0.9921 MB / 374.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.336, allocations: 323.2 kB / 374.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006537/0.3425, allocations: 2.957 MB / 377.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003998/0.3466, allocations: 2.602 MB / 380.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0036/0.3502, allocations: 1.44 MB / 381.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00535/0.3555, allocations: 1.806 MB / 383.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009368/0.3565, allocations: 237.9 kB / 384 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.3585, allocations: 314.8 kB / 384.3 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001459/0.3599, allocations: 1.075 MB / 385.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001711/0.3616, allocations: 0.8379 MB / 386.2 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006712/0.3684, allocations: 5.957 MB / 392.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3684, allocations: 3.438 kB / 392.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3684, allocations: 1.281 kB / 392.2 MB, free: 5.391 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002239/0.3686, allocations: 0 / 392.2 MB, free: 5.391 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01091/0.3795, allocations: 3.997 MB / 396.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.3796, allocations: 9.188 kB / 396.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001858/0.3815, allocations: 0.5019 MB / 396.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002165/0.3836, allocations: 0.5343 MB / 397.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005776/0.3894, allocations: 2.423 MB / 399.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002308/0.3897, allocations: 265.2 kB / 399.9 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.3907, allocations: 354.1 kB / 400.2 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.4033, allocations: 4.987 MB / 405.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.4035, allocations: 7.938 kB / 405.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004883/0.4039, allocations: 146.8 kB / 405.4 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002113/0.4042, allocations: 193.3 kB / 405.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00906/0.4132, allocations: 4.287 MB / 409.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03001/0.4433, allocations: 14.93 MB / 424.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00485/0.4482, allocations: 4.193 MB / 429 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002954/0.4485, allocations: 134.3 kB / 429.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.4486, allocations: 56.56 kB / 429.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 3.897e-06/0.4486, allocations: 0 / 429.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02159/0.4702, allocations: 10.34 MB / 439.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.4703, allocations: 73.41 kB / 439.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.4746, allocations: 2.444 MB / 442 MB, free: 7.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003727/0.4749, allocations: 61.7 kB / 442.1 MB, free: 7.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.4761, allocations: 1.624 MB / 443.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007286/0.4769, allocations: 0.731 MB / 444.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.477, allocations: 48 kB / 444.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.4772, allocations: 394.6 kB / 444.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4793, allocations: 1.324 MB / 446.2 MB, free: 3.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002303/0.4816, allocations: 1.782 MB / 448 MB, free: 1.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002306/0.4839, allocations: 1.574 MB / 449.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.484, allocations: 4 kB / 449.5 MB, free: 15.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006898/0.4909, allocations: 4.1 MB / 453.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.4909, allocations: 8 kB / 453.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/0.491, allocations: 19.95 kB / 453.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/0.4938, allocations: 0.888 MB / 454.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/0.4959, allocations: 0.5266 MB / 455.1 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009798/0.5058, allocations: 8.938 MB / 464 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.5084, allocations: 127.8 kB / 464.1 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002284/0.5087, allocations: 88 kB / 464.2 MB, free: 0.5391 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002443/0.5111, allocations: 1.217 MB / 465.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005895/0.5117, allocations: 280.7 kB / 465.7 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006113/0.5179, allocations: 3.762 MB / 469.5 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.5179, allocations: 20 kB / 469.5 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/0.5179, allocations: 8 kB / 469.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.5179, allocations: 11.95 kB / 469.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.5326, allocations: 8.075 MB / 477.6 MB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.5326, allocations: 4 kB / 477.6 MB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.5343, allocations: 383.8 kB / 478 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003043/0.5373, allocations: 0.923 MB / 478.9 MB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/0.5376, allocations: 59.92 kB / 479 MB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01101/0.5486, allocations: 10.43 MB / 489.4 MB, free: 6.727 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.5487, allocations: 7.938 kB / 489.4 MB, free: 6.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009438/0.5581, allocations: 5.787 MB / 495.2 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002084/0.5602, allocations: 0.6381 MB / 495.8 MB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005589/0.5608, allocations: 51.98 kB / 495.9 MB, free: 88 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.5622, allocations: 131.9 kB / 496 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004457/0.5626, allocations: 181.7 kB / 496.2 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.5628, allocations: 59.98 kB / 496.2 MB, free: 15.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002695/0.5655, allocations: 1.68 MB / 497.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5655, allocations: 0 / 497.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00311/0.5686, allocations: 0.795 MB / 498.7 MB, free: 13.24 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * 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: 4 * 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: 4 {(2,100.0%) 26,(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.008975/0.5776, allocations: 7.12 MB / 0.494 GB, free: 6.004 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005958/0.5836, allocations: 3.927 MB / 0.4978 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.5836, allocations: 0 / 0.4978 GB, free: 1.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003762/0.5874, allocations: 2.493 MB / 0.5002 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003912/0.5913, allocations: 0.7354 MB / 0.501 GB, free: 14.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3015/0.8929, allocations: 32.93 MB / 0.5331 GB, free: 144.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003489/0.8964, allocations: 2.843 MB / 0.5359 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003014/0.8995, allocations: 0.6873 MB / 0.5366 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002059/0.9015, allocations: 1.407 MB / 0.5379 GB, free: 143.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.714e-06/0.9015, allocations: 0 / 0.5379 GB, free: 143.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1209/1.022, allocations: 70.15 MB / 0.6064 GB, free: 89.31 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/1.023, allocations: 271.8 kB / 0.6067 GB, free: 88.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.858/4.881, allocations: 0 / 0.6067 GB, free: 88.95 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat