Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.000907/0.0009069, allocations: 98.92 kB / 17 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009584/0.0009587, allocations: 191 kB / 17.9 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002476, allocations: 8 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1192, allocations: 51.48 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01023/0.1294, allocations: 8.425 MB / 366.7 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007547/0.137, allocations: 3.407 MB / 370.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.1386, allocations: 43.81 kB / 370.2 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00183/0.1405, allocations: 0.6061 MB / 370.8 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00241/0.1429, allocations: 0.7344 MB / 371.5 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.1441, allocations: 339 kB / 371.9 MB, free: 404 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2683/0.4124, allocations: 2.467 MB / 374.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002426/0.4148, allocations: 1.257 MB / 375.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.4173, allocations: 0.8509 MB / 376.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001867/0.4192, allocations: 1.154 MB / 377.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002437/0.4195, allocations: 121.5 kB / 377.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007194/0.4202, allocations: 228.5 kB / 377.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008975/0.4211, allocations: 0.6184 MB / 378.5 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006956/0.4218, allocations: 461.8 kB / 379 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00385/0.4257, allocations: 2.997 MB / 382 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.4257, allocations: 0 / 382 MB, free: 9.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4257, allocations: 2.609 kB / 382 MB, free: 9.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.844e-05/0.4258, allocations: 0 / 382 MB, free: 9.27 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.004867/0.4306, allocations: 2.309 MB / 384.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.4307, allocations: 10.06 kB / 384.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004091/0.4311, allocations: 278.5 kB / 384.6 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007884/0.4319, allocations: 280.2 kB / 384.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002074/0.434, allocations: 1.3 MB / 386.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.4341, allocations: 145.5 kB / 386.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003/0.4344, allocations: 187.4 kB / 386.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004175/0.4386, allocations: 2.428 MB / 388.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.452e-05/0.4387, allocations: 10.62 kB / 388.9 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.4389, allocations: 77.16 kB / 389 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.439, allocations: 97.78 kB / 389.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003572/0.4426, allocations: 1.973 MB / 391.1 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.4537, allocations: 7.437 MB / 398.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.4556, allocations: 1.35 MB / 399.9 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.4573, allocations: 0.893 MB / 400.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002896/0.4576, allocations: 123.1 kB / 400.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/0.4587, allocations: 0.6847 MB / 401.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 2.394e-06/0.4587, allocations: 0 / 401.6 MB, free: 15.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.01572/0.4745, allocations: 7.396 MB / 408.9 MB, free: 7.527 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.4746, allocations: 175.2 kB / 409.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/0.4769, allocations: 1.415 MB / 410.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.265e-05/0.477, allocations: 45.7 kB / 410.6 MB, free: 5.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009119/0.4779, allocations: 0.944 MB / 411.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003679/0.4783, allocations: 418.6 kB / 411.9 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.632e-05/0.4783, allocations: 36 kB / 412 MB, free: 4.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4785, allocations: 353.9 kB / 412.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009828/0.4795, allocations: 0.6325 MB / 412.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.4807, allocations: 0.9936 MB / 413.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.4819, allocations: 0.7881 MB / 414.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.482, allocations: 8 kB / 414.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003943/0.4859, allocations: 2.337 MB / 417.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.4859, allocations: 8 kB / 417.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.486, allocations: 12 kB / 417.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.4871, allocations: 488.2 kB / 417.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.4882, allocations: 301.6 kB / 417.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006449/0.4947, allocations: 6.584 MB / 424.4 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.4959, allocations: 103.8 kB / 424.5 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.4961, allocations: 55.98 kB / 424.6 MB, free: 7.215 MB / 334.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.001262/0.4973, allocations: 0.6307 MB / 425.2 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.4976, allocations: 158.1 kB / 425.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003428/0.501, allocations: 2.144 MB / 427.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.501, allocations: 12 kB / 427.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.5011, allocations: 15.94 kB / 427.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.5011, allocations: 11.97 kB / 427.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00675/0.5078, allocations: 4.459 MB / 432 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.5079, allocations: 0 / 432 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/0.5086, allocations: 195.7 kB / 432.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.5099, allocations: 0.533 MB / 432.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.231e-05/0.5101, allocations: 35.98 kB / 432.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007201/0.5173, allocations: 8.022 MB / 440.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/0.5173, allocations: 9.906 kB / 440.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004915/0.5222, allocations: 3.073 MB / 443.9 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009343/0.5232, allocations: 378.9 kB / 444.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002224/0.5234, allocations: 35.98 kB / 444.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007465/0.5242, allocations: 71.94 kB / 444.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.5244, allocations: 96.75 kB / 444.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-05/0.5245, allocations: 39.98 kB / 444.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001552/0.5261, allocations: 0.9772 MB / 445.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5261, allocations: 4 kB / 445.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001782/0.5279, allocations: 448 kB / 445.9 MB, free: 1.09 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.005798/0.5337, allocations: 3.998 MB / 449.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003511/0.5372, allocations: 2.241 MB / 452.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.5372, allocations: 4 kB / 452.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.5395, allocations: 1.522 MB / 453.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.5417, allocations: 396.2 kB / 454.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02257/0.5643, allocations: 12.85 MB / 466.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001599/0.566, allocations: 1.702 MB / 468.6 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.5672, allocations: 329 kB / 468.9 MB, free: 9.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009634/0.5682, allocations: 0.7531 MB / 469.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of SimCode: time 9.31e-07/0.5682, allocations: 0 / 469.7 MB, free: 8.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06515/0.6333, allocations: 38.63 MB / 0.4964 GB, free: 2.488 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.6336, allocations: 271.7 kB / 0.4967 GB, free: 2.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.524, allocations: 0 / 0.4967 GB, free: 2.133 MB / 414.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat