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.001169/0.00117, allocations: 180.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.716/1.716, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009463/0.0009464, allocations: 82.23 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.731e-05/2.744e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3881/0.5084, allocations: 112.4 MB / 475.6 MB, free: 15.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.5088, allocations: 82.27 kB / 475.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4288/0.9377, allocations: 82.61 MB / 0.5452 GB, free: 89.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.9378, allocations: 0 / 0.5452 GB, free: 89.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003579/0.9381, allocations: 80.75 kB / 0.5453 GB, free: 89.02 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.01189/0.95, allocations: 3.303 MB / 0.5485 GB, free: 87.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.9501, allocations: 11.09 kB / 0.5485 GB, free: 87.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005143/0.9552, allocations: 0.7385 MB / 0.5492 GB, free: 87.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009114/0.9644, allocations: 3.368 MB / 0.5525 GB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001811/0.9646, allocations: 100.5 kB / 0.5526 GB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.9657, allocations: 192.2 kB / 0.5528 GB, free: 87.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00709/0.9728, allocations: 3.15 MB / 0.5559 GB, free: 87.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009064/0.9819, allocations: 3.663 MB / 0.5594 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/0.982, allocations: 13.72 kB / 0.5595 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003943/0.9824, allocations: 0.8594 kB / 0.5595 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/0.9826, allocations: 148 kB / 0.5596 GB, free: 86.68 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/1.005, allocations: 12.86 MB / 0.5722 GB, free: 83.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005222/1.01, allocations: 6.794 MB / 0.5788 GB, free: 77.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/1.012, allocations: 1.301 MB / 0.5801 GB, free: 77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006571/1.019, allocations: 3.714 MB / 0.5837 GB, free: 74.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/1.02, allocations: 0.7709 MB / 0.5844 GB, free: 74.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 3.867e-06/1.02, allocations: 0 / 0.5844 GB, free: 74.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=137): time 0.009459/1.03, allocations: 5.247 MB / 0.5896 GB, free: 71.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/1.03, allocations: 225.4 kB / 0.5898 GB, free: 71.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/1.032, allocations: 1.362 MB / 0.5911 GB, free: 71.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001354/1.032, allocations: 25.7 kB / 0.5911 GB, free: 71.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/1.033, allocations: 1.484 MB / 0.5926 GB, free: 69.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/1.033, allocations: 459.5 kB / 0.593 GB, free: 69.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-05/1.033, allocations: 0 / 0.593 GB, free: 69.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/1.034, allocations: 370.5 kB / 0.5934 GB, free: 69.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007648/1.034, allocations: 0.5921 MB / 0.5939 GB, free: 69.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009854/1.035, allocations: 1.134 MB / 0.5951 GB, free: 68.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/1.037, allocations: 0.9354 MB / 0.596 GB, free: 67.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/1.037, allocations: 3.656 kB / 0.596 GB, free: 67.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003535/1.04, allocations: 2.284 MB / 0.5982 GB, free: 66.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/1.04, allocations: 11.53 kB / 0.5982 GB, free: 66.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/1.04, allocations: 18.94 kB / 0.5982 GB, free: 66.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/1.041, allocations: 276.8 kB / 0.5985 GB, free: 66.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.042, allocations: 384.3 kB / 0.5989 GB, free: 66.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004092/1.046, allocations: 5.608 MB / 0.6043 GB, free: 61.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/1.048, allocations: 66.64 kB / 0.6044 GB, free: 61.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/1.049, allocations: 80.64 kB / 0.6045 GB, free: 61.94 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.0003227/1.049, allocations: 154.6 kB / 0.6046 GB, free: 61.8 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003438/1.052, allocations: 2.034 MB / 0.6066 GB, free: 60.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004246/1.053, allocations: 178.6 kB / 0.6068 GB, free: 60.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/1.056, allocations: 2.175 MB / 0.6089 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/1.056, allocations: 10.34 kB / 0.6089 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/1.056, allocations: 9.625 kB / 0.6089 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/1.057, allocations: 10.59 kB / 0.6089 GB, free: 59.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007904/1.064, allocations: 4.685 MB / 0.6135 GB, free: 57.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/1.064, allocations: 10.47 kB / 0.6135 GB, free: 57.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007768/1.065, allocations: 178.9 kB / 0.6137 GB, free: 57.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/1.066, allocations: 453.5 kB / 0.6141 GB, free: 57.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.903e-05/1.067, allocations: 15.08 kB / 0.6141 GB, free: 57.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007191/1.074, allocations: 9.752 MB / 0.6237 GB, free: 49.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/1.074, allocations: 7.578 kB / 0.6237 GB, free: 49.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004505/1.078, allocations: 3.09 MB / 0.6267 GB, free: 46.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009323/1.079, allocations: 419.8 kB / 0.6271 GB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/1.079, allocations: 15.95 kB / 0.6271 GB, free: 46.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008408/1.08, allocations: 48.69 kB / 0.6271 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/1.081, allocations: 101.9 kB / 0.6272 GB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-05/1.081, allocations: 43.8 kB / 0.6273 GB, free: 46.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00157/1.082, allocations: 1.018 MB / 0.6283 GB, free: 45.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.082, allocations: 0 / 0.6283 GB, free: 45.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002499/1.085, allocations: 0.55 MB / 0.6288 GB, free: 44.63 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.005026/1.09, allocations: 4.397 MB / 0.6331 GB, free: 40.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002623/1.092, allocations: 1.987 MB / 0.6351 GB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.093, allocations: 0 / 0.6351 GB, free: 38.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001682/1.094, allocations: 1.457 MB / 0.6365 GB, free: 37.31 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002186/1.096, allocations: 370.9 kB / 0.6368 GB, free: 37.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/1.107, allocations: 5.341 MB / 0.642 GB, free: 32.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/1.109, allocations: 2.41 MB / 0.6444 GB, free: 30.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001636/1.111, allocations: 389.7 kB / 0.6448 GB, free: 30.19 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/1.112, allocations: 1.172 MB / 0.6459 GB, free: 29.11 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.112, allocations: 4 kB / 0.6459 GB, free: 29.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08066/1.193, allocations: 45.34 MB / 0.6902 GB, free: 4.145 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002074/1.193, allocations: 195.8 kB / 0.6904 GB, free: 3.949 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.759/4.952, allocations: 4 kB / 0.6904 GB, free: 3.945 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