Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 91.55 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.81e-05, allocations: 4 kB / 344.9 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 50.42 MB / 395.4 MB, free: 0.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7864/0.9165, allocations: 167.1 MB / 0.5493 GB, free: 125.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003874/0.917, allocations: 102.6 kB / 0.5494 GB, free: 125.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387/4.304, allocations: 0.8622 GB / 1.412 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.104e-06/4.304, allocations: 0 / 1.412 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001511/4.305, allocations: 481.7 kB / 1.412 GB, free: 32 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.07209/4.378, allocations: 19.5 MB / 1.431 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/4.378, allocations: 12.03 kB / 1.431 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01492/4.393, allocations: 2.949 MB / 1.434 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05668/4.449, allocations: 9.678 MB / 1.443 GB, free: 1.004 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5446/4.994, allocations: 16.2 MB / 1.459 GB, free: 26.03 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002614/4.997, allocations: 1.51 MB / 1.461 GB, free: 25.99 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01107/5.008, allocations: 2.005 MB / 1.463 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1073/5.115, allocations: 33.8 MB / 1.496 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001415/5.116, allocations: 27.42 kB / 1.496 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01001/5.127, allocations: 0.8546 MB / 1.497 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002287/5.129, allocations: 1.483 MB / 1.498 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.078/5.207, allocations: 29.55 MB / 1.527 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.257/5.464, allocations: 108 MB / 1.632 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.6318/6.096, allocations: 50.5 MB / 1.682 GB, free: 33.9 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02276/6.119, allocations: 9.552 MB / 1.691 GB, free: 33.76 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05776/6.177, allocations: 22.6 MB / 1.713 GB, free: 32.86 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/6.177, allocations: 128.5 kB / 1.713 GB, free: 32.82 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=892): time 1.241e-05/6.177, allocations: 3.656 kB / 1.713 GB, free: 32.82 MB / 0.5573 GB Notification: Performance of matching and sorting (n=904): time 0.07613/6.253, allocations: 32.65 MB / 1.745 GB, free: 26.94 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/6.253, allocations: 179.9 kB / 1.745 GB, free: 26.83 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0189/6.272, allocations: 7.337 MB / 1.752 GB, free: 26.23 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.00218/6.274, allocations: 174.2 kB / 1.753 GB, free: 26.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.009076/6.283, allocations: 8.659 MB / 1.761 GB, free: 21.76 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.006213/6.29, allocations: 3.046 MB / 1.764 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002885/6.292, allocations: 226.7 kB / 1.764 GB, free: 19.83 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001293/6.294, allocations: 0.7732 MB / 1.765 GB, free: 19.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01209/6.306, allocations: 6.008 MB / 1.771 GB, free: 19.48 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01603/6.322, allocations: 9.601 MB / 1.78 GB, free: 15.27 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01497/6.337, allocations: 8.085 MB / 1.788 GB, free: 13.41 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003071/6.337, allocations: 38.16 kB / 1.788 GB, free: 13.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.04714/6.384, allocations: 19.73 MB / 1.807 GB, free: 6.449 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/6.385, allocations: 58.27 kB / 1.808 GB, free: 6.449 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002911/6.385, allocations: 115 kB / 1.808 GB, free: 6.449 MB / 0.5573 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/6.387, allocations: 0.8114 MB / 1.808 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01204/6.399, allocations: 2.379 MB / 1.811 GB, free: 6.148 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/6.41, allocations: 11.46 MB / 1.822 GB, free: 13.27 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01368/6.424, allocations: 0.6044 MB / 1.823 GB, free: 13.07 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003811/6.428, allocations: 0.5063 MB / 1.823 GB, free: 12.98 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1207 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006233/6.434, allocations: 0.7891 MB / 1.824 GB, free: 12.48 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004265/6.439, allocations: 0.9092 MB / 1.825 GB, free: 12 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04436/6.483, allocations: 16.67 MB / 1.841 GB, free: 5.461 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001875/6.483, allocations: 94.42 kB / 1.841 GB, free: 5.457 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002124/6.483, allocations: 43.84 kB / 1.841 GB, free: 5.457 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003539/6.484, allocations: 44.91 kB / 1.841 GB, free: 5.457 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6283/7.112, allocations: 36.81 MB / 1.877 GB, free: 89.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.985e-05/7.112, allocations: 6.25 kB / 1.877 GB, free: 89.86 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006888/7.119, allocations: 1.415 MB / 1.878 GB, free: 89.86 MB / 0.5886 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.002527/7.122, allocations: 0.8586 MB / 1.879 GB, free: 89.8 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001662/7.123, allocations: 205.1 kB / 1.879 GB, free: 89.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/7.138, allocations: 15.65 MB / 1.895 GB, free: 80.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.46e-05/7.139, allocations: 10.8 kB / 1.895 GB, free: 80.7 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0447/7.183, allocations: 25.4 MB / 1.92 GB, free: 78.06 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007659/7.191, allocations: 2.251 MB / 1.922 GB, free: 77.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004268/7.195, allocations: 175.5 kB / 1.922 GB, free: 77.97 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007987/7.203, allocations: 0.5109 MB / 1.922 GB, free: 77.96 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002516/7.206, allocations: 0.7914 MB / 1.923 GB, free: 77.95 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000922/7.207, allocations: 259.3 kB / 1.923 GB, free: 77.95 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01172/7.218, allocations: 5.541 MB / 1.929 GB, free: 77.66 MB / 0.5886 GB Notification: Performance of sort global known variables: time 9.61e-07/7.218, allocations: 0 / 1.929 GB, free: 77.66 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01775/7.236, allocations: 3.508 MB / 1.932 GB, free: 77.66 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (701): * Single equations (assignments): 693 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(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.04445/7.281, allocations: 27.7 MB / 1.959 GB, free: 73.63 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02847/7.309, allocations: 15.61 MB / 1.975 GB, free: 72.64 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/7.309, allocations: 3.438 kB / 1.975 GB, free: 72.64 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01373/7.323, allocations: 8.513 MB / 1.983 GB, free: 71.64 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01398/7.337, allocations: 2.34 MB / 1.985 GB, free: 71.59 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1003/7.437, allocations: 38.98 MB / 2.023 GB, free: 56.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02397/7.461, allocations: 13.45 MB / 2.036 GB, free: 46.38 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01395/7.475, allocations: 3.962 MB / 2.04 GB, free: 43.79 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0154/7.491, allocations: 7.733 MB / 2.048 GB, free: 36.56 MB / 0.5886 GB Notification: Performance of SimCode: time 1.202e-06/7.491, allocations: 4 kB / 2.048 GB, free: 36.56 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.869/9.36, allocations: 285.5 MB / 2.327 GB, free: 47.26 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002607/9.36, allocations: 231.1 kB / 2.327 GB, free: 46.96 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/22.1, allocations: 4.406 kB / 2.327 GB, free: 46.96 MB / 0.6043 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat