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.002259/0.002259, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.283/2.283, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 89.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.728e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3356, allocations: 47.57 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1945/0.5302, allocations: 106.6 MB / 469 MB, free: 11.57 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003291/0.5305, allocations: 83.95 kB / 469.1 MB, free: 11.49 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4665/0.997, allocations: 43.93 MB / 0.501 GB, free: 97.96 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.9971, allocations: 0.5312 kB / 0.501 GB, free: 97.96 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003198/0.9974, allocations: 53.38 kB / 0.5011 GB, free: 97.96 MB / 395.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.009847/1.007, allocations: 2.081 MB / 0.5031 GB, free: 97.41 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.018e-05/1.007, allocations: 9.5 kB / 0.5031 GB, free: 97.41 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002478/1.01, allocations: 270.5 kB / 0.5034 GB, free: 97.29 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008041/1.018, allocations: 1.432 MB / 0.5048 GB, free: 96.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/1.018, allocations: 62.59 kB / 0.5048 GB, free: 96.89 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/1.019, allocations: 116.3 kB / 0.5049 GB, free: 96.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008853/1.028, allocations: 1.739 MB / 0.5066 GB, free: 96.88 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/1.039, allocations: 2.096 MB / 0.5087 GB, free: 96.63 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001524/1.039, allocations: 7.391 kB / 0.5087 GB, free: 96.62 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004232/1.039, allocations: 2.469 kB / 0.5087 GB, free: 96.62 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002271/1.039, allocations: 87.95 kB / 0.5088 GB, free: 96.62 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02737/1.067, allocations: 7.077 MB / 0.5157 GB, free: 94.91 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002956/1.07, allocations: 1.303 MB / 0.5169 GB, free: 94.59 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/1.072, allocations: 0.6921 MB / 0.5176 GB, free: 94.58 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004205/1.072, allocations: 137.1 kB / 0.5178 GB, free: 94.48 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/1.074, allocations: 0.6579 MB / 0.5184 GB, free: 94.38 MB / 395.1 MB Notification: Performance of pre-optimization done (n=102): time 5.421e-06/1.074, allocations: 0 / 0.5184 GB, free: 94.38 MB / 395.1 MB Notification: Performance of matching and sorting (n=130): time 0.01828/1.092, allocations: 6.065 MB / 0.5243 GB, free: 92.59 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/1.092, allocations: 195.4 kB / 0.5245 GB, free: 92.37 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/1.094, allocations: 1.005 MB / 0.5255 GB, free: 91.95 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002784/1.095, allocations: 30.3 kB / 0.5255 GB, free: 91.92 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009185/1.096, allocations: 0.9072 MB / 0.5264 GB, free: 91.17 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006594/1.096, allocations: 437.9 kB / 0.5268 GB, free: 90.84 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/1.096, allocations: 0 / 0.5268 GB, free: 90.84 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/1.097, allocations: 375.2 kB / 0.5272 GB, free: 90.5 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001405/1.098, allocations: 0.638 MB / 0.5278 GB, free: 90.25 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/1.1, allocations: 0.994 MB / 0.5288 GB, free: 89.59 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/1.101, allocations: 0.7978 MB / 0.5295 GB, free: 89.29 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/1.101, allocations: 5.594 kB / 0.5296 GB, free: 89.29 MB / 395.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005655/1.107, allocations: 2.234 MB / 0.5317 GB, free: 88.55 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/1.107, allocations: 7.531 kB / 0.5317 GB, free: 88.55 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/1.107, allocations: 7.625 kB / 0.5317 GB, free: 88.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002598/1.11, allocations: 0.649 MB / 0.5324 GB, free: 88.37 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002208/1.112, allocations: 300 kB / 0.5327 GB, free: 88.36 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/1.122, allocations: 6.178 MB / 0.5387 GB, free: 84.41 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/1.124, allocations: 79.22 kB / 0.5388 GB, free: 84.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/1.125, allocations: 59.47 kB / 0.5388 GB, free: 84.39 MB / 395.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 145 * 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: 2 * 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: 2 {(5,84.0%) 23,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003671/1.125, allocations: 140.3 kB / 0.539 GB, free: 84.28 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005302/1.13, allocations: 2.061 MB / 0.541 GB, free: 83.55 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005017/1.131, allocations: 145 kB / 0.5411 GB, free: 83.47 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00568/1.137, allocations: 2.213 MB / 0.5433 GB, free: 82.65 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/1.137, allocations: 13.12 kB / 0.5433 GB, free: 82.65 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/1.137, allocations: 7.281 kB / 0.5433 GB, free: 82.65 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-05/1.137, allocations: 10.23 kB / 0.5433 GB, free: 82.65 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/1.148, allocations: 4.478 MB / 0.5477 GB, free: 80.75 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/1.148, allocations: 3.688 kB / 0.5477 GB, free: 80.75 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001448/1.149, allocations: 178.1 kB / 0.5479 GB, free: 80.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003106/1.152, allocations: 0.7404 MB / 0.5486 GB, free: 80.53 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/1.153, allocations: 13.58 kB / 0.5486 GB, free: 80.53 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01198/1.165, allocations: 7.829 MB / 0.5562 GB, free: 75.18 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.036e-06/1.165, allocations: 3.438 kB / 0.5562 GB, free: 75.18 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00725/1.172, allocations: 3.288 MB / 0.5595 GB, free: 73.68 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/1.173, allocations: 367.3 kB / 0.5598 GB, free: 73.35 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003338/1.174, allocations: 13.31 kB / 0.5598 GB, free: 73.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/1.175, allocations: 53.52 kB / 0.5599 GB, free: 73.3 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/1.175, allocations: 111.4 kB / 0.56 GB, free: 73.24 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.176, allocations: 39.42 kB / 0.56 GB, free: 73.2 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001454/1.177, allocations: 0.7626 MB / 0.5608 GB, free: 72.51 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.31e-07/1.177, allocations: 0 / 0.5608 GB, free: 72.51 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00229/1.179, allocations: 455.8 kB / 0.5612 GB, free: 72.07 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * 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: 3 * 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: 3 {(7,63.3%) 21,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008736/1.188, allocations: 4.801 MB / 0.5659 GB, free: 67.72 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004936/1.193, allocations: 2.236 MB / 0.5681 GB, free: 65.63 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.193, allocations: 4.062 kB / 0.5681 GB, free: 65.63 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003612/1.197, allocations: 1.532 MB / 0.5696 GB, free: 64.21 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/1.199, allocations: 299.2 kB / 0.5698 GB, free: 63.98 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009863/1.209, allocations: 3.944 MB / 0.5737 GB, free: 60.51 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001547/1.211, allocations: 1.74 MB / 0.5754 GB, free: 59.09 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001542/1.213, allocations: 0.7722 MB / 0.5762 GB, free: 58.38 MB / 395.1 MB Notification: Performance of SimCode: time 3.025e-06/1.213, allocations: 0 / 0.5762 GB, free: 58.38 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.83/5.043, allocations: 71.1 MB / 0.6456 GB, free: 6.473 MB / 411.1 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