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.001425/0.001425, 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.542/1.542, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.0009667/0.0009664, allocations: 91.86 kB / 281.2 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.55e-05, allocations: 7.984 kB / 337.9 MB, free: 9.133 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1167, allocations: 50.41 MB / 388.3 MB, free: 6.688 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5572, allocations: 166.5 MB / 0.5418 GB, free: 7.566 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.5575, allocations: 103.9 kB / 0.5419 GB, free: 7.465 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.369/3.926, allocations: 0.853 GB / 1.395 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.015e-06/3.926, allocations: 3.562 kB / 1.395 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001736/3.928, allocations: 483.4 kB / 1.395 GB, free: 20.35 MB / 0.4948 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.08406/4.012, allocations: 19.48 MB / 1.414 GB, free: 0.7422 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/4.012, allocations: 19.98 kB / 1.414 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5813/4.593, allocations: 9.655 MB / 1.424 GB, free: 27.25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05191/4.645, allocations: 16.2 MB / 1.44 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001909/4.647, allocations: 0.6545 MB / 1.44 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009807/4.657, allocations: 1.18 MB / 1.441 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06467/4.722, allocations: 27.28 MB / 1.468 GB, free: 26.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.105/4.827, allocations: 30.46 MB / 1.498 GB, free: 23.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001226/4.828, allocations: 26.44 kB / 1.498 GB, free: 23.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009011/4.837, allocations: 13.06 kB / 1.498 GB, free: 23.82 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001985/4.839, allocations: 1.483 MB / 1.499 GB, free: 23.77 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2746/5.114, allocations: 105.3 MB / 1.602 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5188/5.633, allocations: 49.77 MB / 1.651 GB, free: 32.31 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01846/5.651, allocations: 9.48 MB / 1.66 GB, free: 32.18 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04928/5.7, allocations: 22.96 MB / 1.682 GB, free: 31.23 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/5.701, allocations: 130.5 kB / 1.683 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=892): time 1.022e-05/5.701, allocations: 0 / 1.683 GB, free: 31.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=904): time 0.08385/5.784, allocations: 37.5 MB / 1.719 GB, free: 25.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/5.784, allocations: 174.1 kB / 1.719 GB, free: 25.28 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/5.798, allocations: 6.209 MB / 1.725 GB, free: 24.77 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002673/5.8, allocations: 31.73 kB / 1.725 GB, free: 24.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005937/5.806, allocations: 8.669 MB / 1.734 GB, free: 20.13 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004183/5.811, allocations: 2.919 MB / 1.737 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00137/5.812, allocations: 3.094 kB / 1.737 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0007063/5.813, allocations: 0.7706 MB / 1.737 GB, free: 17.88 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009597/5.822, allocations: 6.094 MB / 1.743 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01315/5.836, allocations: 9.621 MB / 1.753 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01871/5.854, allocations: 9.875 MB / 1.762 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002899/5.855, allocations: 33.28 kB / 1.763 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.04947/5.904, allocations: 20.76 MB / 1.783 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003781/5.905, allocations: 54.72 kB / 1.783 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004156/5.905, allocations: 116 kB / 1.783 GB, free: 3.746 MB / 0.5417 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.002359/5.907, allocations: 0.7968 MB / 1.784 GB, free: 3.523 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/5.919, allocations: 2.446 MB / 1.786 GB, free: 3.445 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/5.93, allocations: 11.04 MB / 1.797 GB, free: 10.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/5.942, allocations: 467 kB / 1.797 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003951/5.946, allocations: 0.5088 MB / 1.798 GB, free: 10.85 MB / 0.5573 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,(2,100.0%) 26,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005634/5.951, allocations: 431.4 kB / 1.798 GB, free: 10.63 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03975/5.991, allocations: 16.45 MB / 1.814 GB, free: 14.15 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00433/5.995, allocations: 0.8333 MB / 1.815 GB, free: 13.31 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5389/6.534, allocations: 18.1 MB / 1.833 GB, free: 87.43 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002225/6.535, allocations: 94.27 kB / 1.833 GB, free: 87.43 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002354/6.535, allocations: 45.27 kB / 1.833 GB, free: 87.43 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000481/6.535, allocations: 45.92 kB / 1.833 GB, free: 87.43 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09655/6.632, allocations: 34.44 MB / 1.867 GB, free: 85.88 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001032/6.632, allocations: 6.625 kB / 1.867 GB, free: 85.88 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007891/6.64, allocations: 1.492 MB / 1.868 GB, free: 85.88 MB / 0.573 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.002538/6.643, allocations: 0.8311 MB / 1.869 GB, free: 85.82 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002149/6.645, allocations: 77.5 kB / 1.869 GB, free: 85.82 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/6.658, allocations: 15.09 MB / 1.884 GB, free: 77.17 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/6.658, allocations: 8.031 kB / 1.884 GB, free: 77.17 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05476/6.712, allocations: 27.05 MB / 1.91 GB, free: 74.62 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008746/6.721, allocations: 2.235 MB / 1.912 GB, free: 74.53 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004787/6.726, allocations: 28.55 kB / 1.912 GB, free: 74.53 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01077/6.737, allocations: 440.4 kB / 1.913 GB, free: 74.53 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003796/6.741, allocations: 0.7863 MB / 1.914 GB, free: 74.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002507/6.743, allocations: 256.2 kB / 1.914 GB, free: 74.52 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01337/6.757, allocations: 4.591 MB / 1.918 GB, free: 74.3 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.964e-06/6.757, allocations: 0 / 1.918 GB, free: 74.3 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02099/6.778, allocations: 3.135 MB / 1.921 GB, free: 74.3 MB / 0.573 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.06503/6.843, allocations: 29.14 MB / 1.95 GB, free: 69.25 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03127/6.874, allocations: 15.6 MB / 1.965 GB, free: 63.11 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/6.874, allocations: 0 / 1.965 GB, free: 63.11 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0168/6.891, allocations: 8.562 MB / 1.973 GB, free: 59.39 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01504/6.906, allocations: 1.754 MB / 1.975 GB, free: 58.98 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1048/7.011, allocations: 38.49 MB / 2.013 GB, free: 29.26 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04278/7.054, allocations: 13.45 MB / 2.026 GB, free: 19.24 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.02829/7.082, allocations: 3.898 MB / 2.03 GB, free: 16.68 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5375/7.62, allocations: 7.923 MB / 2.037 GB, free: 81.61 MB / 0.573 GB Notification: Performance of SimCode: time 1.213e-06/7.62, allocations: 3 kB / 2.037 GB, free: 81.61 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.07/8.689, allocations: 257.9 MB / 2.289 GB, free: 63.93 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/8.69, allocations: 202.5 kB / 2.289 GB, free: 63.65 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/19.74, allocations: 0 / 2.289 GB, free: 63.65 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