Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.00111/0.001109, allocations: 181.1 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.4 MB / 223.1 MB, free: 9.043 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.0008166/0.0008165, allocations: 90.61 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002237/0.0002238, allocations: 8 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1984, allocations: 47.56 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.3139, allocations: 112.9 MB / 488.8 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.3142, allocations: 95.89 kB / 488.9 MB, free: 15.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3504/0.6646, allocations: 83.67 MB / 0.5592 GB, free: 45.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6646, allocations: 0 / 0.5592 GB, free: 45.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002512/0.6649, allocations: 91.23 kB / 0.5593 GB, free: 45.64 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.009079/0.674, allocations: 3.626 MB / 0.5628 GB, free: 41.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.674, allocations: 8.031 kB / 0.5628 GB, free: 41.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001133/0.6752, allocations: 459.5 kB / 0.5633 GB, free: 41.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003616/0.6788, allocations: 0.752 MB / 0.564 GB, free: 40.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006818/0.6856, allocations: 3.392 MB / 0.5673 GB, free: 37.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.6858, allocations: 238.4 kB / 0.5675 GB, free: 37.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006864/0.6865, allocations: 323.9 kB / 0.5678 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007453/0.694, allocations: 4.196 MB / 0.5719 GB, free: 32.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-05/0.6941, allocations: 4 kB / 0.5719 GB, free: 32.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.6944, allocations: 128 kB / 0.5721 GB, free: 32.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/0.6946, allocations: 150.4 kB / 0.5722 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006402/0.701, allocations: 3.41 MB / 0.5755 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01909/0.7201, allocations: 13.5 MB / 0.5887 GB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004997/0.7251, allocations: 6.959 MB / 0.5955 GB, free: 7.246 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004811/0.73, allocations: 3.321 MB / 0.5988 GB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001144/0.7311, allocations: 0.9234 MB / 0.5997 GB, free: 2.914 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 3.386e-06/0.7312, allocations: 0 / 0.5997 GB, free: 2.914 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01222/0.7434, allocations: 6.933 MB / 0.6064 GB, free: 11.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.25e-05/0.7435, allocations: 222.9 kB / 0.6066 GB, free: 11.53 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.7462, allocations: 1.658 MB / 0.6083 GB, free: 9.875 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.7463, allocations: 53.7 kB / 0.6083 GB, free: 9.816 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.7477, allocations: 1.458 MB / 0.6097 GB, free: 8.348 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000392/0.7481, allocations: 0.5139 MB / 0.6102 GB, free: 7.836 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.073e-05/0.7482, allocations: 40 kB / 0.6103 GB, free: 7.797 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.7483, allocations: 373.9 kB / 0.6106 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.7494, allocations: 0.6989 MB / 0.6113 GB, free: 6.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.7509, allocations: 1.228 MB / 0.6125 GB, free: 5.297 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.7522, allocations: 0.916 MB / 0.6134 GB, free: 4.379 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.7522, allocations: 4 kB / 0.6134 GB, free: 4.375 MB / 394.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003815/0.7561, allocations: 2.495 MB / 0.6158 GB, free: 1.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.7561, allocations: 16.03 kB / 0.6159 GB, free: 1.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.7561, allocations: 19.94 kB / 0.6159 GB, free: 1.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007063/0.7569, allocations: 283.2 kB / 0.6162 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.7583, allocations: 407.3 kB / 0.6165 GB, free: 1.117 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005287/0.7636, allocations: 5.934 MB / 0.6223 GB, free: 10.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.7653, allocations: 99.86 kB / 0.6224 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/0.7656, allocations: 71.98 kB / 0.6225 GB, free: 10.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (204): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002432/0.768, allocations: 1.044 MB / 0.6235 GB, free: 9.559 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006664/0.7687, allocations: 201.6 kB / 0.6237 GB, free: 9.359 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004703/0.7734, allocations: 2.376 MB / 0.626 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.7735, allocations: 16 kB / 0.626 GB, free: 6.902 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/0.7735, allocations: 12 kB / 0.6261 GB, free: 6.891 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.7735, allocations: 11.95 kB / 0.6261 GB, free: 6.879 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009688/0.7832, allocations: 5.416 MB / 0.6314 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.7832, allocations: 0 / 0.6314 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000869/0.7841, allocations: 215.9 kB / 0.6316 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.7852, allocations: 460 kB / 0.632 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.7854, allocations: 39.98 kB / 0.632 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009213/0.7946, allocations: 10.31 MB / 0.6421 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7946, allocations: 0 / 0.6421 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005122/0.7997, allocations: 3.433 MB / 0.6455 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.8009, allocations: 458.4 kB / 0.6459 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005334/0.8014, allocations: 43.94 kB / 0.6459 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.8026, allocations: 67.95 kB / 0.646 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/0.8029, allocations: 109.2 kB / 0.6461 GB, free: 1.438 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/0.803, allocations: 47.92 kB / 0.6462 GB, free: 1.391 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002354/0.8054, allocations: 1.275 MB / 0.6474 GB, free: 128 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8054, allocations: 3.938 kB / 0.6474 GB, free: 124 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.1905/0.9959, allocations: 0.6383 MB / 0.648 GB, free: 96.67 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (115): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005541/1.002, allocations: 4.917 MB / 0.6528 GB, free: 95.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002952/1.004, allocations: 2.267 MB / 0.655 GB, free: 94.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/1.005, allocations: 0 / 0.655 GB, free: 94.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001926/1.006, allocations: 1.64 MB / 0.6566 GB, free: 94.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/1.009, allocations: 0.5056 MB / 0.6571 GB, free: 94.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02627/1.035, allocations: 26.12 MB / 0.6826 GB, free: 78.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002059/1.037, allocations: 2.417 MB / 0.685 GB, free: 77.76 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001616/1.039, allocations: 424.6 kB / 0.6854 GB, free: 77.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/1.04, allocations: 1.192 MB / 0.6866 GB, free: 77.7 MB / 426.7 MB Notification: Performance of SimCode: time 6.182e-06/1.04, allocations: 1.875 kB / 0.6866 GB, free: 77.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07156/1.111, allocations: 54.37 MB / 0.7397 GB, free: 55.07 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/1.112, allocations: 259.2 kB / 0.7399 GB, free: 54.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.173/4.285, allocations: 0 / 0.7399 GB, free: 54.71 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat does not exist to compare? outputFormat=mat