Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001562/0.001562, allocations: 182 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008848/0.0008846, allocations: 86.61 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002578, allocations: 8 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2463, allocations: 47.56 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3613/0.6076, allocations: 151.4 MB / 0.515 GB, free: 104.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.6079, allocations: 107.3 kB / 0.5151 GB, free: 104.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/1.761, allocations: 357.4 MB / 0.8642 GB, free: 38.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.338e-06/1.761, allocations: 0 / 0.8642 GB, free: 38.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00165/1.763, allocations: 260 kB / 0.8644 GB, free: 38.62 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.04391/1.807, allocations: 11.15 MB / 0.8753 GB, free: 34.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.807, allocations: 6.781 kB / 0.8753 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008988/1.816, allocations: 1.58 MB / 0.8769 GB, free: 34.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03049/1.846, allocations: 5.434 MB / 0.8822 GB, free: 34.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02382/1.87, allocations: 9.497 MB / 0.8914 GB, free: 33.03 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001174/1.871, allocations: 0.8073 MB / 0.8922 GB, free: 33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005598/1.877, allocations: 1.068 MB / 0.8933 GB, free: 33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05203/1.929, allocations: 18.13 MB / 0.911 GB, free: 31.26 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007252/1.93, allocations: 22.05 kB / 0.911 GB, free: 31.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005439/1.935, allocations: 469 kB / 0.9114 GB, free: 30.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009477/1.936, allocations: 0.7452 MB / 0.9122 GB, free: 30.76 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03733/1.974, allocations: 16.83 MB / 0.9286 GB, free: 23.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4591/2.433, allocations: 59.06 MB / 0.9863 GB, free: 41.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02266/2.455, allocations: 26.18 MB / 1.012 GB, free: 26.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04214/2.498, allocations: 22.51 MB / 1.034 GB, free: 25.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00754/2.505, allocations: 5.531 MB / 1.039 GB, free: 25.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=706): time 9.719e-06/2.505, allocations: 0 / 1.039 GB, free: 25.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=724): time 0.07968/2.585, allocations: 43.76 MB / 1.082 GB, free: 16.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/2.585, allocations: 434.1 kB / 1.082 GB, free: 15.89 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005242/2.59, allocations: 3.502 MB / 1.086 GB, free: 14.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001343/2.592, allocations: 132.4 kB / 1.086 GB, free: 14.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003755/2.595, allocations: 4.289 MB / 1.09 GB, free: 11.25 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003009/2.598, allocations: 2.422 MB / 1.092 GB, free: 9.383 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004934/2.599, allocations: 139.8 kB / 1.093 GB, free: 9.277 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004305/2.599, allocations: 0.6024 MB / 1.093 GB, free: 8.844 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005922/2.605, allocations: 4.48 MB / 1.098 GB, free: 6.957 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00741/2.613, allocations: 6.195 MB / 1.104 GB, free: 3.137 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009199/2.622, allocations: 5.509 MB / 1.109 GB, free: 0.625 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.645e-05/2.622, allocations: 10 kB / 1.109 GB, free: 0.625 MB / 458.7 MB Notification: Performance of matching and sorting (n=947) (initialization): time 0.03267/2.655, allocations: 13.99 MB / 1.123 GB, free: 11.88 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.228e-05/2.655, allocations: 24.19 kB / 1.123 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/2.655, allocations: 49.2 kB / 1.123 GB, free: 11.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008328/2.663, allocations: 3.86 MB / 1.127 GB, free: 8.668 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006312/2.67, allocations: 1.318 MB / 1.128 GB, free: 7.641 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/2.69, allocations: 16.78 MB / 1.144 GB, free: 7.602 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006588/2.697, allocations: 385.1 kB / 1.145 GB, free: 7.301 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002081/2.699, allocations: 300.2 kB / 1.145 GB, free: 7.027 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (692): * Single equations (assignments): 651 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.01118/2.71, allocations: 3.943 MB / 1.149 GB, free: 3.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003205/2.713, allocations: 0.5437 MB / 1.149 GB, free: 3.133 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3415/3.055, allocations: 14.28 MB / 1.163 GB, free: 78 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001743/3.055, allocations: 159.3 kB / 1.163 GB, free: 78 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.46e-05/3.055, allocations: 11.33 kB / 1.163 GB, free: 78 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001089/3.055, allocations: 34.98 kB / 1.163 GB, free: 78 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05039/3.105, allocations: 27.08 MB / 1.19 GB, free: 76.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-05/3.106, allocations: 8.844 kB / 1.19 GB, free: 76.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004339/3.11, allocations: 0.8938 MB / 1.191 GB, free: 76.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007829/3.118, allocations: 3.999 MB / 1.195 GB, free: 76.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001344/3.119, allocations: 164.1 kB / 1.195 GB, free: 76.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01913/3.138, allocations: 21.01 MB / 1.215 GB, free: 66.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/3.138, allocations: 1.688 kB / 1.215 GB, free: 66.18 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03375/3.172, allocations: 20.03 MB / 1.235 GB, free: 59.48 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005298/3.177, allocations: 1.653 MB / 1.236 GB, free: 58.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002474/3.18, allocations: 124.1 kB / 1.237 GB, free: 58.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004799/3.185, allocations: 301.2 kB / 1.237 GB, free: 58.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001961/3.187, allocations: 0.5154 MB / 1.237 GB, free: 58.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001257/3.188, allocations: 197.3 kB / 1.238 GB, free: 58.47 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00568/3.194, allocations: 2.681 MB / 1.24 GB, free: 57.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.41e-07/3.194, allocations: 0 / 1.24 GB, free: 57.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01006/3.204, allocations: 2.028 MB / 1.242 GB, free: 57.23 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (486): * Single equations (assignments): 442 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.03381/3.238, allocations: 21.7 MB / 1.263 GB, free: 46.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01836/3.256, allocations: 11.84 MB / 1.275 GB, free: 41.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.865e-06/3.256, allocations: 3.062 kB / 1.275 GB, free: 41.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01091/3.267, allocations: 6.755 MB / 1.282 GB, free: 38.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007295/3.274, allocations: 1.207 MB / 1.283 GB, free: 38.52 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3855/3.66, allocations: 98.61 MB / 1.379 GB, free: 71.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009402/3.669, allocations: 7.19 MB / 1.386 GB, free: 70.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006239/3.676, allocations: 1.664 MB / 1.388 GB, free: 70.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006687/3.682, allocations: 4.14 MB / 1.392 GB, free: 70.65 MB / 0.4948 GB Notification: Performance of SimCode: time 1.092e-06/3.682, allocations: 3.719 kB / 1.392 GB, free: 70.65 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5227/4.205, allocations: 196.2 MB / 1.583 GB, free: 78.45 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/4.205, allocations: 300.3 kB / 1.584 GB, free: 78.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.905/11.11, allocations: 0 / 1.584 GB, free: 78.09 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat