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.00149/0.001496, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001133/0.001133, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.000419, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.0975, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01931/0.1169, allocations: 10.79 MB / 385.4 MB, free: 4.492 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2705/0.3875, allocations: 4.493 MB / 389.9 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002421/0.3899, allocations: 66.91 kB / 390 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004088/0.3941, allocations: 0.8657 MB / 390.9 MB, free: 9.305 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005938/0.4001, allocations: 1.192 MB / 392.1 MB, free: 9.301 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003533/0.4037, allocations: 0.6987 MB / 392.8 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007548/0.4112, allocations: 2.769 MB / 395.5 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005514/0.4168, allocations: 2.209 MB / 397.7 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003713/0.4206, allocations: 1.272 MB / 399 MB, free: 8.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004544/0.4252, allocations: 1.513 MB / 400.5 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001388/0.4266, allocations: 205.9 kB / 400.7 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.4299, allocations: 399.6 kB / 401.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002008/0.4319, allocations: 0.7408 MB / 401.9 MB, free: 8.668 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00242/0.4344, allocations: 0.7472 MB / 402.6 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00937/0.4438, allocations: 5.508 MB / 408.1 MB, free: 6.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4439, allocations: 0 / 408.1 MB, free: 6.047 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4439, allocations: 1.25 kB / 408.1 MB, free: 6.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002372/0.4442, allocations: 0 / 408.1 MB, free: 6.047 MB / 282.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.01726/0.4614, allocations: 3.82 MB / 411.9 MB, free: 3.906 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.4615, allocations: 9 kB / 411.9 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002254/0.4638, allocations: 457.6 kB / 412.4 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007606/0.4715, allocations: 0.8269 MB / 413.2 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006865/0.4784, allocations: 2.213 MB / 415.4 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003183/0.4787, allocations: 241.8 kB / 415.7 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.4802, allocations: 318.1 kB / 416 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4952, allocations: 4.233 MB / 420.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.4954, allocations: 8 kB / 420.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008006/0.4962, allocations: 132 kB / 420.3 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002666/0.4965, allocations: 154.4 kB / 420.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.5099, allocations: 3.604 MB / 424.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/0.5502, allocations: 13.42 MB / 437.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01257/0.5629, allocations: 6.963 MB / 444.5 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0102/0.5731, allocations: 3.28 MB / 447.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002514/0.5757, allocations: 0.9157 MB / 448.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of pre-optimization done (n=143): time 7.394e-06/0.5757, allocations: 3.984 kB / 448.7 MB, free: 1.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=152): time 0.0251/0.6008, allocations: 6.907 MB / 455.6 MB, free: 10.22 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.601, allocations: 226.9 kB / 455.8 MB, free: 9.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004622/0.6057, allocations: 1.839 MB / 457.6 MB, free: 8.113 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003411/0.6061, allocations: 53.7 kB / 457.7 MB, free: 8.055 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001851/0.6079, allocations: 1.38 MB / 459.1 MB, free: 6.664 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009311/0.6089, allocations: 0.513 MB / 459.6 MB, free: 6.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.6091, allocations: 36 kB / 459.6 MB, free: 6.121 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002487/0.6094, allocations: 386.8 kB / 460 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.6116, allocations: 0.6949 MB / 460.7 MB, free: 5.039 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002982/0.6147, allocations: 1.222 MB / 461.9 MB, free: 3.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.6176, allocations: 0.9171 MB / 462.8 MB, free: 2.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-05/0.6177, allocations: 4 kB / 462.8 MB, free: 2.684 MB / 330.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007421/0.6251, allocations: 2.383 MB / 465.2 MB, free: 268 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.973e-05/0.6252, allocations: 12 kB / 465.2 MB, free: 256 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/0.6252, allocations: 12 kB / 465.2 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.6266, allocations: 292.9 kB / 465.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003189/0.6298, allocations: 399.4 kB / 465.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009322/0.6391, allocations: 5.935 MB / 471.9 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/0.6418, allocations: 98.44 kB / 472 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003648/0.6423, allocations: 79.98 kB / 472 MB, free: 9.047 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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.003438/0.6457, allocations: 1.028 MB / 473.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006377/0.6464, allocations: 201.6 kB / 473.3 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007221/0.6536, allocations: 2.368 MB / 475.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/0.6537, allocations: 15.98 kB / 475.6 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.025e-05/0.6537, allocations: 8 kB / 475.6 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-05/0.6538, allocations: 7.969 kB / 475.7 MB, free: 5.348 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.6695, allocations: 5.449 MB / 481.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/0.6696, allocations: 0 / 481.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001892/0.6715, allocations: 207.7 kB / 481.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002254/0.6738, allocations: 460.2 kB / 481.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002999/0.6741, allocations: 43.97 kB / 481.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01703/0.6912, allocations: 10.3 MB / 492.1 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.6912, allocations: 400 / 492.1 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009763/0.701, allocations: 3.412 MB / 495.5 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/0.7028, allocations: 453.6 kB / 496 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006037/0.7034, allocations: 36 kB / 496 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/0.7052, allocations: 71.95 kB / 496.1 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000475/0.7057, allocations: 106.2 kB / 496.2 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.7059, allocations: 44 kB / 496.2 MB, free: 15.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003415/0.7093, allocations: 1.267 MB / 497.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.7094, allocations: 0 / 497.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003917/0.7133, allocations: 0.59 MB / 498.1 MB, free: 14.02 MB / 378.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 (114): * Single equations (assignments): 107 * 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.01158/0.725, allocations: 4.709 MB / 0.491 GB, free: 9.207 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006778/0.7318, allocations: 2.268 MB / 0.4932 GB, free: 6.879 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.7319, allocations: 0 / 0.4932 GB, free: 6.879 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004591/0.7365, allocations: 1.624 MB / 0.4948 GB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004261/0.7408, allocations: 0.4926 MB / 0.4953 GB, free: 4.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06439/0.8052, allocations: 26.1 MB / 0.5208 GB, free: 9.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004255/0.8095, allocations: 2.374 MB / 0.5231 GB, free: 7.023 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/0.8128, allocations: 1.191 MB / 0.5242 GB, free: 5.832 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.8128, allocations: 7.938 kB / 0.5242 GB, free: 5.824 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.177/4.99, allocations: 124.3 MB / 0.6456 GB, free: 61.88 MB / 426.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