Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001459/0.001459, allocations: 185.2 kB / 16.41 MB, free: 5.727 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.91/1.91, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001128/0.001128, allocations: 81.64 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003914, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3339, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.5202, allocations: 112.9 MB / 487.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.5206, allocations: 91.89 kB / 487.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5647/1.085, allocations: 83.67 MB / 0.5579 GB, free: 57.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.725e-06/1.085, allocations: 0 / 0.5579 GB, free: 57.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000321/1.086, allocations: 83.88 kB / 0.558 GB, free: 57.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.01451/1.1, allocations: 3.637 MB / 0.5616 GB, free: 53.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/1.1, allocations: 8.031 kB / 0.5616 GB, free: 53.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001795/1.102, allocations: 459.5 kB / 0.562 GB, free: 53.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005995/1.108, allocations: 0.745 MB / 0.5627 GB, free: 52.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01187/1.12, allocations: 3.391 MB / 0.5661 GB, free: 49.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002588/1.12, allocations: 238.4 kB / 0.5663 GB, free: 49.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/1.122, allocations: 319.9 kB / 0.5666 GB, free: 48.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/1.134, allocations: 4.193 MB / 0.5707 GB, free: 44.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/1.134, allocations: 7.984 kB / 0.5707 GB, free: 44.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005753/1.135, allocations: 136 kB / 0.5708 GB, free: 44.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/1.135, allocations: 150.4 kB / 0.571 GB, free: 44.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/1.145, allocations: 3.41 MB / 0.5743 GB, free: 40.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03274/1.178, allocations: 13.5 MB / 0.5875 GB, free: 26.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.188, allocations: 6.956 MB / 0.5943 GB, free: 19.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009718/1.198, allocations: 3.32 MB / 0.5975 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/1.2, allocations: 0.9118 MB / 0.5984 GB, free: 14.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 5.36e-06/1.2, allocations: 0 / 0.5984 GB, free: 14.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.02382/1.224, allocations: 6.933 MB / 0.6052 GB, free: 7.551 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.605e-05/1.224, allocations: 230.9 kB / 0.6054 GB, free: 7.273 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/1.228, allocations: 1.658 MB / 0.607 GB, free: 5.617 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003321/1.228, allocations: 49.7 kB / 0.6071 GB, free: 5.562 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001369/1.23, allocations: 1.392 MB / 0.6084 GB, free: 4.156 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00073/1.23, allocations: 0.516 MB / 0.6089 GB, free: 3.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/1.231, allocations: 36 kB / 0.609 GB, free: 3.598 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/1.231, allocations: 382.8 kB / 0.6093 GB, free: 3.215 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/1.233, allocations: 0.6949 MB / 0.61 GB, free: 2.523 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00246/1.235, allocations: 1.221 MB / 0.6112 GB, free: 1.094 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/1.238, allocations: 0.9238 MB / 0.6121 GB, free: 172 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.56e-05/1.238, allocations: 4 kB / 0.6121 GB, free: 168 kB / 378.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007174/1.245, allocations: 2.375 MB / 0.6144 GB, free: 13.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.625e-05/1.245, allocations: 12 kB / 0.6144 GB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-05/1.245, allocations: 19.88 kB / 0.6144 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/1.246, allocations: 283.6 kB / 0.6147 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/1.25, allocations: 403.3 kB / 0.6151 GB, free: 13.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009665/1.259, allocations: 5.926 MB / 0.6209 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/1.262, allocations: 104.4 kB / 0.621 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004734/1.263, allocations: 71.98 kB / 0.6211 GB, free: 6.531 MB / 394.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.003524/1.266, allocations: 1.054 MB / 0.6221 GB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007308/1.267, allocations: 197.6 kB / 0.6223 GB, free: 5.273 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008569/1.276, allocations: 2.383 MB / 0.6246 GB, free: 2.824 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.671e-05/1.276, allocations: 12 kB / 0.6246 GB, free: 2.812 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-05/1.276, allocations: 8 kB / 0.6246 GB, free: 2.805 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-05/1.276, allocations: 7.969 kB / 0.6246 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/1.293, allocations: 5.428 MB / 0.6299 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/1.293, allocations: 0 / 0.6299 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/1.295, allocations: 207.7 kB / 0.6301 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002355/1.297, allocations: 464.2 kB / 0.6306 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003782/1.298, allocations: 39.98 kB / 0.6306 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01712/1.315, allocations: 10.31 MB / 0.6407 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/1.315, allocations: 4.031 kB / 0.6407 GB, free: 1.543 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3068/1.622, allocations: 3.426 MB / 0.644 GB, free: 87.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001573/1.623, allocations: 462.7 kB / 0.6445 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007298/1.624, allocations: 41.3 kB / 0.6445 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002078/1.626, allocations: 70.14 kB / 0.6446 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000474/1.627, allocations: 117 kB / 0.6447 GB, free: 87.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.627, allocations: 46.31 kB / 0.6447 GB, free: 87.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00297/1.63, allocations: 1.275 MB / 0.646 GB, free: 87.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.63, allocations: 0 / 0.646 GB, free: 87.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003534/1.634, allocations: 0.6349 MB / 0.6466 GB, free: 87.27 MB / 410.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.01036/1.644, allocations: 4.93 MB / 0.6514 GB, free: 85.72 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005569/1.65, allocations: 2.261 MB / 0.6536 GB, free: 85.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.65, allocations: 2.938 kB / 0.6536 GB, free: 85.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003965/1.654, allocations: 1.644 MB / 0.6552 GB, free: 84.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003968/1.658, allocations: 0.5023 MB / 0.6557 GB, free: 84.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04896/1.707, allocations: 26.06 MB / 0.6812 GB, free: 69.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003994/1.711, allocations: 2.361 MB / 0.6835 GB, free: 68.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003001/1.714, allocations: 1.207 MB / 0.6846 GB, free: 68.33 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/1.714, allocations: 4 kB / 0.6846 GB, free: 68.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.217/5.931, allocations: 125.8 MB / 0.8075 GB, free: 109.4 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat does not exist to compare? outputFormat=mat