Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.001072/0.001072, allocations: 95.86 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.001102/0.001102, allocations: 183.4 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.538/1.538, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 8.922 kB / 300.8 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1229, allocations: 50.43 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.00943/0.1324, allocations: 7.685 MB / 358.9 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00683/0.1393, allocations: 3.306 MB / 362.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.1409, allocations: 43.81 kB / 362.3 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.1427, allocations: 0.6183 MB / 362.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00214/0.1449, allocations: 0.6932 MB / 363.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000971/0.1459, allocations: 323.4 kB / 363.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.1479, allocations: 1.571 MB / 365.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.1492, allocations: 1.248 MB / 366.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008865/0.1501, allocations: 0.7862 MB / 367.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001105/0.1513, allocations: 0.9845 MB / 368.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.1514, allocations: 116 kB / 368.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005048/0.152, allocations: 211.9 kB / 368.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005479/0.1525, allocations: 0.588 MB / 369.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003761/0.1529, allocations: 460.5 kB / 369.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00227/0.1552, allocations: 2.945 MB / 372.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1552, allocations: 4 kB / 372.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1552, allocations: 0 / 372.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.493e-05/0.1553, allocations: 0 / 372.8 MB, free: 5.965 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.003985/0.1592, allocations: 2.289 MB / 375.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.1593, allocations: 12.03 kB / 375.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003355/0.1596, allocations: 270.4 kB / 375.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006103/0.1603, allocations: 273.1 kB / 375.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/0.1626, allocations: 1.311 MB / 376.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.1627, allocations: 139.7 kB / 377.1 MB, free: 1.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002572/0.1629, allocations: 195.9 kB / 377.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003487/0.1664, allocations: 2.412 MB / 379.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.1665, allocations: 11.91 kB / 379.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.1667, allocations: 72 kB / 379.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/0.1668, allocations: 95.67 kB / 379.9 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.1698, allocations: 1.97 MB / 381.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.1807, allocations: 7.378 MB / 389.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001816/0.1826, allocations: 1.357 MB / 390.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002608/0.1828, allocations: 122.1 kB / 390.7 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001006/0.1839, allocations: 0.6867 MB / 391.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 4.128e-06/0.1839, allocations: 4 kB / 391.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.01519/0.1991, allocations: 7.303 MB / 398.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.766e-05/0.1992, allocations: 167.2 kB / 398.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/0.2011, allocations: 1.36 MB / 400.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.322e-05/0.2012, allocations: 45.7 kB / 400.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007852/0.202, allocations: 0.9365 MB / 401.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.2024, allocations: 417.9 kB / 401.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.138e-05/0.2025, allocations: 32 kB / 401.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2026, allocations: 357.9 kB / 402 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009423/0.2036, allocations: 0.6403 MB / 402.6 MB, free: 7.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.2049, allocations: 0.9967 MB / 403.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.2061, allocations: 0.7872 MB / 404.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.2061, allocations: 0 / 404.4 MB, free: 5.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003606/0.2097, allocations: 2.32 MB / 406.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.2098, allocations: 12 kB / 406.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.2098, allocations: 8 kB / 406.7 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.2109, allocations: 474.4 kB / 407.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.212, allocations: 303.6 kB / 407.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006426/0.2184, allocations: 6.522 MB / 414 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.2198, allocations: 99.97 kB / 414.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.2199, allocations: 63.88 kB / 414.2 MB, free: 11.26 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (151): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001214/0.2211, allocations: 0.6339 MB / 414.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.2214, allocations: 154 kB / 415 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003561/0.225, allocations: 2.143 MB / 417.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.225, allocations: 12 kB / 417.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.225, allocations: 4 kB / 417.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.2251, allocations: 8.062 kB / 417.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006934/0.232, allocations: 4.41 MB / 421.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.232, allocations: 8.062 kB / 421.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.2331, allocations: 195.8 kB / 421.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/0.2344, allocations: 0.5114 MB / 422.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.026e-05/0.2345, allocations: 43.91 kB / 422.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2363/0.4709, allocations: 7.981 MB / 430.3 MB, free: 58.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.4709, allocations: 3.984 kB / 430.3 MB, free: 58.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005178/0.4761, allocations: 3.249 MB / 433.5 MB, free: 58.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000998/0.4772, allocations: 365.2 kB / 433.9 MB, free: 58.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/0.4774, allocations: 35.28 kB / 433.9 MB, free: 58.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008143/0.4782, allocations: 74.98 kB / 434 MB, free: 58.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003123/0.4785, allocations: 97.31 kB / 434.1 MB, free: 58.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.4786, allocations: 37.72 kB / 434.1 MB, free: 58.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001686/0.4803, allocations: 0.9364 MB / 435.1 MB, free: 58.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4803, allocations: 3.562 kB / 435.1 MB, free: 58.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00179/0.4821, allocations: 449 kB / 435.5 MB, free: 58.13 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (107): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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 {(2,100.0%) 12,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006643/0.4888, allocations: 4.943 MB / 440.4 MB, free: 56.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.4923, allocations: 2.237 MB / 442.7 MB, free: 55.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.4923, allocations: 4.125 kB / 442.7 MB, free: 55.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.4942, allocations: 1.514 MB / 444.2 MB, free: 54.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.496, allocations: 381.7 kB / 444.6 MB, free: 54.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01938/0.5154, allocations: 18.6 MB / 463.2 MB, free: 40.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.5165, allocations: 1.744 MB / 464.9 MB, free: 38.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.5175, allocations: 332.9 kB / 465.2 MB, free: 38.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008299/0.5183, allocations: 0.7414 MB / 466 MB, free: 37.36 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5183, allocations: 0 / 466 MB, free: 37.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05725/0.5756, allocations: 38.03 MB / 0.4922 GB, free: 15.76 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002479/0.5759, allocations: 264.7 kB / 0.4924 GB, free: 15.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.782/3.358, allocations: 0 / 0.4924 GB, free: 15.4 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat