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.0009761/0.0009765, 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.418/1.418, allocations: 221.5 MB / 230.3 MB, free: 7.535 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.0008158/0.0008158, allocations: 86.22 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.512e-05/1.514e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09741, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.4445, allocations: 107.5 MB / 495.1 MB, free: 3.121 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.4449, allocations: 87.95 kB / 495.2 MB, free: 3.035 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1187/0.5635, allocations: 44.2 MB / 0.5267 GB, free: 6.578 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5636, allocations: 0 / 0.5267 GB, free: 6.578 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001441/0.5637, allocations: 59.92 kB / 0.5268 GB, free: 6.52 MB / 410.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.004408/0.5681, allocations: 2.081 MB / 0.5288 GB, free: 4.387 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.5682, allocations: 8.031 kB / 0.5288 GB, free: 4.379 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009164/0.5691, allocations: 276.9 kB / 0.5291 GB, free: 4.105 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.5719, allocations: 1.432 MB / 0.5305 GB, free: 2.617 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/0.5719, allocations: 60 kB / 0.5305 GB, free: 2.559 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.5722, allocations: 119.9 kB / 0.5306 GB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002942/0.5751, allocations: 1.73 MB / 0.5323 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/0.5786, allocations: 2.098 MB / 0.5344 GB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.544e-05/0.5786, allocations: 7.906 kB / 0.5344 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.5788, allocations: 0 / 0.5344 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.5789, allocations: 91.67 kB / 0.5345 GB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.5897, allocations: 7.07 MB / 0.5414 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.5914, allocations: 1.306 MB / 0.5427 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.5924, allocations: 0.6803 MB / 0.5433 GB, free: 5.133 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.5927, allocations: 142.3 kB / 0.5435 GB, free: 4.977 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008936/0.5936, allocations: 0.65 MB / 0.5441 GB, free: 4.301 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 2.755e-06/0.5936, allocations: 0 / 0.5441 GB, free: 4.301 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.2611/0.8547, allocations: 5.818 MB / 0.5498 GB, free: 107.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.8549, allocations: 174 kB / 0.5499 GB, free: 107.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.8571, allocations: 1.007 MB / 0.5509 GB, free: 107.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.8574, allocations: 31.86 kB / 0.551 GB, free: 107.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.8585, allocations: 0.9338 MB / 0.5519 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005352/0.859, allocations: 436.3 kB / 0.5523 GB, free: 106.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-05/0.8591, allocations: 1.062 kB / 0.5523 GB, free: 106.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.8593, allocations: 361.7 kB / 0.5526 GB, free: 106.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.8604, allocations: 0.6434 MB / 0.5533 GB, free: 106.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.8616, allocations: 0.9826 MB / 0.5542 GB, free: 106.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001266/0.8629, allocations: 0.8079 MB / 0.555 GB, free: 106.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.8629, allocations: 2.75 kB / 0.555 GB, free: 106.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.00454/0.8675, allocations: 2.312 MB / 0.5573 GB, free: 105.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.8675, allocations: 10.33 kB / 0.5573 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/0.8676, allocations: 9.625 kB / 0.5573 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/0.8695, allocations: 0.6392 MB / 0.5579 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.8708, allocations: 307.6 kB / 0.5582 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007981/0.8788, allocations: 6.2 MB / 0.5643 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.8805, allocations: 72.38 kB / 0.5643 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001709/0.8807, allocations: 57.3 kB / 0.5644 GB, free: 103.4 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 146 * 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.00034/0.8811, allocations: 144.8 kB / 0.5645 GB, free: 103.3 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00392/0.885, allocations: 2.066 MB / 0.5665 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003382/0.8853, allocations: 138.7 kB / 0.5667 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.8895, allocations: 2.227 MB / 0.5688 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-05/0.8895, allocations: 13.09 kB / 0.5689 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.8896, allocations: 8.688 kB / 0.5689 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.8896, allocations: 6.094 kB / 0.5689 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0075/0.8971, allocations: 4.42 MB / 0.5732 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.8971, allocations: 3.719 kB / 0.5732 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.8979, allocations: 186.1 kB / 0.5734 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.8996, allocations: 0.7161 MB / 0.5741 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.658e-05/0.8997, allocations: 18.03 kB / 0.5741 GB, free: 101.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007159/0.9069, allocations: 7.797 MB / 0.5817 GB, free: 96.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.9069, allocations: 3.844 kB / 0.5817 GB, free: 96.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/0.9115, allocations: 3.308 MB / 0.5849 GB, free: 94.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.9126, allocations: 385.2 kB / 0.5853 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/0.9129, allocations: 14.81 kB / 0.5853 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008146/0.9137, allocations: 58.5 kB / 0.5854 GB, free: 94.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.914, allocations: 107.4 kB / 0.5855 GB, free: 94.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.9141, allocations: 46.3 kB / 0.5855 GB, free: 94.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001013/0.9151, allocations: 0.7521 MB / 0.5862 GB, free: 94.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.9151, allocations: 0 / 0.5862 GB, free: 94.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001712/0.9168, allocations: 455.6 kB / 0.5867 GB, free: 94.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * 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.005324/0.9222, allocations: 4.896 MB / 0.5915 GB, free: 91.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.9254, allocations: 2.24 MB / 0.5937 GB, free: 90.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.9255, allocations: 0 / 0.5937 GB, free: 90.47 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.9276, allocations: 1.511 MB / 0.5951 GB, free: 89.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/0.9295, allocations: 294.1 kB / 0.5954 GB, free: 89.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007369/0.9369, allocations: 3.903 MB / 0.5992 GB, free: 87.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/0.9382, allocations: 1.767 MB / 0.6009 GB, free: 87.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009822/0.9392, allocations: 299.1 kB / 0.6012 GB, free: 87.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007824/0.94, allocations: 0.7628 MB / 0.602 GB, free: 86.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.272e-06/0.94, allocations: 4 kB / 0.602 GB, free: 86.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06989/1.01, allocations: 37.34 MB / 0.6384 GB, free: 64.71 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/1.01, allocations: 190.3 kB / 0.6386 GB, free: 64.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.01/4.02, allocations: 0 / 0.6386 GB, free: 64.52 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