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.001477/0.001477, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.155/2.155, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001117, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.143e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3499, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1892/0.5391, allocations: 112.2 MB / 474.6 MB, free: 5.969 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/0.5395, allocations: 83.94 kB / 474.7 MB, free: 5.887 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6263/1.166, allocations: 82.62 MB / 0.5443 GB, free: 91.46 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.765e-06/1.166, allocations: 0 / 0.5443 GB, free: 91.46 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000347/1.166, allocations: 85.38 kB / 0.5443 GB, free: 91.45 MB / 395.1 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.01367/1.18, allocations: 3.29 MB / 0.5476 GB, free: 89.3 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.18, allocations: 10.75 kB / 0.5476 GB, free: 89.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/1.186, allocations: 0.7415 MB / 0.5483 GB, free: 88.93 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01265/1.199, allocations: 3.364 MB / 0.5516 GB, free: 86.7 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002502/1.199, allocations: 105.3 kB / 0.5517 GB, free: 86.7 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/1.201, allocations: 191.1 kB / 0.5519 GB, free: 86.69 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01011/1.211, allocations: 3.152 MB / 0.5549 GB, free: 85.07 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/1.224, allocations: 3.671 MB / 0.5585 GB, free: 82.52 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/1.224, allocations: 8 kB / 0.5585 GB, free: 82.52 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004828/1.224, allocations: 0 / 0.5585 GB, free: 82.52 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/1.225, allocations: 150.4 kB / 0.5587 GB, free: 82.37 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03253/1.257, allocations: 12.86 MB / 0.5712 GB, free: 69.31 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008965/1.266, allocations: 6.785 MB / 0.5779 GB, free: 61.63 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003459/1.27, allocations: 1.303 MB / 0.5791 GB, free: 60.34 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009471/1.279, allocations: 3.715 MB / 0.5828 GB, free: 56.57 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001529/1.281, allocations: 0.7727 MB / 0.5835 GB, free: 55.77 MB / 395.1 MB Notification: Performance of pre-optimization done (n=129): time 4.829e-06/1.281, allocations: 0 / 0.5835 GB, free: 55.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=137): time 0.0146/1.296, allocations: 5.239 MB / 0.5886 GB, free: 50.39 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/1.296, allocations: 218.9 kB / 0.5888 GB, free: 50.13 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002823/1.298, allocations: 1.365 MB / 0.5902 GB, free: 48.76 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000288/1.299, allocations: 25.7 kB / 0.5902 GB, free: 48.73 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001371/1.3, allocations: 1.438 MB / 0.5916 GB, free: 47.27 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000546/1.301, allocations: 461.1 kB / 0.592 GB, free: 46.82 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/1.301, allocations: 0 / 0.592 GB, free: 46.82 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/1.301, allocations: 378.8 kB / 0.5924 GB, free: 46.44 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/1.302, allocations: 0.5936 MB / 0.593 GB, free: 45.85 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/1.304, allocations: 1.129 MB / 0.5941 GB, free: 44.48 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002451/1.306, allocations: 0.9386 MB / 0.595 GB, free: 43.55 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/1.306, allocations: 8 kB / 0.595 GB, free: 43.54 MB / 395.1 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005545/1.312, allocations: 2.172 MB / 0.5971 GB, free: 41.33 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/1.312, allocations: 15.98 kB / 0.5971 GB, free: 41.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/1.312, allocations: 16.31 kB / 0.5972 GB, free: 41.3 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/1.313, allocations: 275.3 kB / 0.5974 GB, free: 41.02 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/1.316, allocations: 383.4 kB / 0.5978 GB, free: 40.64 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00616/1.322, allocations: 5.606 MB / 0.6033 GB, free: 34.7 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/1.324, allocations: 60.39 kB / 0.6033 GB, free: 34.64 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/1.325, allocations: 75.98 kB / 0.6034 GB, free: 34.56 MB / 395.1 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.000367/1.325, allocations: 158.9 kB / 0.6035 GB, free: 34.4 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005015/1.33, allocations: 2.044 MB / 0.6055 GB, free: 32.3 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003655/1.33, allocations: 173.8 kB / 0.6057 GB, free: 32.12 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005572/1.336, allocations: 2.178 MB / 0.6078 GB, free: 29.89 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/1.336, allocations: 19.98 kB / 0.6078 GB, free: 29.87 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.336, allocations: 8 kB / 0.6079 GB, free: 29.86 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-05/1.336, allocations: 7.969 kB / 0.6079 GB, free: 29.85 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/1.348, allocations: 4.685 MB / 0.6124 GB, free: 25.07 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/1.348, allocations: 0 / 0.6124 GB, free: 25.07 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001506/1.35, allocations: 183.8 kB / 0.6126 GB, free: 24.89 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/1.352, allocations: 443.9 kB / 0.613 GB, free: 24.44 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/1.352, allocations: 23.92 kB / 0.6131 GB, free: 24.42 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/1.363, allocations: 9.752 MB / 0.6226 GB, free: 14.09 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/1.363, allocations: 4.094 kB / 0.6226 GB, free: 14.09 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009186/1.373, allocations: 3.092 MB / 0.6256 GB, free: 10.89 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/1.375, allocations: 418.7 kB / 0.626 GB, free: 10.46 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005947/1.375, allocations: 12 kB / 0.626 GB, free: 10.45 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002449/1.378, allocations: 43.95 kB / 0.6261 GB, free: 10.4 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004279/1.378, allocations: 105.1 kB / 0.6262 GB, free: 10.3 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/1.378, allocations: 43.98 kB / 0.6262 GB, free: 10.26 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002875/1.381, allocations: 1.021 MB / 0.6272 GB, free: 9.242 MB / 395.1 MB Notification: Performance of sort global known variables: time 8.91e-07/1.381, allocations: 4.125 kB / 0.6272 GB, free: 9.238 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004299/1.386, allocations: 0.5508 MB / 0.6277 GB, free: 8.688 MB / 395.1 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.008706/1.394, allocations: 4.39 MB / 0.632 GB, free: 4.242 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004228/1.399, allocations: 1.986 MB / 0.634 GB, free: 2.203 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.399, allocations: 1.312 kB / 0.634 GB, free: 2.203 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002975/1.402, allocations: 1.454 MB / 0.6354 GB, free: 0.707 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003236/1.405, allocations: 381.2 kB / 0.6357 GB, free: 340 kB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01719/1.422, allocations: 5.276 MB / 0.6409 GB, free: 10.98 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003534/1.426, allocations: 2.359 MB / 0.6432 GB, free: 8.594 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0029/1.429, allocations: 1.179 MB / 0.6444 GB, free: 7.414 MB / 411.1 MB Notification: Performance of SimCode: time 1.543e-06/1.429, allocations: 0 / 0.6444 GB, free: 7.414 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.177/5.606, allocations: 123.1 MB / 0.7646 GB, free: 18.71 MB / 411.1 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