Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002386/0.002385, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.275/2.275, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 90.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004171/0.0004173, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1032, allocations: 47.58 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor): time 0.01502/0.1183, allocations: 7.652 MB / 382.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009114/0.1275, allocations: 3.234 MB / 385.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001668/0.1292, allocations: 39.81 kB / 385.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002918/0.1322, allocations: 0.6222 MB / 386.2 MB, free: 3.723 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003713/0.136, allocations: 0.6932 MB / 386.9 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.138, allocations: 315.4 kB / 387.2 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004414/0.1424, allocations: 1.579 MB / 388.8 MB, free: 1.133 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2707/0.4132, allocations: 1.223 MB / 390 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002091/0.4153, allocations: 0.7737 MB / 390.8 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003065/0.4184, allocations: 1.001 MB / 391.8 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008883/0.4194, allocations: 121 kB / 391.9 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001502/0.4209, allocations: 210.5 kB / 392.1 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001265/0.4222, allocations: 0.5842 MB / 392.7 MB, free: 9.918 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.4235, allocations: 460.7 kB / 393.1 MB, free: 9.887 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006487/0.43, allocations: 2.947 MB / 396.1 MB, free: 9.703 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4301, allocations: 3.281 kB / 396.1 MB, free: 9.703 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.4301, allocations: 1.156 kB / 396.1 MB, free: 9.703 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001509/0.4302, allocations: 0 / 396.1 MB, free: 9.703 MB / 282.7 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.009211/0.4395, allocations: 2.271 MB / 398.4 MB, free: 8.605 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.056e-05/0.4395, allocations: 9.594 kB / 398.4 MB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001368/0.4409, allocations: 277.6 kB / 398.6 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001634/0.4426, allocations: 272.1 kB / 398.9 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004418/0.4471, allocations: 1.259 MB / 400.2 MB, free: 8.055 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.4474, allocations: 137.4 kB / 400.3 MB, free: 8.051 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009506/0.4483, allocations: 189.8 kB / 400.5 MB, free: 8.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009246/0.4576, allocations: 2.414 MB / 402.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001184/0.4578, allocations: 6.344 kB / 402.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003637/0.4582, allocations: 73.91 kB / 403 MB, free: 7.582 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001891/0.4584, allocations: 98.14 kB / 403.1 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007782/0.4662, allocations: 1.971 MB / 405 MB, free: 7.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/0.4893, allocations: 7.389 MB / 412.4 MB, free: 2.836 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00328/0.4926, allocations: 1.355 MB / 413.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003674/0.4931, allocations: 121.1 kB / 413.9 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001972/0.495, allocations: 0.687 MB / 414.6 MB, free: 1.43 MB / 282.7 MB Notification: Performance of pre-optimization done (n=99): time 4.108e-06/0.4951, allocations: 0 / 414.6 MB, free: 1.43 MB / 282.7 MB Notification: Performance of matching and sorting (n=121): time 0.02975/0.5249, allocations: 7.39 MB / 422 MB, free: 11.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/0.5251, allocations: 175.1 kB / 422.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.5286, allocations: 1.364 MB / 423.5 MB, free: 9.957 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/0.5291, allocations: 49.7 kB / 423.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/0.5303, allocations: 0.8944 MB / 424.5 MB, free: 9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008178/0.5311, allocations: 427.5 kB / 424.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.5313, allocations: 24 kB / 424.9 MB, free: 8.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002237/0.5315, allocations: 366.8 kB / 425.3 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002152/0.5337, allocations: 0.6364 MB / 425.9 MB, free: 7.559 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002734/0.5365, allocations: 0.9966 MB / 426.9 MB, free: 6.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002654/0.5392, allocations: 0.7911 MB / 427.7 MB, free: 5.629 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.183e-05/0.5393, allocations: 7.188 kB / 427.7 MB, free: 5.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.007485/0.5468, allocations: 2.223 MB / 429.9 MB, free: 3.363 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.5469, allocations: 12 kB / 429.9 MB, free: 3.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.5469, allocations: 8 kB / 429.9 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/0.549, allocations: 477.9 kB / 430.4 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/0.5515, allocations: 295.6 kB / 430.7 MB, free: 2.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.5634, allocations: 6.547 MB / 437.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/0.5658, allocations: 91.91 kB / 437.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003771/0.5662, allocations: 55.98 kB / 437.4 MB, free: 11.49 MB / 314.7 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 (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.002419/0.5687, allocations: 0.6301 MB / 438 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006126/0.5693, allocations: 158.1 kB / 438.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007407/0.5767, allocations: 2.135 MB / 440.3 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-05/0.5768, allocations: 12 kB / 440.3 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/0.5768, allocations: 4 kB / 440.3 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.712e-05/0.5769, allocations: 12.05 kB / 440.3 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.5924, allocations: 4.413 MB / 444.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/0.5925, allocations: 0 / 444.7 MB, free: 3.969 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/0.5943, allocations: 199.7 kB / 444.9 MB, free: 3.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002708/0.5971, allocations: 0.5125 MB / 445.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003202/0.5974, allocations: 35.97 kB / 445.5 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/0.6113, allocations: 7.985 MB / 453.5 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.6114, allocations: 4 kB / 453.5 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009805/0.6212, allocations: 3.239 MB / 456.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/0.6229, allocations: 374.4 kB / 457.1 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006361/0.6236, allocations: 39.98 kB / 457.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.6254, allocations: 71.94 kB / 457.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/0.6259, allocations: 96.75 kB / 457.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000152/0.6261, allocations: 39.98 kB / 457.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002686/0.6288, allocations: 0.9402 MB / 458.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.062e-06/0.6288, allocations: 0 / 458.3 MB, free: 5.707 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003287/0.6321, allocations: 447.9 kB / 458.7 MB, free: 5.27 MB / 330.7 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.01199/0.6442, allocations: 4.95 MB / 463.6 MB, free: 204 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006933/0.6512, allocations: 2.246 MB / 465.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.6512, allocations: 0 / 465.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004476/0.6557, allocations: 1.507 MB / 467.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003595/0.6594, allocations: 380.5 kB / 467.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04753/0.7069, allocations: 18.81 MB / 486.6 MB, free: 8.539 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/0.7096, allocations: 1.721 MB / 488.3 MB, free: 6.785 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002129/0.7118, allocations: 0.7531 MB / 489 MB, free: 6.031 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7119, allocations: 0 / 489 MB, free: 6.031 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.126/4.837, allocations: 79.54 MB / 0.5553 GB, free: 126.3 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor_res.mat does not exist to compare? outputFormat=mat