Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.0009419/0.000942, allocations: 96.23 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.000984/0.0009842, allocations: 205.4 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.325/1.325, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002436, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1103, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2081/0.3185, allocations: 14.02 MB / 372.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01061/0.3291, allocations: 5.678 MB / 377.9 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00264/0.3318, allocations: 97.53 kB / 378 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003482/0.3353, allocations: 1.078 MB / 379.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005358/0.3407, allocations: 1.558 MB / 380.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.343, allocations: 0.7224 MB / 381.4 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007579/0.3506, allocations: 4.235 MB / 385.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004655/0.3553, allocations: 3.558 MB / 389.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003837/0.3592, allocations: 1.944 MB / 391.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004349/0.3635, allocations: 2.33 MB / 393.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000823/0.3644, allocations: 323.5 kB / 393.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002358/0.3667, allocations: 0.5616 MB / 394.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009361/0.3677, allocations: 1.236 MB / 395.5 MB, free: 4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.3694, allocations: 1.139 MB / 396.7 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007272/0.3767, allocations: 8.57 MB / 405.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.3767, allocations: 0 / 405.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3767, allocations: 2.812 kB / 405.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002314/0.3769, allocations: 0 / 405.3 MB, free: 12.85 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01361/0.3906, allocations: 5.554 MB / 410.8 MB, free: 7.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3906, allocations: 8.031 kB / 410.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001284/0.3919, allocations: 0.6826 MB / 411.5 MB, free: 7.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004776/0.3967, allocations: 1.098 MB / 412.6 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00639/0.4031, allocations: 3.45 MB / 416.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002677/0.4034, allocations: 361.8 kB / 416.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008235/0.4042, allocations: 483.9 kB / 416.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/0.4178, allocations: 6.814 MB / 423.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.418, allocations: 11.83 kB / 423.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004884/0.4185, allocations: 200 kB / 423.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002448/0.4187, allocations: 241.8 kB / 424.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.4296, allocations: 5.922 MB / 430.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/0.4707, allocations: 21.06 MB / 451.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/0.4817, allocations: 9.941 MB / 461.1 MB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01634/0.4981, allocations: 5.674 MB / 466.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.37e-05/0.4982, allocations: 60.5 kB / 466.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=227): time 5.661e-06/0.4982, allocations: 0 / 466.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=234): time 0.02627/0.5245, allocations: 9.934 MB / 476.7 MB, free: 3.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.5246, allocations: 81.34 kB / 476.8 MB, free: 3.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00637/0.531, allocations: 2.934 MB / 479.7 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004586/0.5315, allocations: 73.7 kB / 479.8 MB, free: 0.6211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001901/0.5334, allocations: 2.157 MB / 482 MB, free: 14.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.5347, allocations: 0.7817 MB / 482.8 MB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/0.535, allocations: 56 kB / 482.8 MB, free: 13.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003116/0.5353, allocations: 411.2 kB / 483.2 MB, free: 13.19 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003228/0.5385, allocations: 1.325 MB / 484.5 MB, free: 11.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003118/0.5417, allocations: 1.929 MB / 486.5 MB, free: 9.676 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004701/0.5464, allocations: 1.63 MB / 488.1 MB, free: 8.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.546e-05/0.5465, allocations: 12 kB / 488.1 MB, free: 8.012 MB / 398.1 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.01374/0.5602, allocations: 4.307 MB / 492.4 MB, free: 3.617 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.965e-05/0.5603, allocations: 12 kB / 492.4 MB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.662e-05/0.5603, allocations: 20 kB / 492.4 MB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004176/0.5645, allocations: 0.7713 MB / 493.2 MB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002478/0.567, allocations: 0.5772 MB / 493.8 MB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/0.5789, allocations: 10.21 MB / 0.4922 GB, free: 7.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002876/0.5818, allocations: 111.8 kB / 0.4923 GB, free: 7.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004966/0.5823, allocations: 104.2 kB / 0.4924 GB, free: 7.262 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (284): * Single equations (assignments): 279 * 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 {(1,100.0%) 8,(1,100.0%) 1,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003873/0.5862, allocations: 1.616 MB / 0.494 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.5872, allocations: 320.2 kB / 0.4943 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007905/0.5952, allocations: 3.996 MB / 0.4982 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.5952, allocations: 31.95 kB / 0.4982 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-05/0.5953, allocations: 8 kB / 0.4982 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.814e-05/0.5953, allocations: 11.95 kB / 0.4982 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01836/0.6137, allocations: 8.699 MB / 0.5067 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.6137, allocations: 0 / 0.5067 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/0.6154, allocations: 367.8 kB / 0.5071 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003251/0.6187, allocations: 0.9415 MB / 0.508 GB, free: 7.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/0.619, allocations: 55.98 kB / 0.5081 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/0.6354, allocations: 14.67 MB / 0.5224 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.6354, allocations: 7.938 kB / 0.5224 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01093/0.6464, allocations: 6.009 MB / 0.5283 GB, free: 1.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/0.6487, allocations: 0.7001 MB / 0.5289 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.6498, allocations: 55.98 kB / 0.529 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002144/0.652, allocations: 123.9 kB / 0.5291 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005529/0.6526, allocations: 185.7 kB / 0.5293 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002393/0.6528, allocations: 63.98 kB / 0.5293 GB, free: 196 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2166/0.8694, allocations: 2.011 MB / 0.5313 GB, free: 138.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.8695, allocations: 0 / 0.5313 GB, free: 138.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005531/0.875, allocations: 0.9519 MB / 0.5322 GB, free: 138.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (164): * Single equations (assignments): 158 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01034/0.8854, allocations: 7.173 MB / 0.5392 GB, free: 136.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006625/0.8921, allocations: 3.982 MB / 0.5431 GB, free: 134.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.8921, allocations: 1.438 kB / 0.5431 GB, free: 134.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004401/0.8965, allocations: 2.714 MB / 0.5458 GB, free: 132.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00497/0.9015, allocations: 0.8515 MB / 0.5466 GB, free: 132.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05972/0.9612, allocations: 40.81 MB / 0.5865 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004843/0.9661, allocations: 3.524 MB / 0.5899 GB, free: 98.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00334/0.9695, allocations: 0.7608 MB / 0.5907 GB, free: 97.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002887/0.9724, allocations: 1.823 MB / 0.5924 GB, free: 95.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/0.9724, allocations: 0 / 0.5924 GB, free: 95.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2641/1.237, allocations: 81.97 MB / 0.6725 GB, free: 14.62 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/1.237, allocations: 298 kB / 0.6728 GB, free: 14.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.91/5.147, allocations: 0 / 0.6728 GB, free: 14.25 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat