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_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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.001394/0.001394, 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.502/1.502, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0009894/0.0009893, allocations: 95.53 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.755e-05/2.757e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.42 MB / 394.4 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/0.4958, allocations: 114.4 MB / 0.4968 GB, free: 5.004 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.4962, allocations: 97.59 kB / 0.4969 GB, free: 4.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.458/0.9542, allocations: 83.97 MB / 0.5789 GB, free: 97.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.9542, allocations: 4 kB / 0.5789 GB, free: 97.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000336/0.9546, allocations: 85.34 kB / 0.579 GB, free: 97.3 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01034/0.965, allocations: 3.306 MB / 0.5822 GB, free: 95.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.965, allocations: 11.62 kB / 0.5822 GB, free: 95.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001737/0.9668, allocations: 453.3 kB / 0.5827 GB, free: 95.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004906/0.9717, allocations: 0.7412 MB / 0.5834 GB, free: 95.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009472/0.9812, allocations: 3.379 MB / 0.5867 GB, free: 94.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002671/0.9815, allocations: 245.5 kB / 0.5869 GB, free: 94.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/0.983, allocations: 318.6 kB / 0.5872 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.9937, allocations: 4.133 MB / 0.5913 GB, free: 92.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.9939, allocations: 0 / 0.5913 GB, free: 92.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000729/0.9946, allocations: 135.1 kB / 0.5914 GB, free: 92.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.9948, allocations: 147.3 kB / 0.5915 GB, free: 92.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006411/1.001, allocations: 3.335 MB / 0.5948 GB, free: 90.76 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02103/1.022, allocations: 13.48 MB / 0.608 GB, free: 83.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005136/1.027, allocations: 6.866 MB / 0.6147 GB, free: 77.19 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/1.03, allocations: 1.357 MB / 0.616 GB, free: 76.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006315/1.036, allocations: 3.843 MB / 0.6198 GB, free: 74.55 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001081/1.037, allocations: 0.8196 MB / 0.6206 GB, free: 74.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=130): time 4.558e-06/1.037, allocations: 3.469 kB / 0.6206 GB, free: 74.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.008629/1.046, allocations: 5.067 MB / 0.6255 GB, free: 71.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.257e-05/1.046, allocations: 225.8 kB / 0.6257 GB, free: 71.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002612/1.048, allocations: 1.647 MB / 0.6273 GB, free: 70.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/1.049, allocations: 52.36 kB / 0.6274 GB, free: 70.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/1.05, allocations: 1.48 MB / 0.6288 GB, free: 69.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/1.05, allocations: 482.8 kB / 0.6293 GB, free: 68.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.307e-05/1.05, allocations: 35.72 kB / 0.6293 GB, free: 68.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.254e-05/1.05, allocations: 369.5 kB / 0.6297 GB, free: 68.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008615/1.051, allocations: 0.6286 MB / 0.6303 GB, free: 68.37 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/1.052, allocations: 1.17 MB / 0.6314 GB, free: 67.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/1.053, allocations: 0.85 MB / 0.6323 GB, free: 66.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/1.053, allocations: 4 kB / 0.6323 GB, free: 66.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003274/1.057, allocations: 2.353 MB / 0.6346 GB, free: 64.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/1.057, allocations: 15.94 kB / 0.6346 GB, free: 64.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/1.057, allocations: 16 kB / 0.6346 GB, free: 64.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006851/1.057, allocations: 295.5 kB / 0.6349 GB, free: 64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/1.059, allocations: 373.3 kB / 0.6352 GB, free: 63.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00423/1.063, allocations: 5.839 MB / 0.6409 GB, free: 57.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001865/1.065, allocations: 91.11 kB / 0.641 GB, free: 57.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/1.065, allocations: 71.47 kB / 0.6411 GB, free: 57.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (194): * Single equations (assignments): 190 * 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: 3 * 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: 3 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003077/1.065, allocations: 220.6 kB / 0.6413 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003215/1.066, allocations: 197.6 kB / 0.6415 GB, free: 57.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003472/1.069, allocations: 2.203 MB / 0.6436 GB, free: 55.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/1.069, allocations: 12 kB / 0.6436 GB, free: 55.26 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/1.069, allocations: 8 kB / 0.6437 GB, free: 55.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/1.069, allocations: 11.03 kB / 0.6437 GB, free: 55.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007293/1.077, allocations: 5.118 MB / 0.6487 GB, free: 50.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/1.077, allocations: 4 kB / 0.6487 GB, free: 50.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007426/1.077, allocations: 183.7 kB / 0.6488 GB, free: 50.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/1.078, allocations: 467.7 kB / 0.6493 GB, free: 49.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-05/1.079, allocations: 39.98 kB / 0.6493 GB, free: 49.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007318/1.086, allocations: 10.13 MB / 0.6592 GB, free: 39.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.086, allocations: 3.938 kB / 0.6592 GB, free: 39.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00417/1.09, allocations: 3.1 MB / 0.6623 GB, free: 35.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/1.091, allocations: 442.4 kB / 0.6627 GB, free: 35.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/1.091, allocations: 28 kB / 0.6627 GB, free: 35.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008943/1.092, allocations: 71.95 kB / 0.6628 GB, free: 35.35 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002853/1.093, allocations: 105.1 kB / 0.6629 GB, free: 35.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/1.093, allocations: 39.98 kB / 0.6629 GB, free: 35.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001743/1.094, allocations: 1.256 MB / 0.6641 GB, free: 33.96 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.094, allocations: 0 / 0.6641 GB, free: 33.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002254/1.097, allocations: 0.6368 MB / 0.6648 GB, free: 33.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.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 (101): * Single equations (assignments): 94 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(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.005102/1.102, allocations: 4.432 MB / 0.6691 GB, free: 28.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002874/1.105, allocations: 2.102 MB / 0.6711 GB, free: 26.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.105, allocations: 0 / 0.6711 GB, free: 26.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/1.107, allocations: 1.525 MB / 0.6726 GB, free: 25.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/1.11, allocations: 0.5035 MB / 0.6731 GB, free: 24.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/1.122, allocations: 5.495 MB / 0.6785 GB, free: 19.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/1.123, allocations: 2.406 MB / 0.6808 GB, free: 16.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001705/1.125, allocations: 412.8 kB / 0.6812 GB, free: 16.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/1.127, allocations: 1.171 MB / 0.6824 GB, free: 15.19 MB / 426.7 MB Notification: Performance of SimCode: time 1.513e-06/1.127, allocations: 0 / 0.6824 GB, free: 15.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3978/1.524, allocations: 54.37 MB / 0.7355 GB, free: 100.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/1.525, allocations: 255.2 kB / 0.7357 GB, free: 100.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.76/5.284, allocations: 0 / 0.7357 GB, free: 100.4 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat