Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_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.001014/0.001013, allocations: 176.4 kB / 8.346 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.515/1.515, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.001007/0.001007, allocations: 95.45 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.984e-05/1.986e-05, allocations: 0 / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 50.43 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5654, allocations: 152.1 MB / 0.527 GB, free: 6.504 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.5657, allocations: 107.9 kB / 0.5271 GB, free: 6.398 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233/1.799, allocations: 352.1 MB / 0.871 GB, free: 0.625 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.266e-06/1.799, allocations: 0 / 0.871 GB, free: 0.625 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001019/1.8, allocations: 255.7 kB / 0.8712 GB, free: 384 kB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.6485/2.448, allocations: 10.36 MB / 0.8814 GB, free: 21.48 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.378e-05/2.449, allocations: 16.67 kB / 0.8814 GB, free: 21.47 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03287/2.481, allocations: 4.745 MB / 0.886 GB, free: 20.88 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02776/2.509, allocations: 9.562 MB / 0.8953 GB, free: 19.85 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008971/2.51, allocations: 347.8 kB / 0.8957 GB, free: 19.85 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005176/2.515, allocations: 0.6229 MB / 0.8963 GB, free: 19.84 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03206/2.547, allocations: 13.65 MB / 0.9096 GB, free: 19.79 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04962/2.597, allocations: 15.31 MB / 0.9246 GB, free: 18.65 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000852/2.598, allocations: 18.62 kB / 0.9246 GB, free: 18.64 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004636/2.603, allocations: 10.05 kB / 0.9246 GB, free: 18.64 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/2.604, allocations: 0.7623 MB / 0.9253 GB, free: 18.62 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/2.713, allocations: 54.68 MB / 0.9787 GB, free: 0.8984 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03154/2.745, allocations: 32.79 MB / 1.011 GB, free: 3.988 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008274/2.753, allocations: 4.357 MB / 1.015 GB, free: 2.27 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03134/2.785, allocations: 12.72 MB / 1.027 GB, free: 12.49 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005201/2.79, allocations: 3.095 MB / 1.03 GB, free: 10.11 MB / 490.8 MB Notification: Performance of pre-optimization done (n=432): time 6.983e-06/2.79, allocations: 0 / 1.03 GB, free: 10.11 MB / 490.8 MB Notification: Performance of matching and sorting (n=450): time 0.04596/2.836, allocations: 20.88 MB / 1.051 GB, free: 8.395 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002205/2.836, allocations: 416.4 kB / 1.051 GB, free: 7.906 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006174/2.842, allocations: 3.365 MB / 1.055 GB, free: 4.898 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0008626/2.843, allocations: 25.7 kB / 1.055 GB, free: 4.867 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.00535/2.849, allocations: 4.76 MB / 1.059 GB, free: 0.6211 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.3652/3.214, allocations: 1.473 MB / 1.061 GB, free: 83.43 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006646/3.215, allocations: 0 / 1.061 GB, free: 83.43 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0005348/3.215, allocations: 0.5391 MB / 1.061 GB, free: 83.11 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005147/3.22, allocations: 2.814 MB / 1.064 GB, free: 83.09 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00622/3.227, allocations: 4.931 MB / 1.069 GB, free: 80.59 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/3.237, allocations: 4.729 MB / 1.073 GB, free: 80.55 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001905/3.237, allocations: 21.97 kB / 1.073 GB, free: 80.55 MB / 0.4949 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02569/3.263, allocations: 9.937 MB / 1.083 GB, free: 80.27 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 9.861e-05/3.263, allocations: 32.5 kB / 1.083 GB, free: 80.27 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/3.263, allocations: 65.38 kB / 1.083 GB, free: 80.27 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004652/3.268, allocations: 1.465 MB / 1.085 GB, free: 80.21 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006064/3.274, allocations: 1.366 MB / 1.086 GB, free: 80.21 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/3.291, allocations: 15.69 MB / 1.101 GB, free: 74 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006393/3.298, allocations: 280.5 kB / 1.102 GB, free: 74 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001666/3.3, allocations: 290.8 kB / 1.102 GB, free: 74 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (686): * Single equations (assignments): 680 * 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: 5 * 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: 5 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001401/3.301, allocations: 291.4 kB / 1.102 GB, free: 73.89 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01536/3.316, allocations: 7.794 MB / 1.11 GB, free: 73.39 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002284/3.319, allocations: 466.6 kB / 1.11 GB, free: 73.15 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01747/3.336, allocations: 8.602 MB / 1.119 GB, free: 72.62 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.338e-05/3.336, allocations: 51.8 kB / 1.119 GB, free: 72.62 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.354e-05/3.336, allocations: 14.72 kB / 1.119 GB, free: 72.62 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.969e-05/3.336, allocations: 26.55 kB / 1.119 GB, free: 72.61 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03395/3.37, allocations: 17.11 MB / 1.135 GB, free: 71.43 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/3.37, allocations: 5.625 kB / 1.135 GB, free: 71.43 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003868/3.374, allocations: 0.7899 MB / 1.136 GB, free: 71.43 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00413/3.378, allocations: 1.527 MB / 1.138 GB, free: 71.36 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008959/3.379, allocations: 43.58 kB / 1.138 GB, free: 71.36 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0213/3.401, allocations: 18.86 MB / 1.156 GB, free: 62.39 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.058e-05/3.401, allocations: 12.86 kB / 1.156 GB, free: 62.39 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.022/3.423, allocations: 12.79 MB / 1.169 GB, free: 57.64 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003807/3.427, allocations: 1.15 MB / 1.17 GB, free: 56.96 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001665/3.428, allocations: 21.8 kB / 1.17 GB, free: 56.95 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003568/3.432, allocations: 225.9 kB / 1.17 GB, free: 56.94 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007726/3.433, allocations: 329.7 kB / 1.17 GB, free: 56.89 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/3.433, allocations: 132.9 kB / 1.17 GB, free: 56.86 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004595/3.438, allocations: 2.499 MB / 1.173 GB, free: 55.82 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.71e-07/3.438, allocations: 4 kB / 1.173 GB, free: 55.81 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0105/3.448, allocations: 1.722 MB / 1.174 GB, free: 55.79 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.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 (395): * Single equations (assignments): 386 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(14,41.8%) 44,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02327/3.471, allocations: 14.94 MB / 1.189 GB, free: 46.79 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01469/3.486, allocations: 7.877 MB / 1.197 GB, free: 39.74 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/3.486, allocations: 6.844 kB / 1.197 GB, free: 39.74 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008085/3.494, allocations: 4.575 MB / 1.201 GB, free: 35.59 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006886/3.501, allocations: 0.9307 MB / 1.202 GB, free: 34.88 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04712/3.548, allocations: 19.59 MB / 1.221 GB, free: 17.93 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008812/3.557, allocations: 7.024 MB / 1.228 GB, free: 12.65 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.006087/3.563, allocations: 1.828 MB / 1.23 GB, free: 11.44 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006506/3.57, allocations: 4.037 MB / 1.234 GB, free: 7.68 MB / 0.4949 GB Notification: Performance of SimCode: time 1.052e-06/3.57, allocations: 0 / 1.234 GB, free: 7.68 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.574/4.144, allocations: 140.7 MB / 1.371 GB, free: 28.75 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/4.144, allocations: 232.5 kB / 1.371 GB, free: 28.46 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.8/10.94, allocations: 0 / 1.371 GB, free: 28.46 MB / 0.4949 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat