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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 221.5 MB / 230.3 MB, free: 7.555 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.001046/0.001046, allocations: 82.28 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.68e-05/1.682e-05, allocations: 4 kB / 337.2 MB, free: 9.898 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1234, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5356, allocations: 118.7 MB / 0.4944 GB, free: 7.938 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.5359, allocations: 100.8 kB / 0.4945 GB, free: 7.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5859/1.122, allocations: 131.8 MB / 0.6232 GB, free: 83.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.026e-06/1.122, allocations: 3.984 kB / 0.6232 GB, free: 83.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005427/1.122, allocations: 131.8 kB / 0.6233 GB, free: 83.21 MB / 426.7 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.01492/1.137, allocations: 4.78 MB / 0.628 GB, free: 78.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/1.137, allocations: 8.031 kB / 0.628 GB, free: 78.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00566/1.143, allocations: 0.977 MB / 0.629 GB, free: 77.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01/1.153, allocations: 4.482 MB / 0.6333 GB, free: 72.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002298/1.153, allocations: 160 kB / 0.6335 GB, free: 72.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/1.155, allocations: 291.9 kB / 0.6338 GB, free: 72.47 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01021/1.165, allocations: 5.1 MB / 0.6388 GB, free: 67.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01432/1.18, allocations: 5.892 MB / 0.6445 GB, free: 61.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001218/1.18, allocations: 4 kB / 0.6445 GB, free: 61.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005731/1.18, allocations: 4 kB / 0.6445 GB, free: 61.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001836/1.18, allocations: 237.8 kB / 0.6447 GB, free: 61.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02936/1.21, allocations: 20 MB / 0.6643 GB, free: 40.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006431/1.216, allocations: 9.712 MB / 0.6738 GB, free: 30.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002731/1.219, allocations: 2.311 MB / 0.676 GB, free: 27.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/1.229, allocations: 6.293 MB / 0.6822 GB, free: 21.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/1.229, allocations: 56.56 kB / 0.6822 GB, free: 21.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=217): time 5.12e-06/1.229, allocations: 4 kB / 0.6822 GB, free: 21.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=224): time 0.01294/1.242, allocations: 7.243 MB / 0.6893 GB, free: 14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/1.242, allocations: 73.41 kB / 0.6894 GB, free: 13.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003502/1.246, allocations: 2.087 MB / 0.6914 GB, free: 11.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003564/1.246, allocations: 33.69 kB / 0.6914 GB, free: 11.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/1.247, allocations: 2.165 MB / 0.6936 GB, free: 9.582 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006157/1.248, allocations: 0.7236 MB / 0.6943 GB, free: 8.848 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/1.248, allocations: 4 kB / 0.6943 GB, free: 8.844 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/1.248, allocations: 407 kB / 0.6947 GB, free: 8.441 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/1.25, allocations: 1.157 MB / 0.6958 GB, free: 7.281 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/1.251, allocations: 1.717 MB / 0.6975 GB, free: 5.328 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/1.253, allocations: 1.579 MB / 0.699 GB, free: 3.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/1.253, allocations: 8 kB / 0.699 GB, free: 3.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005825/1.259, allocations: 3.878 MB / 0.7028 GB, free: 15.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.519e-05/1.259, allocations: 12 kB / 0.7028 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-05/1.259, allocations: 16 kB / 0.7028 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001694/1.261, allocations: 0.6218 MB / 0.7034 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/1.263, allocations: 0.5461 MB / 0.704 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/1.275, allocations: 9.616 MB / 0.7134 GB, free: 4.543 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00305/1.278, allocations: 55.94 kB / 0.7134 GB, free: 4.488 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004075/1.278, allocations: 96 kB / 0.7135 GB, free: 4.395 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 6 (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 initialization (269): * Single equations (assignments): 264 * 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%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005251/1.279, allocations: 180 kB / 0.7137 GB, free: 4.215 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006753/1.286, allocations: 3.465 MB / 0.7171 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007585/1.286, allocations: 280.6 kB / 0.7173 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3046/1.591, allocations: 3.665 MB / 0.7209 GB, free: 90.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/1.591, allocations: 25.83 kB / 0.7209 GB, free: 90.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/1.591, allocations: 11.94 kB / 0.7209 GB, free: 90.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-05/1.591, allocations: 10.36 kB / 0.7209 GB, free: 90.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01498/1.606, allocations: 7.665 MB / 0.7284 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.606, allocations: 4.391 kB / 0.7284 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/1.608, allocations: 337.7 kB / 0.7288 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.61, allocations: 0.7916 MB / 0.7295 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/1.61, allocations: 29.36 kB / 0.7296 GB, free: 89.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/1.624, allocations: 13.85 MB / 0.7431 GB, free: 82.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/1.624, allocations: 3.094 kB / 0.7431 GB, free: 82.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009378/1.634, allocations: 5.56 MB / 0.7485 GB, free: 81.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001845/1.636, allocations: 0.6447 MB / 0.7491 GB, free: 81.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005663/1.636, allocations: 17.53 kB / 0.7492 GB, free: 81.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/1.638, allocations: 80.88 kB / 0.7492 GB, free: 81.24 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005051/1.638, allocations: 197 kB / 0.7494 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/1.638, allocations: 62.45 kB / 0.7495 GB, free: 81.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00254/1.641, allocations: 1.57 MB / 0.751 GB, free: 81.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.641, allocations: 3.094 kB / 0.751 GB, free: 81.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003725/1.645, allocations: 0.857 MB / 0.7519 GB, free: 81.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (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 (154): * Single equations (assignments): 148 * 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%) 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.007991/1.653, allocations: 6.92 MB / 0.7586 GB, free: 79.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005065/1.658, allocations: 3.541 MB / 0.7621 GB, free: 78.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.658, allocations: 0 / 0.7621 GB, free: 78.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003677/1.661, allocations: 2.454 MB / 0.7645 GB, free: 77.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004077/1.666, allocations: 0.6211 MB / 0.7651 GB, free: 77.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/1.683, allocations: 8.825 MB / 0.7737 GB, free: 74.27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002764/1.686, allocations: 3.512 MB / 0.7771 GB, free: 72.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002357/1.688, allocations: 0.6805 MB / 0.7778 GB, free: 72.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/1.69, allocations: 1.815 MB / 0.7796 GB, free: 71.33 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/1.69, allocations: 0 / 0.7796 GB, free: 71.33 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/1.798, allocations: 71.1 MB / 0.849 GB, free: 24.25 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000148/1.798, allocations: 191.7 kB / 0.8492 GB, free: 24.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.116/5.914, allocations: 0 / 0.8492 GB, free: 24.05 MB / 442.7 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