Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.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.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_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.001141/0.001141, allocations: 95.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 205.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000241/0.0002411, allocations: 4 kB / 306.7 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 51.49 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01255/0.1142, allocations: 10.45 MB / 368.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2069/0.3211, allocations: 4.14 MB / 372.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.3238, allocations: 65.62 kB / 372.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.3266, allocations: 0.8056 MB / 373.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003681/0.3303, allocations: 0.9907 MB / 374.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.3315, allocations: 326.9 kB / 375 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005726/0.3372, allocations: 2.953 MB / 377.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003651/0.3409, allocations: 2.595 MB / 380.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003413/0.3443, allocations: 1.446 MB / 382 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003625/0.348, allocations: 1.804 MB / 383.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007512/0.3487, allocations: 238.4 kB / 384 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001472/0.3502, allocations: 309.9 kB / 384.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001509/0.3517, allocations: 1.075 MB / 385.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002336/0.3541, allocations: 0.8419 MB / 386.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007676/0.3618, allocations: 5.959 MB / 392.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3618, allocations: 0 / 392.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3618, allocations: 0 / 392.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002463/0.3621, allocations: 1.062 kB / 392.2 MB, free: 5.375 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.01275/0.3748, allocations: 3.994 MB / 396.2 MB, free: 3.094 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.023e-05/0.3749, allocations: 13.78 kB / 396.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00191/0.3768, allocations: 0.5031 MB / 396.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002223/0.3791, allocations: 0.5334 MB / 397.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00626/0.3853, allocations: 2.422 MB / 399.6 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.3856, allocations: 269.1 kB / 399.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009451/0.3865, allocations: 354.1 kB / 400.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.3977, allocations: 4.988 MB / 405.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.414e-05/0.3978, allocations: 8 kB / 405.3 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000375/0.3982, allocations: 142.9 kB / 405.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.3984, allocations: 183.1 kB / 405.6 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009436/0.4079, allocations: 4.291 MB / 409.9 MB, free: 8.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03247/0.4404, allocations: 14.94 MB / 424.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005469/0.4459, allocations: 4.191 MB / 429 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003397/0.4463, allocations: 135.9 kB / 429.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.366e-05/0.4464, allocations: 56.56 kB / 429.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.028e-06/0.4464, allocations: 0 / 429.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02248/0.4689, allocations: 10.32 MB / 439.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.469, allocations: 73.41 kB / 439.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004203/0.4732, allocations: 2.451 MB / 442 MB, free: 7.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003781/0.4736, allocations: 67.78 kB / 442.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001352/0.4749, allocations: 1.615 MB / 443.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008008/0.4757, allocations: 0.7316 MB / 444.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.4759, allocations: 48 kB / 444.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002282/0.4761, allocations: 398.6 kB / 444.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/0.4783, allocations: 1.308 MB / 446.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002561/0.4809, allocations: 1.794 MB / 448 MB, free: 1.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.4833, allocations: 1.575 MB / 449.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.407e-06/0.4833, allocations: 4 kB / 449.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007449/0.4908, allocations: 4.102 MB / 453.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.4909, allocations: 12 kB / 453.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/0.4909, allocations: 12 kB / 453.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/0.4939, allocations: 0.884 MB / 454.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00252/0.4965, allocations: 0.5304 MB / 455.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.5079, allocations: 8.94 MB / 464 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004543/0.5125, allocations: 127.8 kB / 464.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006538/0.5132, allocations: 90.19 kB / 464.3 MB, free: 452 kB / 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.00519/0.5184, allocations: 1.212 MB / 465.5 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001546/0.5199, allocations: 272.7 kB / 465.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01078/0.5308, allocations: 3.766 MB / 469.5 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.166e-05/0.5309, allocations: 23.95 kB / 469.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.571e-05/0.5309, allocations: 11.94 kB / 469.5 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.184e-05/0.5309, allocations: 7.969 kB / 469.5 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02607/0.557, allocations: 8.076 MB / 477.6 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.608e-05/0.5571, allocations: 0 / 477.6 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/0.5596, allocations: 383.4 kB / 478 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004583/0.5642, allocations: 0.9361 MB / 478.9 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005532/0.5648, allocations: 51.98 kB / 479 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/0.5824, allocations: 10.43 MB / 489.4 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/0.5825, allocations: 11.94 kB / 489.4 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/0.598, allocations: 5.782 MB / 495.2 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003695/0.6018, allocations: 0.6382 MB / 495.8 MB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001571/0.6034, allocations: 48.05 kB / 495.9 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003055/0.6065, allocations: 130.1 kB / 496 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007005/0.6072, allocations: 185.7 kB / 496.2 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/0.6075, allocations: 55.98 kB / 496.3 MB, free: 15.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005234/0.6127, allocations: 1.68 MB / 497.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6128, allocations: 0 / 497.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00623/0.619, allocations: 0.793 MB / 498.7 MB, free: 13.14 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.01593/0.635, allocations: 7.125 MB / 0.494 GB, free: 5.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01059/0.6456, allocations: 3.931 MB / 0.4978 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.882e-05/0.6457, allocations: 0 / 0.4978 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007042/0.6528, allocations: 2.49 MB / 0.5003 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008364/0.6612, allocations: 0.7353 MB / 0.501 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3041/0.9653, allocations: 32.92 MB / 0.5331 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002867/0.9683, allocations: 2.839 MB / 0.5359 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002507/0.9708, allocations: 0.6888 MB / 0.5366 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/0.9725, allocations: 1.413 MB / 0.538 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 2.034e-06/0.9725, allocations: 0 / 0.538 GB, free: 143.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/1.08, allocations: 70.15 MB / 0.6065 GB, free: 89.33 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/1.08, allocations: 265.9 kB / 0.6067 GB, free: 88.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.064/5.145, allocations: 0 / 0.6067 GB, free: 88.96 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat