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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007498/0.0007498, allocations: 89.66 kB / 16.32 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008706/0.0008707, allocations: 179.1 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002807/0.0002808, allocations: 9.469 kB / 301 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1241, allocations: 50.41 MB / 351.4 MB, free: 3.898 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.2735/0.3976, allocations: 29.73 MB / 381.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02052/0.4182, allocations: 8.973 MB / 390.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007817/0.426, allocations: 224.9 kB / 390.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007873/0.4339, allocations: 1.771 MB / 392.1 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01434/0.4483, allocations: 3.101 MB / 395.2 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007868/0.4562, allocations: 1.537 MB / 396.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02593/0.4822, allocations: 15.78 MB / 412.5 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03779/0.52, allocations: 17.73 MB / 430.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01111/0.5311, allocations: 4.84 MB / 435 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01163/0.5428, allocations: 5.51 MB / 440.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003735/0.5466, allocations: 0.7383 MB / 441.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007056/0.5536, allocations: 1.101 MB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004922/0.5586, allocations: 2.39 MB / 444.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006544/0.5652, allocations: 2.418 MB / 447.2 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02932/0.5945, allocations: 21.25 MB / 468.4 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.5946, allocations: 0 / 468.4 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.5946, allocations: 0 / 468.4 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007946/0.5954, allocations: 0 / 468.4 MB, free: 0.6523 MB / 366.1 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.03852/0.6339, allocations: 12.57 MB / 481 MB, free: 3.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.634, allocations: 8.031 kB / 481 MB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00644/0.6405, allocations: 1.551 MB / 482.6 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03683/0.6773, allocations: 6.74 MB / 489.3 MB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01797/0.6953, allocations: 7.799 MB / 497.1 MB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008594/0.6962, allocations: 0.8147 MB / 497.9 MB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004974/0.7012, allocations: 1.07 MB / 499 MB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04946/0.7507, allocations: 17.34 MB / 0.5042 GB, free: 480 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007327/0.7514, allocations: 23.78 kB / 0.5043 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004583/0.756, allocations: 452 kB / 0.5047 GB, free: 4 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001059/0.7571, allocations: 0.6397 MB / 0.5053 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5045/1.262, allocations: 16.29 MB / 0.5212 GB, free: 110.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/1.365, allocations: 55.62 MB / 0.5755 GB, free: 76.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02111/1.387, allocations: 33.31 MB / 0.6081 GB, free: 44.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007384/1.394, allocations: 4.446 MB / 0.6124 GB, free: 40.42 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02011/1.414, allocations: 12.17 MB / 0.6243 GB, free: 28.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003788/1.418, allocations: 3.093 MB / 0.6273 GB, free: 25.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=434): time 5.861e-06/1.418, allocations: 0 / 0.6273 GB, free: 25.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=452): time 0.04965/1.468, allocations: 25.05 MB / 0.6518 GB, free: 15.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002739/1.468, allocations: 415.4 kB / 0.6522 GB, free: 15.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008436/1.476, allocations: 4.531 MB / 0.6566 GB, free: 10.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/1.478, allocations: 101.7 kB / 0.6567 GB, free: 10.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005713/1.483, allocations: 4.75 MB / 0.6613 GB, free: 6.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002653/1.486, allocations: 1.54 MB / 0.6628 GB, free: 4.492 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004329/1.486, allocations: 120 kB / 0.663 GB, free: 4.375 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004259/1.487, allocations: 0.5501 MB / 0.6635 GB, free: 3.816 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004841/1.492, allocations: 2.811 MB / 0.6662 GB, free: 1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006552/1.498, allocations: 4.995 MB / 0.6711 GB, free: 11.04 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006727/1.505, allocations: 3.85 MB / 0.6749 GB, free: 7.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.218e-05/1.505, allocations: 20 kB / 0.6749 GB, free: 7.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01951/1.525, allocations: 9.53 MB / 0.6842 GB, free: 13.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/1.525, allocations: 36.22 kB / 0.6842 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/1.525, allocations: 64 kB / 0.6843 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004327/1.529, allocations: 1.494 MB / 0.6858 GB, free: 11.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005948/1.535, allocations: 1.326 MB / 0.687 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3188/1.854, allocations: 16.27 MB / 0.7029 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006219/1.86, allocations: 359 kB / 0.7033 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.862, allocations: 282.1 kB / 0.7035 GB, free: 143.9 MB / 478.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 682 * 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.01054/1.873, allocations: 3.918 MB / 0.7074 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.874, allocations: 0.4999 MB / 0.7079 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01703/1.891, allocations: 7.948 MB / 0.7156 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-05/1.891, allocations: 45.22 kB / 0.7157 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.842e-05/1.891, allocations: 17.69 kB / 0.7157 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.097e-05/1.891, allocations: 22.97 kB / 0.7157 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03554/1.927, allocations: 17.44 MB / 0.7327 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-05/1.927, allocations: 3.469 kB / 0.7327 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003573/1.931, allocations: 0.7522 MB / 0.7335 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004051/1.935, allocations: 1.555 MB / 0.735 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007968/1.936, allocations: 111 kB / 0.7351 GB, free: 132.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.954, allocations: 19.55 MB / 0.7542 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.954, allocations: 7.125 kB / 0.7542 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01617/1.97, allocations: 11.43 MB / 0.7654 GB, free: 108.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00318/1.974, allocations: 1.158 MB / 0.7665 GB, free: 107.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/1.975, allocations: 102.5 kB / 0.7666 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00262/1.977, allocations: 240.3 kB / 0.7668 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007226/1.978, allocations: 341.3 kB / 0.7671 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/1.978, allocations: 139.4 kB / 0.7673 GB, free: 107 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004847/1.983, allocations: 3.079 MB / 0.7703 GB, free: 104.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.983, allocations: 0 / 0.7703 GB, free: 104.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01003/1.993, allocations: 1.88 MB / 0.7721 GB, free: 102.6 MB / 478.1 MB 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.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,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 (396): * Single equations (assignments): 387 * 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.3%) 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.02019/2.014, allocations: 12.48 MB / 0.7843 GB, free: 90.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01267/2.026, allocations: 8.05 MB / 0.7922 GB, free: 82.09 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/2.026, allocations: 4 kB / 0.7922 GB, free: 82.08 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007543/2.034, allocations: 4.648 MB / 0.7967 GB, free: 77.35 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00714/2.041, allocations: 1.274 MB / 0.798 GB, free: 76.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1324/2.173, allocations: 57.93 MB / 0.8545 GB, free: 15.34 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01441/2.188, allocations: 6.837 MB / 0.8612 GB, free: 8.469 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.009084/2.197, allocations: 1.846 MB / 0.863 GB, free: 6.617 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00777/2.205, allocations: 4.057 MB / 0.867 GB, free: 2.559 MB / 478.1 MB Notification: Performance of SimCode: time 2.505e-06/2.205, allocations: 0 / 0.867 GB, free: 2.559 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5323/2.737, allocations: 148.3 MB / 1.012 GB, free: 44.64 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/2.737, allocations: 314.1 kB / 1.012 GB, free: 44.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.649/8.387, allocations: 3.938 kB / 1.012 GB, free: 44.28 MB / 494.1 MB (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