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.0009339/0.0009339, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.335/1.335, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000818/0.000818, allocations: 86.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.557e-05, allocations: 8 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07904/0.07908, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.3957, allocations: 112.8 MB / 482.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.3959, allocations: 87.39 kB / 483 MB, free: 12.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3757/0.7716, allocations: 83.67 MB / 0.5534 GB, free: 91.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.7717, allocations: 0 / 0.5534 GB, free: 91.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.7719, allocations: 79.16 kB / 0.5535 GB, free: 91.61 MB / 410.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.006518/0.7784, allocations: 3.307 MB / 0.5567 GB, free: 90.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.7784, allocations: 11.66 kB / 0.5567 GB, free: 90.28 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009152/0.7794, allocations: 456.5 kB / 0.5572 GB, free: 90.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003608/0.783, allocations: 0.7366 MB / 0.5579 GB, free: 90.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006939/0.7899, allocations: 3.368 MB / 0.5612 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.7902, allocations: 241.9 kB / 0.5614 GB, free: 89.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007427/0.7909, allocations: 328.7 kB / 0.5617 GB, free: 89.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006922/0.7978, allocations: 4.121 MB / 0.5658 GB, free: 89.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.369e-05/0.7979, allocations: 18.19 kB / 0.5658 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000291/0.7982, allocations: 131.3 kB / 0.5659 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001072/0.7984, allocations: 149.4 kB / 0.566 GB, free: 89.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004832/0.8032, allocations: 3.327 MB / 0.5693 GB, free: 88.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/0.8189, allocations: 13.48 MB / 0.5824 GB, free: 81.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004755/0.8237, allocations: 6.877 MB / 0.5892 GB, free: 74.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001789/0.8255, allocations: 1.354 MB / 0.5905 GB, free: 74.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00539/0.831, allocations: 3.82 MB / 0.5942 GB, free: 72.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009503/0.8319, allocations: 0.8171 MB / 0.595 GB, free: 71.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 3.035e-06/0.8319, allocations: 2.75 kB / 0.595 GB, free: 71.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=137): time 0.006957/0.8389, allocations: 5.039 MB / 0.5999 GB, free: 69.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.839, allocations: 229.7 kB / 0.6002 GB, free: 68.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/0.8411, allocations: 1.644 MB / 0.6018 GB, free: 68.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.915e-05/0.8412, allocations: 52.98 kB / 0.6018 GB, free: 68.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009458/0.8421, allocations: 1.483 MB / 0.6033 GB, free: 66.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.8424, allocations: 483.4 kB / 0.6037 GB, free: 66.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.889e-05/0.8425, allocations: 31.22 kB / 0.6038 GB, free: 66.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.113e-05/0.8426, allocations: 378.7 kB / 0.6041 GB, free: 66.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007997/0.8434, allocations: 0.6272 MB / 0.6047 GB, free: 66.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009656/0.8444, allocations: 1.168 MB / 0.6059 GB, free: 65.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009728/0.8453, allocations: 0.8522 MB / 0.6067 GB, free: 64.72 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.8454, allocations: 3.281 kB / 0.6067 GB, free: 64.72 MB / 410.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.002987/0.8483, allocations: 2.354 MB / 0.609 GB, free: 63.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.8484, allocations: 9.938 kB / 0.609 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.8484, allocations: 15 kB / 0.609 GB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006072/0.849, allocations: 293 kB / 0.6093 GB, free: 63.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.8502, allocations: 373.2 kB / 0.6097 GB, free: 63.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003891/0.8541, allocations: 5.84 MB / 0.6154 GB, free: 58.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.8557, allocations: 90.94 kB / 0.6155 GB, free: 58.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.8558, allocations: 79.66 kB / 0.6155 GB, free: 58.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (194): * Single equations (assignments): 190 * 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%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002437/0.8561, allocations: 201.4 kB / 0.6157 GB, free: 58.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.8563, allocations: 209.5 kB / 0.6159 GB, free: 57.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.8594, allocations: 2.199 MB / 0.6181 GB, free: 55.94 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.8594, allocations: 15.94 kB / 0.6181 GB, free: 55.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.8594, allocations: 8 kB / 0.6181 GB, free: 55.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.8595, allocations: 5.953 kB / 0.6181 GB, free: 55.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006364/0.8658, allocations: 5.107 MB / 0.6231 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.8659, allocations: 0 / 0.6231 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006903/0.8666, allocations: 180.4 kB / 0.6233 GB, free: 51.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009707/0.8675, allocations: 461.9 kB / 0.6237 GB, free: 51.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.09e-05/0.8676, allocations: 39.19 kB / 0.6237 GB, free: 51.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006777/0.8744, allocations: 10.14 MB / 0.6336 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.8745, allocations: 3.938 kB / 0.6336 GB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003741/0.8782, allocations: 3.11 MB / 0.6367 GB, free: 37.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009152/0.8791, allocations: 435.3 kB / 0.6371 GB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003927/0.8795, allocations: 43.8 kB / 0.6371 GB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.8805, allocations: 63.3 kB / 0.6372 GB, free: 37.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.8807, allocations: 102.3 kB / 0.6373 GB, free: 37.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.267e-05/0.8808, allocations: 43.94 kB / 0.6373 GB, free: 37.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001539/0.8823, allocations: 1.26 MB / 0.6386 GB, free: 36.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8824, allocations: 0 / 0.6386 GB, free: 36.13 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001938/0.8843, allocations: 0.6286 MB / 0.6392 GB, free: 35.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 94 * 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%) 3,(1,100.0%) 8,(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.004669/0.889, allocations: 4.495 MB / 0.6436 GB, free: 31.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00257/0.8916, allocations: 2.091 MB / 0.6456 GB, free: 29.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.8916, allocations: 0 / 0.6456 GB, free: 29.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.8933, allocations: 1.521 MB / 0.6471 GB, free: 27.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/0.8955, allocations: 0.5015 MB / 0.6476 GB, free: 27.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009559/0.9051, allocations: 5.52 MB / 0.653 GB, free: 22.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/0.9066, allocations: 2.411 MB / 0.6553 GB, free: 20.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001289/0.9079, allocations: 411.5 kB / 0.6557 GB, free: 20.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.9091, allocations: 1.177 MB / 0.6569 GB, free: 19.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.011e-06/0.9091, allocations: 0 / 0.6569 GB, free: 19.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2687/1.178, allocations: 54.24 MB / 0.7098 GB, free: 92.15 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/1.178, allocations: 233.7 kB / 0.7101 GB, free: 91.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.215/4.393, allocations: 0 / 0.7101 GB, free: 91.84 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