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.001011/0.001011, 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.779/1.779, allocations: 221.3 MB / 235.5 MB, free: 2.945 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.0009011/0.0009011, allocations: 97.56 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.683e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 50.41 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.4771, allocations: 119.3 MB / 0.5017 GB, free: 72 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4775, allocations: 96.02 kB / 0.5017 GB, free: 15.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5674/1.045, allocations: 133.5 MB / 0.6321 GB, free: 72.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.045, allocations: 0 / 0.6321 GB, free: 72.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004781/1.045, allocations: 130.5 kB / 0.6322 GB, free: 72.39 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.01352/1.059, allocations: 4.782 MB / 0.6369 GB, free: 67.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/1.059, allocations: 12.03 kB / 0.6369 GB, free: 67.55 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002507/1.062, allocations: 0.6741 MB / 0.6376 GB, free: 66.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00581/1.067, allocations: 0.973 MB / 0.6385 GB, free: 65.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/1.079, allocations: 4.49 MB / 0.6429 GB, free: 61.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/1.079, allocations: 361.8 kB / 0.6432 GB, free: 61.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001763/1.081, allocations: 479.9 kB / 0.6437 GB, free: 60.58 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/1.1, allocations: 6.611 MB / 0.6502 GB, free: 53.78 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002247/1.1, allocations: 4 kB / 0.6502 GB, free: 53.78 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002178/1.102, allocations: 200 kB / 0.6504 GB, free: 53.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002344/1.103, allocations: 237.8 kB / 0.6506 GB, free: 53.35 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/1.116, allocations: 5.408 MB / 0.6559 GB, free: 47.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03908/1.155, allocations: 20.98 MB / 0.6763 GB, free: 26.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008382/1.164, allocations: 9.845 MB / 0.686 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003614/1.167, allocations: 2.405 MB / 0.6883 GB, free: 13.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01091/1.178, allocations: 6.49 MB / 0.6946 GB, free: 6.613 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/1.178, allocations: 60.5 kB / 0.6947 GB, free: 6.547 MB / 426.7 MB Notification: Performance of pre-optimization done (n=217): time 4.399e-06/1.178, allocations: 0 / 0.6947 GB, free: 6.547 MB / 426.7 MB Notification: Performance of matching and sorting (n=224): time 0.0127/1.191, allocations: 7.257 MB / 0.7018 GB, free: 15.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.151e-05/1.191, allocations: 85.36 kB / 0.7019 GB, free: 15.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005162/1.196, allocations: 2.608 MB / 0.7044 GB, free: 12.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005733/1.197, allocations: 61.7 kB / 0.7045 GB, free: 12.42 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.199, allocations: 2.164 MB / 0.7066 GB, free: 10.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.2, allocations: 0.7509 MB / 0.7073 GB, free: 9.469 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/1.2, allocations: 51.94 kB / 0.7074 GB, free: 9.418 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002669/1.201, allocations: 403 kB / 0.7078 GB, free: 9.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/1.203, allocations: 1.204 MB / 0.7089 GB, free: 7.812 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00244/1.206, allocations: 1.78 MB / 0.7107 GB, free: 5.793 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00255/1.208, allocations: 1.509 MB / 0.7121 GB, free: 4.285 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/1.208, allocations: 8 kB / 0.7122 GB, free: 4.277 MB / 442.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.007286/1.215, allocations: 4.034 MB / 0.7161 GB, free: 200 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/1.215, allocations: 12 kB / 0.7161 GB, free: 188 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/1.216, allocations: 19.95 kB / 0.7161 GB, free: 168 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2992/1.515, allocations: 0.6371 MB / 0.7167 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002883/1.518, allocations: 0.5465 MB / 0.7173 GB, free: 84.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/1.528, allocations: 9.993 MB / 0.727 GB, free: 79.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/1.531, allocations: 108.1 kB / 0.7271 GB, free: 79.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003556/1.532, allocations: 104.7 kB / 0.7272 GB, free: 79.42 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,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004955/1.532, allocations: 248.6 kB / 0.7275 GB, free: 79.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006292/1.533, allocations: 311.4 kB / 0.7278 GB, free: 79.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006339/1.539, allocations: 3.785 MB / 0.7315 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.041e-05/1.539, allocations: 21.38 kB / 0.7315 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/1.539, allocations: 15.03 kB / 0.7315 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/1.539, allocations: 9.844 kB / 0.7315 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01623/1.556, allocations: 8.388 MB / 0.7397 GB, free: 78.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/1.556, allocations: 3.25 kB / 0.7397 GB, free: 78.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/1.557, allocations: 343.8 kB / 0.74 GB, free: 78.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002658/1.56, allocations: 0.8086 MB / 0.7408 GB, free: 78.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004586/1.56, allocations: 59.59 kB / 0.7409 GB, free: 78.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.575, allocations: 14.38 MB / 0.7549 GB, free: 70.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.393e-06/1.575, allocations: 6.078 kB / 0.7549 GB, free: 70.24 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00846/1.584, allocations: 5.666 MB / 0.7605 GB, free: 69.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/1.586, allocations: 0.6873 MB / 0.7611 GB, free: 69.26 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000592/1.586, allocations: 53.61 kB / 0.7612 GB, free: 69.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/1.588, allocations: 123 kB / 0.7613 GB, free: 69.26 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004659/1.589, allocations: 188.3 kB / 0.7615 GB, free: 69.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001506/1.589, allocations: 60.86 kB / 0.7615 GB, free: 69.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003246/1.592, allocations: 2 MB / 0.7635 GB, free: 68.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.592, allocations: 6.438 kB / 0.7635 GB, free: 68.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004047/1.596, allocations: 0.9773 MB / 0.7645 GB, free: 68.88 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.008861/1.605, allocations: 7.117 MB / 0.7714 GB, free: 65.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005359/1.61, allocations: 3.728 MB / 0.775 GB, free: 63.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.61, allocations: 0 / 0.775 GB, free: 63.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003544/1.614, allocations: 2.54 MB / 0.7775 GB, free: 62.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004645/1.619, allocations: 0.8621 MB / 0.7784 GB, free: 61.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02165/1.64, allocations: 9.137 MB / 0.7873 GB, free: 58.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003149/1.643, allocations: 3.509 MB / 0.7907 GB, free: 57.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003013/1.646, allocations: 0.7415 MB / 0.7914 GB, free: 56.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002699/1.649, allocations: 1.821 MB / 0.7932 GB, free: 55.42 MB / 442.7 MB Notification: Performance of SimCode: time 1.493e-06/1.649, allocations: 0 / 0.7932 GB, free: 55.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1312/1.78, allocations: 86.72 MB / 0.8779 GB, free: 5.883 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/1.781, allocations: 216.9 kB / 0.8781 GB, free: 5.66 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.87/6.65, allocations: 0 / 0.8781 GB, free: 5.66 MB / 458.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