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_YD.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_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.001587/0.001587, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.209/2.209, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001104/0.001104, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.632e-05/2.647e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09867, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4649/0.5636, allocations: 110.3 MB / 479.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.564, allocations: 83.14 kB / 479.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.62/1.184, allocations: 88.22 MB / 0.5545 GB, free: 89.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.184, allocations: 6.453 kB / 0.5545 GB, free: 89.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004299/1.185, allocations: 96.17 kB / 0.5546 GB, free: 89.69 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01575/1.2, allocations: 3.683 MB / 0.5582 GB, free: 88.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/1.2, allocations: 7.844 kB / 0.5582 GB, free: 88.27 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002089/1.203, allocations: 0.5047 MB / 0.5587 GB, free: 88.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006832/1.209, allocations: 0.7853 MB / 0.5595 GB, free: 88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01332/1.223, allocations: 3.677 MB / 0.5631 GB, free: 87.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004019/1.223, allocations: 274.8 kB / 0.5633 GB, free: 87.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001843/1.225, allocations: 363.7 kB / 0.5637 GB, free: 87.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01713/1.242, allocations: 4.851 MB / 0.5684 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002144/1.243, allocations: 2.25 kB / 0.5684 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001415/1.244, allocations: 152.4 kB / 0.5686 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002164/1.244, allocations: 154.9 kB / 0.5687 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01348/1.258, allocations: 4.017 MB / 0.5726 GB, free: 85.53 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04297/1.301, allocations: 15.97 MB / 0.5882 GB, free: 76.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/1.312, allocations: 7.692 MB / 0.5957 GB, free: 70.2 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004296/1.316, allocations: 1.658 MB / 0.5974 GB, free: 69.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01343/1.33, allocations: 4.618 MB / 0.6019 GB, free: 67.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/1.33, allocations: 55.38 kB / 0.6019 GB, free: 67.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=159): time 4.849e-06/1.33, allocations: 0 / 0.6019 GB, free: 67.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=162): time 0.01485/1.345, allocations: 5.478 MB / 0.6073 GB, free: 64.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/1.345, allocations: 67.75 kB / 0.6073 GB, free: 64.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004719/1.349, allocations: 1.878 MB / 0.6092 GB, free: 63.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004257/1.35, allocations: 59.45 kB / 0.6092 GB, free: 63.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/1.351, allocations: 1.521 MB / 0.6107 GB, free: 62.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008489/1.352, allocations: 0.5378 MB / 0.6112 GB, free: 61.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/1.352, allocations: 35.28 kB / 0.6113 GB, free: 61.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/1.352, allocations: 387 kB / 0.6116 GB, free: 61.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002211/1.355, allocations: 0.8709 MB / 0.6125 GB, free: 61.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00273/1.357, allocations: 1.342 MB / 0.6138 GB, free: 60.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/1.36, allocations: 1.098 MB / 0.6149 GB, free: 59.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/1.36, allocations: 4 kB / 0.6149 GB, free: 59.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.008015/1.368, allocations: 3.029 MB / 0.6178 GB, free: 56.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.776e-05/1.368, allocations: 12 kB / 0.6179 GB, free: 56.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/1.368, allocations: 12 kB / 0.6179 GB, free: 56.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/1.371, allocations: 0.7395 MB / 0.6186 GB, free: 55.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/1.374, allocations: 365.1 kB / 0.6189 GB, free: 55.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/1.39, allocations: 10.37 MB / 0.6291 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00293/1.393, allocations: 98.16 kB / 0.6292 GB, free: 45.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004893/1.393, allocations: 75.88 kB / 0.6292 GB, free: 45.36 MB / 410.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: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * 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): 1 * Torn equation systems: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000527/1.394, allocations: 224.5 kB / 0.6294 GB, free: 45.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007192/1.394, allocations: 225.3 kB / 0.6297 GB, free: 44.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00827/1.403, allocations: 3.039 MB / 0.6326 GB, free: 42.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/1.403, allocations: 16 kB / 0.6326 GB, free: 42.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.596e-05/1.403, allocations: 12 kB / 0.6327 GB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/1.403, allocations: 7.781 kB / 0.6327 GB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/1.42, allocations: 6.396 MB / 0.6389 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.243e-05/1.42, allocations: 4 kB / 0.6389 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/1.422, allocations: 173.4 kB / 0.6391 GB, free: 36.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003852/1.426, allocations: 0.9071 MB / 0.64 GB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000409/1.426, allocations: 39.75 kB / 0.64 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02105/1.448, allocations: 14.75 MB / 0.6544 GB, free: 21.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.448, allocations: 0 / 0.6544 GB, free: 21.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.458, allocations: 4.43 MB / 0.6587 GB, free: 16.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002114/1.46, allocations: 0.5139 MB / 0.6592 GB, free: 16.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008281/1.461, allocations: 39.98 kB / 0.6593 GB, free: 16.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/1.464, allocations: 87.94 kB / 0.6594 GB, free: 16.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007371/1.464, allocations: 161 kB / 0.6595 GB, free: 16.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.465, allocations: 44 kB / 0.6596 GB, free: 15.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003494/1.468, allocations: 1.439 MB / 0.661 GB, free: 14.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.468, allocations: 0 / 0.661 GB, free: 14.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004342/1.473, allocations: 0.7383 MB / 0.6617 GB, free: 13.77 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.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01181/1.484, allocations: 5.666 MB / 0.6672 GB, free: 8.027 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007058/1.491, allocations: 2.946 MB / 0.6701 GB, free: 5.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/1.492, allocations: 4.188 kB / 0.6701 GB, free: 5.016 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005284/1.497, allocations: 2.183 MB / 0.6722 GB, free: 2.758 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004841/1.502, allocations: 0.6021 MB / 0.6728 GB, free: 2.195 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/1.524, allocations: 6.445 MB / 0.6791 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005084/1.529, allocations: 2.697 MB / 0.6817 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003785/1.533, allocations: 1.319 MB / 0.683 GB, free: 7.684 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/1.533, allocations: 0 / 0.683 GB, free: 7.684 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.685/6.218, allocations: 162.5 MB / 0.8417 GB, free: 4.398 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD_res.mat does not exist to compare? outputFormat=mat