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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.001527/0.001528, allocations: 185.9 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.924/1.924, 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.001107/0.001106, allocations: 88.42 kB / 270.9 MB, free: 8.328 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003793, allocations: 11.98 kB / 327.1 MB, free: 52 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3213, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1741/0.4955, allocations: 108.6 MB / 483.3 MB, free: 4.066 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.4958, allocations: 95.95 kB / 483.4 MB, free: 3.973 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5502/1.046, allocations: 80.3 MB / 0.5505 GB, free: 65.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.296e-06/1.046, allocations: 0 / 0.5505 GB, free: 65.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003283/1.046, allocations: 75.94 kB / 0.5505 GB, free: 65.01 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01439/1.061, allocations: 3.537 MB / 0.554 GB, free: 61.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/1.061, allocations: 8.031 kB / 0.554 GB, free: 61.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001895/1.063, allocations: 466.8 kB / 0.5544 GB, free: 60.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006218/1.069, allocations: 0.7335 MB / 0.5551 GB, free: 60.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0124/1.082, allocations: 3.372 MB / 0.5584 GB, free: 56.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003157/1.082, allocations: 234.3 kB / 0.5587 GB, free: 56.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/1.083, allocations: 311.9 kB / 0.559 GB, free: 56.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01284/1.096, allocations: 4.176 MB / 0.563 GB, free: 51.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/1.096, allocations: 7.906 kB / 0.563 GB, free: 51.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006095/1.097, allocations: 128 kB / 0.5632 GB, free: 51.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/1.097, allocations: 146.2 kB / 0.5633 GB, free: 51.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01054/1.108, allocations: 3.46 MB / 0.5667 GB, free: 48.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04038/1.148, allocations: 13.55 MB / 0.5799 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00905/1.157, allocations: 6.878 MB / 0.5866 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007951/1.165, allocations: 3.257 MB / 0.5898 GB, free: 23.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/1.165, allocations: 47.88 kB / 0.5899 GB, free: 23.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=130): time 3.617e-06/1.165, allocations: 7.938 kB / 0.5899 GB, free: 23.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02033/1.186, allocations: 6.796 MB / 0.5965 GB, free: 16.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/1.186, allocations: 68.72 kB / 0.5966 GB, free: 16.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/1.189, allocations: 1.619 MB / 0.5982 GB, free: 14.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003061/1.189, allocations: 49.7 kB / 0.5982 GB, free: 14.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008712/1.19, allocations: 1.349 MB / 0.5995 GB, free: 12.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005328/1.191, allocations: 0.5083 MB / 0.6 GB, free: 12.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/1.191, allocations: 36 kB / 0.6001 GB, free: 12.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/1.191, allocations: 378.8 kB / 0.6004 GB, free: 12.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/1.193, allocations: 0.7769 MB / 0.6012 GB, free: 11.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/1.195, allocations: 1.226 MB / 0.6024 GB, free: 9.859 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/1.198, allocations: 0.998 MB / 0.6033 GB, free: 8.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/1.198, allocations: 4 kB / 0.6033 GB, free: 8.855 MB / 378.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.006569/1.204, allocations: 2.583 MB / 0.6059 GB, free: 6.258 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.33e-05/1.204, allocations: 12 kB / 0.6059 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/1.204, allocations: 12 kB / 0.6059 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002171/1.206, allocations: 0.4976 MB / 0.6064 GB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003039/1.21, allocations: 403.4 kB / 0.6068 GB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01197/1.222, allocations: 6.561 MB / 0.6132 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002484/1.224, allocations: 75.95 kB / 0.6132 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/1.224, allocations: 75.98 kB / 0.6133 GB, free: 14.36 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003101/1.228, allocations: 1.048 MB / 0.6143 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006732/1.228, allocations: 197.6 kB / 0.6145 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007656/1.236, allocations: 2.574 MB / 0.617 GB, free: 10.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/1.236, allocations: 12 kB / 0.6171 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.958e-05/1.236, allocations: 8 kB / 0.6171 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-05/1.236, allocations: 7.969 kB / 0.6171 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.251, allocations: 5.645 MB / 0.6226 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/1.252, allocations: 4 kB / 0.6226 GB, free: 4.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002152/1.254, allocations: 235.9 kB / 0.6228 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002468/1.256, allocations: 0.5036 MB / 0.6233 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002833/1.256, allocations: 39.94 kB / 0.6233 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01657/1.273, allocations: 10.59 MB / 0.6337 GB, free: 8.605 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.273, allocations: 3.938 kB / 0.6337 GB, free: 8.602 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.283, allocations: 3.756 MB / 0.6374 GB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/1.285, allocations: 466.5 kB / 0.6378 GB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004441/1.285, allocations: 32 kB / 0.6378 GB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/1.287, allocations: 75.94 kB / 0.6379 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004195/1.287, allocations: 125 kB / 0.638 GB, free: 4.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.288, allocations: 36 kB / 0.6381 GB, free: 3.984 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003114/1.291, allocations: 1.258 MB / 0.6393 GB, free: 2.734 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.291, allocations: 0 / 0.6393 GB, free: 2.734 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003534/1.294, allocations: 0.6251 MB / 0.6399 GB, free: 2.109 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2962/1.591, allocations: 4.941 MB / 0.6447 GB, free: 91.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006155/1.597, allocations: 2.45 MB / 0.6471 GB, free: 90.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/1.597, allocations: 0 / 0.6471 GB, free: 90.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003655/1.6, allocations: 1.747 MB / 0.6488 GB, free: 90.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/1.604, allocations: 481.6 kB / 0.6493 GB, free: 90.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04534/1.649, allocations: 26.16 MB / 0.6748 GB, free: 75.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003039/1.652, allocations: 2.374 MB / 0.6771 GB, free: 74.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002423/1.655, allocations: 1.141 MB / 0.6783 GB, free: 74.63 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/1.655, allocations: 0 / 0.6783 GB, free: 74.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.712/5.367, allocations: 110 MB / 0.7857 GB, free: 8.09 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat