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.001103/0.001103, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001258/0.001258, allocations: 182.8 kB / 17.19 MB, free: 5.906 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.48/1.48, allocations: 223.2 MB / 241.1 MB, free: 5.395 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.0003073, allocations: 11.77 kB / 300.8 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 50.42 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.02963/0.1402, allocations: 27.21 MB / 378.5 MB, free: 272 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02249/0.1627, allocations: 9.275 MB / 387.7 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007705/0.1705, allocations: 211.2 kB / 387.9 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008194/0.1787, allocations: 1.932 MB / 389.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01298/0.1917, allocations: 3.242 MB / 393.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006784/0.1985, allocations: 1.577 MB / 394.7 MB, free: 8 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0227/0.2212, allocations: 11.56 MB / 406.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03395/0.2552, allocations: 17.55 MB / 423.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2574/0.5127, allocations: 4.511 MB / 428.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01149/0.5243, allocations: 4.942 MB / 433.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005424/0.5297, allocations: 0.7347 MB / 434 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009879/0.5396, allocations: 1.048 MB / 435 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006938/0.5466, allocations: 2.298 MB / 437.3 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006888/0.5535, allocations: 2.42 MB / 439.8 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02363/0.5772, allocations: 21.17 MB / 460.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.5772, allocations: 0.5 kB / 460.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5772, allocations: 2.406 kB / 460.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008511/0.5781, allocations: 2.031 kB / 460.9 MB, free: 6.711 MB / 350.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.03957/0.6177, allocations: 12.49 MB / 473.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6177, allocations: 7.5 kB / 473.4 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006654/0.6244, allocations: 1.539 MB / 475 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03834/0.6628, allocations: 6.673 MB / 481.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01992/0.6827, allocations: 7.831 MB / 489.5 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001041/0.6838, allocations: 0.8094 MB / 490.3 MB, free: 6.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007196/0.691, allocations: 1.069 MB / 491.4 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05336/0.7444, allocations: 17.24 MB / 0.4967 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007743/0.7452, allocations: 18.8 kB / 0.4967 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005512/0.7508, allocations: 450.6 kB / 0.4971 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001003/0.7518, allocations: 0.6484 MB / 0.4978 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04152/0.7933, allocations: 16.29 MB / 0.5137 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1158/0.9092, allocations: 55.57 MB / 0.5679 GB, free: 2.867 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3132/1.222, allocations: 33.31 MB / 0.6005 GB, free: 109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02341/1.246, allocations: 10.36 MB / 0.6106 GB, free: 108.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004985/1.251, allocations: 3.141 MB / 0.6137 GB, free: 108.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=444): time 9.418e-06/1.251, allocations: 0.5156 kB / 0.6137 GB, free: 108.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=462): time 0.05194/1.303, allocations: 23.8 MB / 0.6369 GB, free: 98.49 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/1.303, allocations: 413.4 kB / 0.6373 GB, free: 98.04 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006716/1.31, allocations: 4.474 MB / 0.6417 GB, free: 96.34 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009541/1.311, allocations: 101.2 kB / 0.6418 GB, free: 96.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004277/1.315, allocations: 4.734 MB / 0.6464 GB, free: 92.75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002099/1.317, allocations: 1.576 MB / 0.6479 GB, free: 91.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003963/1.318, allocations: 125.2 kB / 0.648 GB, free: 91.45 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003088/1.318, allocations: 0.5441 MB / 0.6486 GB, free: 91.03 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004311/1.322, allocations: 2.85 MB / 0.6514 GB, free: 89.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005334/1.328, allocations: 5.01 MB / 0.6562 GB, free: 86.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00547/1.333, allocations: 3.894 MB / 0.6601 GB, free: 83.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.782e-05/1.333, allocations: 20 kB / 0.6601 GB, free: 83.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.01842/1.352, allocations: 9.624 MB / 0.6695 GB, free: 73.78 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.433e-05/1.352, allocations: 32 kB / 0.6695 GB, free: 73.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/1.352, allocations: 68.88 kB / 0.6696 GB, free: 73.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003975/1.356, allocations: 1.494 MB / 0.671 GB, free: 72.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005988/1.362, allocations: 1.349 MB / 0.6723 GB, free: 70.83 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01845/1.38, allocations: 16.63 MB / 0.6886 GB, free: 53.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00666/1.387, allocations: 359.7 kB / 0.6889 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/1.389, allocations: 280 kB / 0.6892 GB, free: 52.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 295 * 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 (696): * Single equations (assignments): 690 * 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%) 5,(1,100.0%) 4,(1,100.0%) 13,(1,100.0%) 4,(14,39.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009962/1.399, allocations: 3.908 MB / 0.693 GB, free: 49.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/1.401, allocations: 0.5056 MB / 0.6935 GB, free: 48.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01487/1.415, allocations: 8.052 MB / 0.7014 GB, free: 40.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/1.415, allocations: 48 kB / 0.7014 GB, free: 40.32 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-05/1.416, allocations: 21.75 kB / 0.7014 GB, free: 40.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.965e-05/1.416, allocations: 27.84 kB / 0.7015 GB, free: 40.28 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03235/1.448, allocations: 17.8 MB / 0.7188 GB, free: 22.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/1.448, allocations: 4 kB / 0.7188 GB, free: 22.37 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003188/1.451, allocations: 0.7723 MB / 0.7196 GB, free: 21.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003919/1.455, allocations: 1.553 MB / 0.7211 GB, free: 20.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005836/1.456, allocations: 112 kB / 0.7212 GB, free: 19.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01986/1.476, allocations: 19.96 MB / 0.7407 GB, free: 15.06 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/1.476, allocations: 7.938 kB / 0.7407 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02074/1.496, allocations: 12.13 MB / 0.7526 GB, free: 2.625 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004471/1.501, allocations: 1.166 MB / 0.7537 GB, free: 1.434 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002407/1.503, allocations: 100 kB / 0.7538 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003935/1.507, allocations: 247.8 kB / 0.754 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009721/1.508, allocations: 335.7 kB / 0.7544 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003161/1.509, allocations: 140 kB / 0.7545 GB, free: 0.625 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005787/1.514, allocations: 3.037 MB / 0.7575 GB, free: 13.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.514, allocations: 4 kB / 0.7575 GB, free: 13.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009409/1.524, allocations: 1.883 MB / 0.7593 GB, free: 11.7 MB / 494.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 (406): * Single equations (assignments): 397 * 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%) 5,(1,100.0%) 3,(14,40.3%) 44,(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.3263/1.85, allocations: 14.11 MB / 0.7731 GB, free: 155.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0204/1.871, allocations: 8.193 MB / 0.7811 GB, free: 154.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/1.871, allocations: 2.469 kB / 0.7811 GB, free: 154.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01073/1.881, allocations: 4.732 MB / 0.7857 GB, free: 153.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008373/1.89, allocations: 1.201 MB / 0.7869 GB, free: 153.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1459/2.036, allocations: 102 MB / 0.8865 GB, free: 70.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009216/2.045, allocations: 7.015 MB / 0.8933 GB, free: 65.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006258/2.051, allocations: 1.863 MB / 0.8951 GB, free: 63.85 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006804/2.058, allocations: 4.062 MB / 0.8991 GB, free: 60.07 MB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/2.058, allocations: 0 / 0.8991 GB, free: 60.07 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4782/2.536, allocations: 147.8 MB / 1.043 GB, free: 107.4 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/2.537, allocations: 315 kB / 1.044 GB, free: 107 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.71/8.246, allocations: 0 / 1.044 GB, free: 107 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