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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.001434/0.001434, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.327/1.327, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002772, allocations: 5.844 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.1, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.01353/0.1136, allocations: 10.85 MB / 362.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009315/0.1229, allocations: 4.568 MB / 366.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.1251, allocations: 67.69 kB / 366.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002537/0.1276, allocations: 0.871 MB / 367.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003855/0.1315, allocations: 1.207 MB / 368.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.1338, allocations: 0.6976 MB / 369.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005136/0.139, allocations: 2.785 MB / 372.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003135/0.1421, allocations: 2.25 MB / 374.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.1443, allocations: 1.265 MB / 375.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.1467, allocations: 1.517 MB / 377.3 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004352/0.1471, allocations: 204 kB / 377.5 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.1483, allocations: 399.7 kB / 377.9 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006563/0.149, allocations: 0.7436 MB / 378.7 MB, free: 128 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00083/0.1498, allocations: 0.746 MB / 379.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006094/0.1559, allocations: 5.512 MB / 384.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.156, allocations: 8 kB / 384.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.529e-06/0.156, allocations: 0 / 384.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002276/0.1562, allocations: 3.938 kB / 384.9 MB, free: 9.832 MB / 318.1 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.01162/0.1678, allocations: 3.805 MB / 388.7 MB, free: 5.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.1679, allocations: 12.03 kB / 388.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001584/0.1695, allocations: 459.5 kB / 389.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004892/0.1744, allocations: 0.827 MB / 390 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005536/0.18, allocations: 2.323 MB / 392.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/0.1802, allocations: 242.4 kB / 392.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006429/0.1809, allocations: 319.9 kB / 392.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00775/0.1886, allocations: 4.233 MB / 397.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.459e-05/0.1887, allocations: 3.984 kB / 397.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003/0.189, allocations: 136 kB / 397.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001605/0.1892, allocations: 150.4 kB / 397.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006711/0.1959, allocations: 3.613 MB / 401 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02365/0.2196, allocations: 13.42 MB / 414.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006862/0.2265, allocations: 6.958 MB / 421.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006208/0.2327, allocations: 3.265 MB / 424.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2021/0.4349, allocations: 0.9064 MB / 425.6 MB, free: 61.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=143): time 4.909e-06/0.4349, allocations: 0 / 425.6 MB, free: 61.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=152): time 0.0174/0.4523, allocations: 6.929 MB / 432.5 MB, free: 59.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.4525, allocations: 230.7 kB / 432.7 MB, free: 59.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004238/0.4567, allocations: 1.834 MB / 434.6 MB, free: 59.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003063/0.4571, allocations: 50.61 kB / 434.6 MB, free: 59.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.4587, allocations: 1.462 MB / 436.1 MB, free: 58.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008014/0.4595, allocations: 0.5128 MB / 436.6 MB, free: 58.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002176/0.4597, allocations: 36.12 kB / 436.6 MB, free: 58.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.46, allocations: 373.8 kB / 437 MB, free: 57.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.4615, allocations: 0.6993 MB / 437.7 MB, free: 57.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.4633, allocations: 1.227 MB / 438.9 MB, free: 57.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.4651, allocations: 0.9174 MB / 439.8 MB, free: 56.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.841e-05/0.4651, allocations: 7.828 kB / 439.8 MB, free: 56.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004632/0.4698, allocations: 2.496 MB / 442.3 MB, free: 55.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.4698, allocations: 11.88 kB / 442.3 MB, free: 55.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.94e-05/0.4699, allocations: 15.81 kB / 442.4 MB, free: 55.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007369/0.4706, allocations: 284.2 kB / 442.6 MB, free: 55.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.472, allocations: 406.9 kB / 443 MB, free: 55.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004439/0.4765, allocations: 5.92 MB / 449 MB, free: 50.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.4783, allocations: 94.53 kB / 449 MB, free: 50.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.4785, allocations: 72.84 kB / 449.1 MB, free: 50.22 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (204): * Single equations (assignments): 200 * 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%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002092/0.4806, allocations: 1.037 MB / 450.2 MB, free: 49.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004331/0.481, allocations: 205.1 kB / 450.4 MB, free: 49.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.4846, allocations: 2.382 MB / 452.7 MB, free: 48.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.4846, allocations: 11.62 kB / 452.7 MB, free: 48.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.882e-05/0.4846, allocations: 10.12 kB / 452.8 MB, free: 48.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.4846, allocations: 7.453 kB / 452.8 MB, free: 48.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008714/0.4934, allocations: 5.453 MB / 458.2 MB, free: 44.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/0.4934, allocations: 4 kB / 458.2 MB, free: 44.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.4942, allocations: 203.7 kB / 458.4 MB, free: 44.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/0.4953, allocations: 463.3 kB / 458.9 MB, free: 44.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/0.4955, allocations: 43.98 kB / 458.9 MB, free: 44.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007852/0.5033, allocations: 10.32 MB / 469.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5034, allocations: 0 / 469.2 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.5087, allocations: 3.411 MB / 472.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.5099, allocations: 442.5 kB / 473.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006868/0.5106, allocations: 36 kB / 473.1 MB, free: 29.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009328/0.5116, allocations: 72.08 kB / 473.2 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.5119, allocations: 113 kB / 473.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.143e-05/0.5119, allocations: 51.98 kB / 473.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001577/0.5135, allocations: 1.263 MB / 474.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5135, allocations: 0 / 474.6 MB, free: 27.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002389/0.5159, allocations: 0.5807 MB / 475.2 MB, free: 27.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 107 * 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%) 3,(1,100.0%) 8,(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.005299/0.5212, allocations: 4.72 MB / 479.9 MB, free: 22.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003259/0.5245, allocations: 2.258 MB / 482.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.5246, allocations: 0 / 482.2 MB, free: 20.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.5267, allocations: 1.656 MB / 483.8 MB, free: 18.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.529, allocations: 0.4926 MB / 484.3 MB, free: 18.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03519/0.5642, allocations: 26.13 MB / 0.4985 GB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003102/0.5674, allocations: 2.417 MB / 0.5008 GB, free: 4.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001851/0.5693, allocations: 417.1 kB / 0.5012 GB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/0.571, allocations: 1.191 MB / 0.5024 GB, free: 2.703 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.571, allocations: 3.938 kB / 0.5024 GB, free: 2.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08355/0.6546, allocations: 50.38 MB / 0.5516 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002528/0.6549, allocations: 289.6 kB / 0.5519 GB, free: 440 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.057/3.711, allocations: 0 / 0.5519 GB, free: 440 kB / 414.1 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