Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009692/0.0009691, allocations: 95.94 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 181.6 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002399, allocations: 8.219 kB / 300.8 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09617, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01413/0.1103, allocations: 13.53 MB / 364.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009914/0.1203, allocations: 5.46 MB / 370.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00228/0.1226, allocations: 99.56 kB / 370.3 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002817/0.1254, allocations: 1.049 MB / 371.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004345/0.1298, allocations: 1.525 MB / 372.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001979/0.1318, allocations: 0.7056 MB / 373.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006242/0.138, allocations: 4.149 MB / 377.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004377/0.1424, allocations: 3.557 MB / 381.3 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.1454, allocations: 1.931 MB / 383.3 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003577/0.149, allocations: 2.323 MB / 385.6 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007585/0.1498, allocations: 324 kB / 385.9 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.1514, allocations: 0.5309 MB / 386.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001148/0.1526, allocations: 1.234 MB / 387.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.154, allocations: 1.136 MB / 388.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007969/0.162, allocations: 8.539 MB / 397.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1621, allocations: 0 / 397.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1621, allocations: 4 kB / 397.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002637/0.1623, allocations: 0 / 397.3 MB, free: 13.38 MB / 334.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.01503/0.1774, allocations: 5.528 MB / 402.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1774, allocations: 8.031 kB / 402.9 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001898/0.1793, allocations: 0.6748 MB / 403.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00529/0.1846, allocations: 1.059 MB / 404.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007311/0.192, allocations: 3.428 MB / 408 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/0.1923, allocations: 369.7 kB / 408.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001039/0.1933, allocations: 487.8 kB / 408.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/0.2054, allocations: 6.806 MB / 415.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.205e-05/0.2055, allocations: 7.938 kB / 415.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004518/0.206, allocations: 204 kB / 415.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/0.2062, allocations: 241.8 kB / 416.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/0.2168, allocations: 5.918 MB / 422 MB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2182/0.435, allocations: 20.97 MB / 443 MB, free: 50.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007684/0.4427, allocations: 9.938 MB / 452.9 MB, free: 41.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009925/0.4526, allocations: 5.431 MB / 458.4 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.432e-05/0.4527, allocations: 72.33 kB / 458.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=227): time 4.599e-06/0.4527, allocations: 0 / 458.4 MB, free: 38.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=234): time 0.0169/0.4697, allocations: 9.917 MB / 468.4 MB, free: 31.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.4697, allocations: 77.41 kB / 468.4 MB, free: 31.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004016/0.4738, allocations: 2.917 MB / 471.4 MB, free: 28.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003254/0.4741, allocations: 65.7 kB / 471.4 MB, free: 28.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.4752, allocations: 2.152 MB / 473.6 MB, free: 26.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006008/0.4758, allocations: 0.7842 MB / 474.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.4759, allocations: 52 kB / 474.4 MB, free: 25.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4761, allocations: 415.2 kB / 474.8 MB, free: 25.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001711/0.4778, allocations: 1.325 MB / 476.1 MB, free: 23.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.4796, allocations: 1.929 MB / 478.1 MB, free: 21.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001959/0.4816, allocations: 1.626 MB / 479.7 MB, free: 19.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.4816, allocations: 8 kB / 479.7 MB, free: 19.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=334) (initialization): time 0.005928/0.4876, allocations: 4.309 MB / 484 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.462e-05/0.4877, allocations: 12.5 kB / 484 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.065e-05/0.4877, allocations: 20 kB / 484 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002474/0.4902, allocations: 0.7809 MB / 484.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/0.4927, allocations: 0.5773 MB / 485.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008236/0.5009, allocations: 10.21 MB / 495.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002278/0.5032, allocations: 112.1 kB / 495.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002019/0.5034, allocations: 104 kB / 495.8 MB, free: 3.195 MB / 350.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.002602/0.506, allocations: 1.619 MB / 497.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.5066, allocations: 316.2 kB / 497.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006519/0.5131, allocations: 4.004 MB / 0.49 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/0.5132, allocations: 20 kB / 0.49 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.5132, allocations: 15.95 kB / 0.49 GB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.406e-05/0.5132, allocations: 11.95 kB / 0.49 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/0.5289, allocations: 8.693 MB / 0.4985 GB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.529, allocations: 3.984 kB / 0.4985 GB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.5307, allocations: 367.7 kB / 0.4989 GB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003083/0.5338, allocations: 0.9354 MB / 0.4998 GB, free: 3.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002205/0.534, allocations: 55.98 kB / 0.4999 GB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/0.5487, allocations: 14.63 MB / 0.5141 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.5487, allocations: 4.312 kB / 0.5141 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009442/0.5582, allocations: 6.015 MB / 0.52 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00185/0.5601, allocations: 0.6885 MB / 0.5207 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/0.5605, allocations: 55.98 kB / 0.5207 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.562, allocations: 135.9 kB / 0.5209 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004625/0.5624, allocations: 189.8 kB / 0.521 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/0.5626, allocations: 66.17 kB / 0.5211 GB, free: 12.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003135/0.5657, allocations: 1.999 MB / 0.5231 GB, free: 10.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5657, allocations: 0 / 0.5231 GB, free: 10.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003309/0.569, allocations: 0.944 MB / 0.524 GB, free: 9.305 MB / 398.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 {(2,100.0%) 26,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009549/0.5786, allocations: 7.179 MB / 0.531 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00608/0.5847, allocations: 3.985 MB / 0.5349 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.5847, allocations: 0 / 0.5349 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003989/0.5887, allocations: 2.686 MB / 0.5375 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003755/0.5925, allocations: 0.8496 MB / 0.5383 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05772/0.6503, allocations: 40.66 MB / 0.578 GB, free: 44 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1912/0.8415, allocations: 3.513 MB / 0.5815 GB, free: 140.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002893/0.8444, allocations: 0.7598 MB / 0.5822 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002457/0.8469, allocations: 1.824 MB / 0.584 GB, free: 140.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8469, allocations: 0 / 0.584 GB, free: 140.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1299/0.9768, allocations: 81.4 MB / 0.6635 GB, free: 75.13 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.977, allocations: 292.3 kB / 0.6638 GB, free: 74.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.195/5.172, allocations: 2.656 kB / 0.6638 GB, free: 74.77 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat