Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_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.001537/0.001542, allocations: 181.1 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.105/2.105, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001166/0.001165, allocations: 90.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.235e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09895, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4584/0.5574, allocations: 104.7 MB / 473.9 MB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003748/0.5578, allocations: 85.08 kB / 474 MB, free: 4.766 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2227/0.7806, allocations: 49.09 MB / 0.5108 GB, free: 4.895 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.7807, allocations: 0 / 0.5108 GB, free: 4.895 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003491/0.781, allocations: 67.88 kB / 0.5109 GB, free: 4.828 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.01263/0.7937, allocations: 2.471 MB / 0.5133 GB, free: 2.297 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.111e-05/0.7938, allocations: 12.03 kB / 0.5133 GB, free: 2.285 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002313/0.7961, allocations: 337 kB / 0.5136 GB, free: 1.945 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003235/0.7994, allocations: 324.4 kB / 0.5139 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01467/0.8142, allocations: 1.729 MB / 0.5156 GB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005075/0.8148, allocations: 172.6 kB / 0.5158 GB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/0.8165, allocations: 231.9 kB / 0.516 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01935/0.8359, allocations: 3.075 MB / 0.519 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002879/0.8363, allocations: 7.906 kB / 0.519 GB, free: 12.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001298/0.8376, allocations: 92 kB / 0.5191 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002761/0.8379, allocations: 104.4 kB / 0.5192 GB, free: 12.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.8555, allocations: 2.512 MB / 0.5216 GB, free: 9.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3052/1.161, allocations: 9.935 MB / 0.5313 GB, free: 99.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004552/1.165, allocations: 2.074 MB / 0.5334 GB, free: 98.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003158/1.169, allocations: 1.094 MB / 0.5344 GB, free: 98.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00054/1.169, allocations: 138.1 kB / 0.5346 GB, free: 98.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/1.169, allocations: 50.22 kB / 0.5346 GB, free: 98.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=129): time 4.368e-06/1.169, allocations: 0 / 0.5346 GB, free: 98.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.02514/1.194, allocations: 6.274 MB / 0.5407 GB, free: 97.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/1.195, allocations: 66.94 kB / 0.5408 GB, free: 97.63 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004503/1.199, allocations: 1.453 MB / 0.5422 GB, free: 97.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00042/1.2, allocations: 49.33 kB / 0.5423 GB, free: 97.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/1.201, allocations: 1.011 MB / 0.5433 GB, free: 97.03 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008446/1.202, allocations: 498.8 kB / 0.5437 GB, free: 96.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/1.202, allocations: 29 kB / 0.5438 GB, free: 96.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003469/1.202, allocations: 373.9 kB / 0.5441 GB, free: 96.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003469/1.206, allocations: 0.8647 MB / 0.545 GB, free: 96.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00291/1.209, allocations: 1.175 MB / 0.5461 GB, free: 96.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002992/1.212, allocations: 1.009 MB / 0.5471 GB, free: 96.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.488e-05/1.212, allocations: 2.031 kB / 0.5471 GB, free: 96.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.008715/1.22, allocations: 2.809 MB / 0.5498 GB, free: 95.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/1.221, allocations: 10.31 kB / 0.5499 GB, free: 95.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/1.221, allocations: 13.94 kB / 0.5499 GB, free: 95.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003426/1.224, allocations: 0.8455 MB / 0.5507 GB, free: 95.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/1.227, allocations: 311.6 kB / 0.551 GB, free: 95.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/1.241, allocations: 9.064 MB / 0.5598 GB, free: 91.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/1.244, allocations: 104.2 kB / 0.5599 GB, free: 91.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004775/1.245, allocations: 57.47 kB / 0.56 GB, free: 91.04 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (152): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005314/1.245, allocations: 195.2 kB / 0.5602 GB, free: 90.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007113/1.246, allocations: 179.2 kB / 0.5604 GB, free: 90.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0076/1.253, allocations: 2.789 MB / 0.5631 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.273e-05/1.254, allocations: 18.31 kB / 0.5631 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-05/1.254, allocations: 11.61 kB / 0.5631 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.283e-05/1.254, allocations: 7.406 kB / 0.5631 GB, free: 89.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/1.27, allocations: 5.593 MB / 0.5686 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/1.27, allocations: 3.75 kB / 0.5686 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/1.272, allocations: 203 kB / 0.5688 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003871/1.276, allocations: 0.8962 MB / 0.5696 GB, free: 87.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003486/1.276, allocations: 35.56 kB / 0.5697 GB, free: 87.24 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01655/1.293, allocations: 10.59 MB / 0.58 GB, free: 79.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.293, allocations: 7.438 kB / 0.58 GB, free: 79.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009676/1.302, allocations: 4.199 MB / 0.5841 GB, free: 77.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/1.304, allocations: 466.7 kB / 0.5846 GB, free: 77.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005666/1.305, allocations: 37.69 kB / 0.5846 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/1.307, allocations: 88.61 kB / 0.5847 GB, free: 77.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006108/1.307, allocations: 151.4 kB / 0.5848 GB, free: 77.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001624/1.308, allocations: 45.88 kB / 0.5849 GB, free: 77.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002431/1.31, allocations: 1.112 MB / 0.586 GB, free: 77.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.31, allocations: 0 / 0.586 GB, free: 77.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00331/1.313, allocations: 0.5812 MB / 0.5865 GB, free: 77.07 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (102): * Single equations (assignments): 97 * 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 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 19,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01066/1.324, allocations: 5.554 MB / 0.592 GB, free: 74.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006617/1.331, allocations: 2.896 MB / 0.5948 GB, free: 72.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.331, allocations: 0 / 0.5948 GB, free: 72.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004717/1.336, allocations: 1.989 MB / 0.5967 GB, free: 71.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003914/1.339, allocations: 490.9 kB / 0.5972 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/1.353, allocations: 4.94 MB / 0.602 GB, free: 68.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002166/1.355, allocations: 2.038 MB / 0.604 GB, free: 67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00195/1.357, allocations: 0.894 MB / 0.6049 GB, free: 66.19 MB / 410.7 MB Notification: Performance of SimCode: time 2.815e-06/1.358, allocations: 0 / 0.6049 GB, free: 66.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.206/5.563, allocations: 100.8 MB / 0.7033 GB, free: 109.5 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat