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.001035/0.001035, 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.355/1.355, 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.0008889/0.0008884, allocations: 93.83 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.958e-05, allocations: 0 / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09423, allocations: 50.42 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.347/0.4413, allocations: 108.2 MB / 0.4907 GB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/0.4415, allocations: 91.94 kB / 0.4908 GB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1215/0.5631, allocations: 44.75 MB / 0.5345 GB, free: 14.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5631, allocations: 4 kB / 0.5345 GB, free: 14.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002799/0.5634, allocations: 51.94 kB / 0.5346 GB, free: 14.08 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.006513/0.5699, allocations: 2.081 MB / 0.5366 GB, free: 11.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.57, allocations: 12.03 kB / 0.5366 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009094/0.5709, allocations: 274.4 kB / 0.5369 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.5722, allocations: 284.9 kB / 0.5372 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003726/0.576, allocations: 1.428 MB / 0.5386 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.5761, allocations: 135.8 kB / 0.5387 GB, free: 9.762 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005507/0.5767, allocations: 195.9 kB / 0.5389 GB, free: 9.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005351/0.5821, allocations: 2.359 MB / 0.5412 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.953e-05/0.5822, allocations: 11.84 kB / 0.5412 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003203/0.5825, allocations: 76 kB / 0.5413 GB, free: 7.051 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001122/0.5826, allocations: 87.67 kB / 0.5413 GB, free: 6.965 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004391/0.587, allocations: 1.83 MB / 0.5431 GB, free: 5.133 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2664/0.8534, allocations: 7.441 MB / 0.5504 GB, free: 101.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.8554, allocations: 1.352 MB / 0.5517 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.8566, allocations: 0.7192 MB / 0.5524 GB, free: 101.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/0.8569, allocations: 139.4 kB / 0.5526 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.8581, allocations: 0.6756 MB / 0.5532 GB, free: 101.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 2.415e-06/0.8581, allocations: 0.9375 kB / 0.5532 GB, free: 101.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01868/0.8768, allocations: 7.384 MB / 0.5604 GB, free: 100.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.8769, allocations: 173.8 kB / 0.5606 GB, free: 100.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002073/0.879, allocations: 1.217 MB / 0.5618 GB, free: 100.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.8791, allocations: 48.64 kB / 0.5618 GB, free: 100.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007781/0.8799, allocations: 0.9256 MB / 0.5627 GB, free: 99.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003494/0.8803, allocations: 456.3 kB / 0.5632 GB, free: 99.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.202e-05/0.8804, allocations: 27.06 kB / 0.5632 GB, free: 99.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.8805, allocations: 363.2 kB / 0.5635 GB, free: 99.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009864/0.8815, allocations: 0.6685 MB / 0.5642 GB, free: 99.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001206/0.8827, allocations: 1.031 MB / 0.5652 GB, free: 98.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.884, allocations: 0.8333 MB / 0.566 GB, free: 98.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.884, allocations: 2.125 kB / 0.566 GB, free: 98.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.004571/0.8886, allocations: 2.479 MB / 0.5684 GB, free: 98.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.8886, allocations: 9.219 kB / 0.5684 GB, free: 98.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.367e-05/0.8886, allocations: 8.594 kB / 0.5685 GB, free: 98.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.8903, allocations: 0.6579 MB / 0.5691 GB, free: 98.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.8915, allocations: 309.3 kB / 0.5694 GB, free: 98.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006664/0.8982, allocations: 6.46 MB / 0.5757 GB, free: 95.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.9001, allocations: 107.4 kB / 0.5758 GB, free: 95.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/0.9003, allocations: 57.25 kB / 0.5759 GB, free: 95.27 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.0003716/0.9007, allocations: 193 kB / 0.576 GB, free: 95.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003388/0.901, allocations: 152.2 kB / 0.5762 GB, free: 95.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003891/0.9049, allocations: 2.351 MB / 0.5785 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.905, allocations: 14.34 kB / 0.5785 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.905, allocations: 6.344 kB / 0.5785 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.905, allocations: 10.39 kB / 0.5785 GB, free: 94.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007092/0.9121, allocations: 4.791 MB / 0.5832 GB, free: 92.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/0.9121, allocations: 3.938 kB / 0.5832 GB, free: 92.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.9129, allocations: 193 kB / 0.5834 GB, free: 92.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/0.9146, allocations: 0.713 MB / 0.5841 GB, free: 92.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.656e-05/0.9147, allocations: 39.61 kB / 0.5841 GB, free: 92.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007477/0.9222, allocations: 8.131 MB / 0.592 GB, free: 86.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.9222, allocations: 3.25 kB / 0.5921 GB, free: 86.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.9272, allocations: 3.439 MB / 0.5954 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009489/0.9282, allocations: 394.2 kB / 0.5958 GB, free: 84.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/0.9284, allocations: 33.61 kB / 0.5958 GB, free: 84.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007932/0.9292, allocations: 81.7 kB / 0.5959 GB, free: 84.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.9294, allocations: 104.9 kB / 0.596 GB, free: 84.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.15e-05/0.9295, allocations: 36.75 kB / 0.596 GB, free: 84.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001245/0.9308, allocations: 0.936 MB / 0.5969 GB, free: 84.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.493e-06/0.9308, allocations: 2.625 kB / 0.5969 GB, free: 84.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001545/0.9323, allocations: 0.5241 MB / 0.5975 GB, free: 84.11 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.00551/0.9378, allocations: 5.058 MB / 0.6024 GB, free: 81.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003193/0.9411, allocations: 2.333 MB / 0.6047 GB, free: 80.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.9411, allocations: 3.5 kB / 0.6047 GB, free: 80.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.9432, allocations: 1.576 MB / 0.6062 GB, free: 79.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.9451, allocations: 398.6 kB / 0.6066 GB, free: 79.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005997/0.9511, allocations: 4.052 MB / 0.6106 GB, free: 77.58 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001101/0.9522, allocations: 1.764 MB / 0.6123 GB, free: 76.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009679/0.9532, allocations: 323.4 kB / 0.6126 GB, free: 76.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007789/0.954, allocations: 0.7791 MB / 0.6133 GB, free: 76.03 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/0.954, allocations: 0 / 0.6133 GB, free: 76.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06157/1.016, allocations: 43.96 MB / 0.6563 GB, free: 41.87 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/1.016, allocations: 236.2 kB / 0.6565 GB, free: 41.55 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.064/4.08, allocations: 3.609 kB / 0.6565 GB, free: 41.55 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