Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001103/0.001103, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.274/1.274, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009119, allocations: 85.28 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.00024, allocations: 11.94 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2077, allocations: 50.39 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.3242, allocations: 108.2 MB / 0.4979 GB, free: 4.168 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.3245, allocations: 99.94 kB / 0.498 GB, free: 4.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.283/0.6076, allocations: 44.7 MB / 0.5416 GB, free: 73.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6076, allocations: 0 / 0.5416 GB, free: 73.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002069/0.6078, allocations: 55.88 kB / 0.5417 GB, free: 73.22 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.005557/0.6134, allocations: 2.329 MB / 0.5439 GB, free: 70.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.6135, allocations: 8.031 kB / 0.544 GB, free: 70.83 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008615/0.6143, allocations: 282.4 kB / 0.5442 GB, free: 70.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.6154, allocations: 277 kB / 0.5445 GB, free: 70.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.619, allocations: 1.439 MB / 0.5459 GB, free: 68.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.6192, allocations: 139.8 kB / 0.546 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005125/0.6197, allocations: 196 kB / 0.5462 GB, free: 68.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004149/0.6239, allocations: 2.398 MB / 0.5486 GB, free: 65.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.305e-05/0.6239, allocations: 3.906 kB / 0.5486 GB, free: 65.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/0.6241, allocations: 83.94 kB / 0.5486 GB, free: 65.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.252e-05/0.6242, allocations: 83.67 kB / 0.5487 GB, free: 65.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002939/0.6271, allocations: 1.881 MB / 0.5506 GB, free: 63.92 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009646/0.6368, allocations: 7.452 MB / 0.5578 GB, free: 56.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.6384, allocations: 1.39 MB / 0.5592 GB, free: 54.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002414/0.6387, allocations: 142 kB / 0.5593 GB, free: 54.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008622/0.6395, allocations: 0.7023 MB / 0.56 GB, free: 53.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 2.976e-06/0.6396, allocations: 0 / 0.56 GB, free: 53.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=130): time 0.01582/0.6554, allocations: 8.382 MB / 0.5682 GB, free: 45.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.6555, allocations: 171.5 kB / 0.5684 GB, free: 45.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.6574, allocations: 1.228 MB / 0.5696 GB, free: 43.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.6576, allocations: 49.7 kB / 0.5696 GB, free: 43.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008114/0.6584, allocations: 0.9249 MB / 0.5705 GB, free: 42.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003533/0.6588, allocations: 449.6 kB / 0.5709 GB, free: 42.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.868e-05/0.6589, allocations: 32 kB / 0.571 GB, free: 42.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.829e-05/0.659, allocations: 361.9 kB / 0.5713 GB, free: 42.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009649/0.66, allocations: 0.6949 MB / 0.572 GB, free: 41.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.6611, allocations: 1.059 MB / 0.573 GB, free: 40.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.6622, allocations: 0.8527 MB / 0.5739 GB, free: 39.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.237e-05/0.6623, allocations: 4 kB / 0.5739 GB, free: 39.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004152/0.6664, allocations: 2.537 MB / 0.5763 GB, free: 36.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.6665, allocations: 12 kB / 0.5763 GB, free: 36.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.6665, allocations: 8 kB / 0.5764 GB, free: 36.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.6681, allocations: 0.6588 MB / 0.577 GB, free: 36.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/0.6693, allocations: 299.6 kB / 0.5773 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.6756, allocations: 6.692 MB / 0.5838 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.6772, allocations: 111.9 kB / 0.5839 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/0.6775, allocations: 52 kB / 0.584 GB, free: 28.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 145 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001436/0.6789, allocations: 0.6443 MB / 0.5846 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000437/0.6793, allocations: 158.1 kB / 0.5848 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004021/0.6834, allocations: 2.402 MB / 0.5871 GB, free: 25.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.6834, allocations: 19.94 kB / 0.5871 GB, free: 25.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/0.6834, allocations: 4 kB / 0.5871 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/0.6835, allocations: 11.97 kB / 0.5871 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008487/0.6919, allocations: 4.793 MB / 0.5918 GB, free: 20.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.692, allocations: 4.188 kB / 0.5918 GB, free: 20.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.6928, allocations: 187.8 kB / 0.592 GB, free: 20.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/0.6947, allocations: 0.7252 MB / 0.5927 GB, free: 19.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.6948, allocations: 35.97 kB / 0.5927 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007493/0.7023, allocations: 8.407 MB / 0.601 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.7024, allocations: 4 kB / 0.601 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.7075, allocations: 3.461 MB / 0.6043 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.7086, allocations: 395 kB / 0.6047 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004415/0.7091, allocations: 31.95 kB / 0.6047 GB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7102, allocations: 84.23 kB / 0.6048 GB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.7105, allocations: 105.4 kB / 0.6049 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.62e-05/0.7106, allocations: 43.98 kB / 0.605 GB, free: 6.555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001775/0.7124, allocations: 0.944 MB / 0.6059 GB, free: 5.609 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7124, allocations: 0 / 0.6059 GB, free: 5.609 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002187/0.7146, allocations: 0.5234 MB / 0.6064 GB, free: 5.086 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * 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): 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 {(5,76.0%) 23,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006372/0.721, allocations: 4.933 MB / 0.6112 GB, free: 240 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004064/0.7251, allocations: 2.391 MB / 0.6136 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.7251, allocations: 4 kB / 0.6136 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002689/0.7278, allocations: 1.618 MB / 0.6151 GB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.7299, allocations: 387 kB / 0.6155 GB, free: 11.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02708/0.757, allocations: 19.09 MB / 0.6342 GB, free: 8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/0.7588, allocations: 1.764 MB / 0.6359 GB, free: 6.195 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001393/0.7602, allocations: 321.2 kB / 0.6362 GB, free: 5.875 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001097/0.7613, allocations: 0.7687 MB / 0.6369 GB, free: 5.105 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7613, allocations: 0 / 0.6369 GB, free: 5.105 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.237/0.9983, allocations: 43.73 MB / 0.6796 GB, free: 108.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/0.9985, allocations: 262 kB / 0.6799 GB, free: 107.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.108/4.107, allocations: 0 / 0.6799 GB, free: 107.9 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat