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.001079/0.001079, allocations: 175.4 kB / 8.348 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.373/1.373, allocations: 221.5 MB / 230.3 MB, free: 7.555 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.0008263/0.000826, allocations: 100.2 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.089e-05/2.149e-05, allocations: 0 / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.4859, allocations: 113.7 MB / 0.4895 GB, free: 12.99 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.4863, allocations: 95.94 kB / 0.4896 GB, free: 12.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.458/0.9443, allocations: 82.96 MB / 0.5706 GB, free: 96.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.9443, allocations: 5.5 kB / 0.5707 GB, free: 96.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002907/0.9446, allocations: 77.7 kB / 0.5707 GB, free: 96.72 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.01085/0.9555, allocations: 3.31 MB / 0.574 GB, free: 95.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.9555, allocations: 11.53 kB / 0.574 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004792/0.9603, allocations: 0.7399 MB / 0.5747 GB, free: 95.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009134/0.9695, allocations: 3.366 MB / 0.578 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.9698, allocations: 100.7 kB / 0.5781 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001365/0.9712, allocations: 196.5 kB / 0.5783 GB, free: 94.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006627/0.9778, allocations: 3.15 MB / 0.5813 GB, free: 94.62 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00808/0.9859, allocations: 3.661 MB / 0.5849 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.402e-05/0.986, allocations: 10.28 kB / 0.5849 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000296/0.9864, allocations: 3.75 kB / 0.5849 GB, free: 94.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001397/0.9865, allocations: 145.2 kB / 0.5851 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02126/1.008, allocations: 12.85 MB / 0.5976 GB, free: 87.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00532/1.013, allocations: 6.793 MB / 0.6043 GB, free: 81.17 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/1.015, allocations: 1.282 MB / 0.6055 GB, free: 80.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006169/1.021, allocations: 3.749 MB / 0.6092 GB, free: 78.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009763/1.022, allocations: 0.7755 MB / 0.6099 GB, free: 78.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=130): time 3.025e-06/1.022, allocations: 0 / 0.6099 GB, free: 78.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.009317/1.032, allocations: 5.256 MB / 0.6151 GB, free: 75.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/1.032, allocations: 218.6 kB / 0.6153 GB, free: 75.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002393/1.034, allocations: 1.359 MB / 0.6166 GB, free: 74.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002895/1.035, allocations: 33.58 kB / 0.6166 GB, free: 74.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/1.036, allocations: 1.482 MB / 0.6181 GB, free: 73.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005136/1.036, allocations: 463.4 kB / 0.6185 GB, free: 73.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.043e-05/1.037, allocations: 0 / 0.6185 GB, free: 73.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/1.037, allocations: 367.3 kB / 0.6189 GB, free: 72.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008681/1.038, allocations: 0.5943 MB / 0.6194 GB, free: 72.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001057/1.039, allocations: 1.133 MB / 0.6206 GB, free: 71.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/1.04, allocations: 0.9387 MB / 0.6215 GB, free: 71.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/1.04, allocations: 7.5 kB / 0.6215 GB, free: 71.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003999/1.044, allocations: 2.288 MB / 0.6237 GB, free: 70.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/1.044, allocations: 12.88 kB / 0.6237 GB, free: 70.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.577e-05/1.044, allocations: 22.47 kB / 0.6237 GB, free: 70.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006955/1.045, allocations: 277.6 kB / 0.624 GB, free: 70.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/1.046, allocations: 378.1 kB / 0.6244 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/1.05, allocations: 5.609 MB / 0.6298 GB, free: 65.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/1.052, allocations: 62.02 kB / 0.6299 GB, free: 65.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/1.052, allocations: 73.73 kB / 0.63 GB, free: 65.45 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.000347/1.053, allocations: 160.1 kB / 0.6301 GB, free: 65.3 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003423/1.056, allocations: 2.043 MB / 0.6321 GB, free: 64.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002599/1.057, allocations: 181.6 kB / 0.6323 GB, free: 64.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/1.06, allocations: 2.191 MB / 0.6344 GB, free: 63.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/1.06, allocations: 14.62 kB / 0.6344 GB, free: 63.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/1.06, allocations: 3.781 kB / 0.6345 GB, free: 63.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/1.06, allocations: 10.72 kB / 0.6345 GB, free: 63.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007304/1.067, allocations: 4.706 MB / 0.6391 GB, free: 59.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.068, allocations: 4.094 kB / 0.6391 GB, free: 59.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/1.068, allocations: 179.9 kB / 0.6392 GB, free: 59.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/1.069, allocations: 451 kB / 0.6397 GB, free: 59.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.815e-05/1.069, allocations: 22.61 kB / 0.6397 GB, free: 59.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007217/1.077, allocations: 9.751 MB / 0.6492 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/1.077, allocations: 7 kB / 0.6492 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004534/1.081, allocations: 3.096 MB / 0.6522 GB, free: 46.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009749/1.082, allocations: 411.5 kB / 0.6526 GB, free: 46.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/1.083, allocations: 8 kB / 0.6526 GB, free: 46.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008274/1.083, allocations: 50.95 kB / 0.6527 GB, free: 46.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/1.084, allocations: 106.6 kB / 0.6528 GB, free: 46.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.413e-05/1.084, allocations: 35.94 kB / 0.6528 GB, free: 46.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001404/1.085, allocations: 1.014 MB / 0.6538 GB, free: 45.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.085, allocations: 4 kB / 0.6538 GB, free: 45.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002383/1.088, allocations: 0.5465 MB / 0.6544 GB, free: 44.67 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.005273/1.093, allocations: 4.318 MB / 0.6586 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002694/1.096, allocations: 1.985 MB / 0.6605 GB, free: 38.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.096, allocations: 0 / 0.6605 GB, free: 38.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001793/1.097, allocations: 1.469 MB / 0.6619 GB, free: 37.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/1.1, allocations: 372.3 kB / 0.6623 GB, free: 37.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/1.111, allocations: 5.323 MB / 0.6675 GB, free: 32.49 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/1.113, allocations: 2.41 MB / 0.6698 GB, free: 30.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001534/1.114, allocations: 390.9 kB / 0.6702 GB, free: 30.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/1.115, allocations: 1.162 MB / 0.6714 GB, free: 29.25 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.115, allocations: 0 / 0.6714 GB, free: 29.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0829/1.198, allocations: 45.41 MB / 0.7157 GB, free: 452 kB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002963/1.199, allocations: 228.7 kB / 0.7159 GB, free: 148 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.304/4.503, allocations: 0 / 0.7159 GB, free: 148 kB / 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