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.0007828/0.0007829, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.0008119/0.0008121, allocations: 182.5 kB / 17.21 MB, free: 6.336 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.449/1.449, allocations: 223.2 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.000268, allocations: 6.781 kB / 300.9 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1344, allocations: 50.42 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01047/0.1449, allocations: 8.366 MB / 359.7 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007181/0.1522, allocations: 3.235 MB / 362.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001748/0.154, allocations: 43.81 kB / 363 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.1562, allocations: 0.5984 MB / 363.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002815/0.159, allocations: 0.6916 MB / 364.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.1606, allocations: 335.3 kB / 364.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00391/0.1645, allocations: 2.462 MB / 367.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002449/0.167, allocations: 1.256 MB / 368.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.169, allocations: 0.8365 MB / 369.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.1717, allocations: 1.156 MB / 370.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006318/0.1723, allocations: 120 kB / 370.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.1736, allocations: 219.9 kB / 370.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001095/0.1747, allocations: 0.6191 MB / 371.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009133/0.1756, allocations: 456.5 kB / 371.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003257/0.1789, allocations: 2.984 MB / 374.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.1789, allocations: 3.938 kB / 374.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1789, allocations: 0 / 374.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.768e-05/0.179, allocations: 0 / 374.7 MB, free: 4.129 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.004612/0.1836, allocations: 2.293 MB / 377 MB, free: 1.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.1837, allocations: 8.031 kB / 377 MB, free: 1.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004269/0.1841, allocations: 278.4 kB / 377.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006263/0.1848, allocations: 265.1 kB / 377.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002082/0.1869, allocations: 1.307 MB / 378.8 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.187, allocations: 143.7 kB / 379 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.1873, allocations: 195.8 kB / 379.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003971/0.1912, allocations: 2.42 MB / 381.6 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.035e-05/0.1913, allocations: 19.89 kB / 381.6 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00018/0.1915, allocations: 72 kB / 381.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.1916, allocations: 95.67 kB / 381.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004635/0.1962, allocations: 1.974 MB / 383.7 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.2079, allocations: 7.417 MB / 391.2 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/0.2097, allocations: 1.361 MB / 392.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.2111, allocations: 0.8894 MB / 393.4 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002279/0.2114, allocations: 114.1 kB / 393.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.2124, allocations: 0.6827 MB / 394.2 MB, free: 144 kB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 2.384e-06/0.2124, allocations: 0 / 394.2 MB, free: 144 kB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.01549/0.2279, allocations: 7.401 MB / 401.6 MB, free: 8.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.228, allocations: 167.2 kB / 401.8 MB, free: 8.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002047/0.2301, allocations: 1.403 MB / 403.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.844e-05/0.2302, allocations: 45.7 kB / 403.2 MB, free: 6.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.2311, allocations: 0.9326 MB / 404.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003783/0.2315, allocations: 421.9 kB / 404.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.823e-05/0.2316, allocations: 32 kB / 404.6 MB, free: 5.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.2318, allocations: 361.9 kB / 404.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009975/0.2328, allocations: 0.6364 MB / 405.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.234, allocations: 0.9936 MB / 406.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.2352, allocations: 0.795 MB / 407.4 MB, free: 2.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.2352, allocations: 4 kB / 407.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003729/0.239, allocations: 2.324 MB / 409.7 MB, free: 192 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.239, allocations: 8 kB / 409.7 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.239, allocations: 12 kB / 409.7 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.2402, allocations: 0.5 MB / 410.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.2413, allocations: 291.6 kB / 410.5 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007083/0.2484, allocations: 6.584 MB / 417.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.2498, allocations: 99.97 kB / 417.2 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.25, allocations: 48 kB / 417.2 MB, free: 8.238 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (148): * Single equations (assignments): 143 * 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%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001539/0.2515, allocations: 0.6378 MB / 417.9 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004288/0.2519, allocations: 158.1 kB / 418 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004053/0.256, allocations: 2.143 MB / 420.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.256, allocations: 12 kB / 420.2 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.617e-05/0.2561, allocations: 8 kB / 420.2 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.2561, allocations: 3.984 kB / 420.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00807/0.2641, allocations: 4.467 MB / 424.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.2642, allocations: 0 / 424.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007737/0.265, allocations: 196.1 kB / 424.8 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.234/0.499, allocations: 0.5316 MB / 425.4 MB, free: 62.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003009/0.4993, allocations: 33.83 kB / 425.4 MB, free: 62.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007155/0.5065, allocations: 8.014 MB / 433.4 MB, free: 57.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5065, allocations: 3.562 kB / 433.4 MB, free: 57.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007/0.5135, allocations: 3.073 MB / 436.5 MB, free: 57.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.5147, allocations: 377.1 kB / 436.9 MB, free: 57.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.5149, allocations: 32.77 kB / 436.9 MB, free: 57.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007788/0.5157, allocations: 73.75 kB / 437 MB, free: 57.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/0.516, allocations: 94.92 kB / 437.1 MB, free: 57.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.5161, allocations: 39.02 kB / 437.1 MB, free: 57.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.5184, allocations: 0.9679 MB / 438.1 MB, free: 57.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5184, allocations: 0.9688 kB / 438.1 MB, free: 57.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002553/0.521, allocations: 449.6 kB / 438.5 MB, free: 57.06 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 (104): * Single equations (assignments): 97 * 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%) 6,(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.007052/0.5281, allocations: 3.989 MB / 442.5 MB, free: 56.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003435/0.5315, allocations: 2.253 MB / 444.8 MB, free: 55.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.5315, allocations: 0 / 444.8 MB, free: 55.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.5335, allocations: 1.516 MB / 446.3 MB, free: 54.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.5355, allocations: 408.1 kB / 446.7 MB, free: 54.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.5544, allocations: 12.79 MB / 459.5 MB, free: 45.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/0.5556, allocations: 1.708 MB / 461.2 MB, free: 43.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0011/0.5567, allocations: 321 kB / 461.5 MB, free: 42.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008374/0.5575, allocations: 0.7414 MB / 462.2 MB, free: 42.24 MB / 350.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5576, allocations: 0 / 462.2 MB, free: 42.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07259/0.6302, allocations: 38.44 MB / 0.4889 GB, free: 4.238 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.6304, allocations: 268.8 kB / 0.4892 GB, free: 3.879 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.771/3.402, allocations: 0 / 0.4892 GB, free: 3.879 MB / 350.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