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_Conveyor.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_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",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.001232/0.001232, allocations: 169.2 kB / 13.64 MB, free: 1.672 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.49/1.49, allocations: 221.3 MB / 235.5 MB, free: 2.875 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.0008843/0.0008844, allocations: 92.03 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.403e-05/3.409e-05, allocations: 3.984 kB / 344 MB, free: 4.172 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1215, allocations: 50.42 MB / 394.4 MB, free: 1.711 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4832/0.6048, allocations: 152.7 MB / 0.5343 GB, free: 14.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/0.6052, allocations: 103.9 kB / 0.5344 GB, free: 14.45 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.932/2.537, allocations: 356.1 MB / 0.8821 GB, free: 26.65 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.555e-06/2.537, allocations: 1.062 kB / 0.8821 GB, free: 26.65 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.001323/2.538, allocations: 247.4 kB / 0.8823 GB, free: 26.65 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.04174/2.58, allocations: 10.38 MB / 0.8925 GB, free: 24.98 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/2.58, allocations: 9.406 kB / 0.8925 GB, free: 24.98 MB / 458.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008673/2.589, allocations: 1.534 MB / 0.894 GB, free: 24.87 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03184/2.621, allocations: 4.763 MB / 0.8986 GB, free: 24.27 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03123/2.652, allocations: 9.563 MB / 0.908 GB, free: 23.24 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001224/2.653, allocations: 0.7978 MB / 0.9088 GB, free: 23.21 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005391/2.659, allocations: 1.045 MB / 0.9098 GB, free: 23.21 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04715/2.706, allocations: 16.98 MB / 0.9264 GB, free: 22.02 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007859/2.707, allocations: 20.66 kB / 0.9264 GB, free: 22.01 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004797/2.711, allocations: 458.1 kB / 0.9268 GB, free: 22.01 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008799/2.712, allocations: 0.7591 MB / 0.9276 GB, free: 21.99 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03758/2.75, allocations: 15.15 MB / 0.9423 GB, free: 21.89 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1154/2.865, allocations: 55.6 MB / 0.9966 GB, free: 260 kB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0383/2.904, allocations: 33.45 MB / 1.029 GB, free: 3.801 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009621/2.913, allocations: 4.337 MB / 1.034 GB, free: 2.102 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03627/2.95, allocations: 12.28 MB / 1.046 GB, free: 12.38 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008341/2.958, allocations: 3.022 MB / 1.048 GB, free: 9.82 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=432): time 1.65e-05/2.958, allocations: 0 / 1.048 GB, free: 9.82 MB / 0.4949 GB Notification: Performance of matching and sorting (n=450): time 0.4801/3.438, allocations: 17.85 MB / 1.066 GB, free: 70.25 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002927/3.439, allocations: 415.9 kB / 1.066 GB, free: 69.81 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01292/3.452, allocations: 3.969 MB / 1.07 GB, free: 69.46 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001446/3.453, allocations: 99.39 kB / 1.07 GB, free: 69.43 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006998/3.46, allocations: 4.752 MB / 1.075 GB, free: 67.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002536/3.463, allocations: 1.54 MB / 1.076 GB, free: 66.23 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005968/3.463, allocations: 119.4 kB / 1.077 GB, free: 66.23 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004289/3.464, allocations: 0.5483 MB / 1.077 GB, free: 65.91 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005251/3.469, allocations: 2.743 MB / 1.08 GB, free: 65.89 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006969/3.476, allocations: 4.906 MB / 1.085 GB, free: 63.38 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007834/3.484, allocations: 3.811 MB / 1.088 GB, free: 63.32 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/3.484, allocations: 19.44 kB / 1.088 GB, free: 63.32 MB / 0.4949 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02292/3.507, allocations: 9.398 MB / 1.097 GB, free: 62.75 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/3.507, allocations: 32.81 kB / 1.097 GB, free: 62.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001649/3.507, allocations: 72.69 kB / 1.098 GB, free: 62.75 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004612/3.512, allocations: 1.502 MB / 1.099 GB, free: 62.7 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/3.518, allocations: 1.32 MB / 1.1 GB, free: 62.7 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01895/3.537, allocations: 16.27 MB / 1.116 GB, free: 56.01 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007434/3.545, allocations: 364.6 kB / 1.117 GB, free: 56 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001844/3.547, allocations: 282.6 kB / 1.117 GB, free: 56 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (686): * Single equations (assignments): 680 * 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: 5 * 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: 5 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003104/3.55, allocations: 493.5 kB / 1.117 GB, free: 55.85 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00202/3.552, allocations: 0.493 MB / 1.118 GB, free: 55.59 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01606/3.568, allocations: 7.835 MB / 1.125 GB, free: 55.04 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.719e-05/3.568, allocations: 50.34 kB / 1.125 GB, free: 55.04 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-05/3.568, allocations: 21.02 kB / 1.125 GB, free: 55.04 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.069e-05/3.568, allocations: 20.91 kB / 1.126 GB, free: 55.04 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05249/3.621, allocations: 17.52 MB / 1.143 GB, free: 53.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.332e-05/3.621, allocations: 3.75 kB / 1.143 GB, free: 53.77 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003922/3.625, allocations: 0.7538 MB / 1.143 GB, free: 53.77 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004608/3.629, allocations: 1.565 MB / 1.145 GB, free: 53.69 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001091/3.63, allocations: 112.9 kB / 1.145 GB, free: 53.69 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02277/3.653, allocations: 19.51 MB / 1.164 GB, free: 42.51 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/3.653, allocations: 6.75 kB / 1.164 GB, free: 42.51 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02518/3.678, allocations: 11.76 MB / 1.176 GB, free: 36.86 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004855/3.683, allocations: 1.158 MB / 1.177 GB, free: 36.14 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002834/3.686, allocations: 100.3 kB / 1.177 GB, free: 36.07 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00502/3.691, allocations: 247.9 kB / 1.177 GB, free: 36.01 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001558/3.693, allocations: 335.7 kB / 1.177 GB, free: 35.96 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008897/3.694, allocations: 140.2 kB / 1.177 GB, free: 35.92 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008103/3.702, allocations: 3.009 MB / 1.18 GB, free: 34.73 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.21e-07/3.702, allocations: 0 / 1.18 GB, free: 34.73 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01362/3.715, allocations: 1.941 MB / 1.182 GB, free: 34.53 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,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,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (395): * Single equations (assignments): 386 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(14,41.8%) 44,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 3,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02618/3.742, allocations: 14.11 MB / 1.196 GB, free: 27.31 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01889/3.761, allocations: 7.884 MB / 1.204 GB, free: 22.93 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.538e-05/3.761, allocations: 3.562 kB / 1.204 GB, free: 22.93 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0104/3.771, allocations: 4.549 MB / 1.208 GB, free: 18.78 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008995/3.78, allocations: 1.206 MB / 1.209 GB, free: 17.83 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06541/3.846, allocations: 19.8 MB / 1.229 GB, free: 0.6055 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01774/3.863, allocations: 7.104 MB / 1.236 GB, free: 11.52 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009711/3.873, allocations: 1.858 MB / 1.237 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3957/4.269, allocations: 4.663 MB / 1.242 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/4.269, allocations: 0 / 1.242 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2541/4.523, allocations: 154.9 MB / 1.393 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/4.523, allocations: 274.5 kB / 1.394 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/12.32, allocations: 3.438 kB / 1.394 GB, free: 19.2 MB / 0.5105 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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_Conveyor_res.mat does not exist to compare? outputFormat=mat