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.001943/0.001942, allocations: 177.8 kB / 8.36 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.059/2.059, 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.001123/0.001123, allocations: 87.3 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.617e-05, allocations: 4 kB / 314.9 MB, free: 9.027 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3414, allocations: 47.55 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1725/0.514, allocations: 104 MB / 466.5 MB, free: 14.12 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.5143, allocations: 87.94 kB / 466.6 MB, free: 14.03 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5692/1.084, allocations: 48.45 MB / 0.5029 GB, free: 95.72 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.114e-06/1.084, allocations: 3.344 kB / 0.5029 GB, free: 95.72 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004006/1.084, allocations: 66.94 kB / 0.503 GB, free: 95.71 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: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.01263/1.097, allocations: 2.465 MB / 0.5054 GB, free: 94.8 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/1.097, allocations: 14.23 kB / 0.5054 GB, free: 94.8 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002199/1.099, allocations: 324.1 kB / 0.5057 GB, free: 94.65 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00648/1.106, allocations: 1.73 MB / 0.5074 GB, free: 94.21 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/1.106, allocations: 76.22 kB / 0.5075 GB, free: 94.21 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009441/1.107, allocations: 138.6 kB / 0.5076 GB, free: 94.21 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008014/1.115, allocations: 2.387 MB / 0.51 GB, free: 94.2 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008684/1.123, allocations: 2.752 MB / 0.5127 GB, free: 93.81 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.974e-05/1.124, allocations: 6.719 kB / 0.5127 GB, free: 93.81 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003235/1.124, allocations: 4.906 kB / 0.5127 GB, free: 93.81 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001693/1.124, allocations: 102.5 kB / 0.5128 GB, free: 93.8 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02438/1.149, allocations: 9.486 MB / 0.522 GB, free: 91.41 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/1.152, allocations: 2.033 MB / 0.524 GB, free: 90.71 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002161/1.154, allocations: 1.041 MB / 0.525 GB, free: 90.33 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004032/1.155, allocations: 141.1 kB / 0.5252 GB, free: 90.23 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/1.155, allocations: 47.69 kB / 0.5252 GB, free: 90.18 MB / 395.1 MB Notification: Performance of pre-optimization done (n=129): time 3.497e-06/1.155, allocations: 0 / 0.5252 GB, free: 90.18 MB / 395.1 MB Notification: Performance of matching and sorting (n=145): time 0.01526/1.17, allocations: 5.317 MB / 0.5304 GB, free: 87.99 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/1.17, allocations: 70.25 kB / 0.5305 GB, free: 87.93 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002639/1.173, allocations: 1.213 MB / 0.5317 GB, free: 87.44 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003728/1.173, allocations: 25.7 kB / 0.5317 GB, free: 87.41 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007371/1.174, allocations: 1.041 MB / 0.5327 GB, free: 86.55 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006406/1.174, allocations: 483.4 kB / 0.5332 GB, free: 86.18 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/1.175, allocations: 0 / 0.5332 GB, free: 86.18 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/1.175, allocations: 375 kB / 0.5335 GB, free: 85.84 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/1.177, allocations: 0.8254 MB / 0.5343 GB, free: 85.53 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/1.179, allocations: 1.138 MB / 0.5354 GB, free: 84.84 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002281/1.181, allocations: 0.9822 MB / 0.5364 GB, free: 84.48 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-05/1.181, allocations: 0 / 0.5364 GB, free: 84.48 MB / 395.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.007118/1.188, allocations: 2.654 MB / 0.539 GB, free: 83.55 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/1.188, allocations: 11.53 kB / 0.539 GB, free: 83.55 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/1.188, allocations: 8.359 kB / 0.539 GB, free: 83.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003135/1.191, allocations: 0.8094 MB / 0.5398 GB, free: 83.32 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002395/1.194, allocations: 319.1 kB / 0.5401 GB, free: 83.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/1.208, allocations: 8.71 MB / 0.5486 GB, free: 77.45 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002259/1.21, allocations: 72.75 kB / 0.5487 GB, free: 77.45 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002219/1.21, allocations: 61.38 kB / 0.5487 GB, free: 77.44 MB / 395.1 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.0004181/1.211, allocations: 141.4 kB / 0.5489 GB, free: 77.32 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006039/1.217, allocations: 2.48 MB / 0.5513 GB, free: 76.41 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006367/1.217, allocations: 170.9 kB / 0.5514 GB, free: 76.32 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/1.224, allocations: 2.644 MB / 0.554 GB, free: 75.31 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.243e-05/1.224, allocations: 14.56 kB / 0.554 GB, free: 75.31 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/1.224, allocations: 6.531 kB / 0.554 GB, free: 75.31 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/1.224, allocations: 7.594 kB / 0.5541 GB, free: 75.31 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/1.237, allocations: 5.162 MB / 0.5591 GB, free: 73.21 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/1.237, allocations: 3.906 kB / 0.5591 GB, free: 73.21 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001721/1.239, allocations: 208.9 kB / 0.5593 GB, free: 73.19 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/1.243, allocations: 0.863 MB / 0.5601 GB, free: 72.94 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002434/1.243, allocations: 11.02 kB / 0.5602 GB, free: 72.94 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01452/1.258, allocations: 10.19 MB / 0.5701 GB, free: 63.71 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/1.258, allocations: 4 kB / 0.5701 GB, free: 63.71 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009054/1.267, allocations: 4.063 MB / 0.5741 GB, free: 60.05 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/1.268, allocations: 448.8 kB / 0.5745 GB, free: 59.64 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006554/1.269, allocations: 11.66 kB / 0.5745 GB, free: 59.64 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002627/1.272, allocations: 68.48 kB / 0.5746 GB, free: 59.59 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/1.273, allocations: 156.2 kB / 0.5747 GB, free: 59.49 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000338/1.273, allocations: 43.8 kB / 0.5748 GB, free: 59.45 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002854/1.276, allocations: 0.9153 MB / 0.5757 GB, free: 58.64 MB / 395.1 MB Notification: Performance of sort global known variables: time 9.22e-07/1.276, allocations: 0 / 0.5757 GB, free: 58.64 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003506/1.28, allocations: 0.5036 MB / 0.5762 GB, free: 58.14 MB / 395.1 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.01016/1.29, allocations: 5.39 MB / 0.5814 GB, free: 53.21 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00638/1.296, allocations: 2.787 MB / 0.5841 GB, free: 50.64 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/1.296, allocations: 0 / 0.5841 GB, free: 50.64 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004466/1.301, allocations: 1.92 MB / 0.586 GB, free: 48.89 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003511/1.305, allocations: 390.2 kB / 0.5864 GB, free: 48.59 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/1.318, allocations: 4.786 MB / 0.5911 GB, free: 44.42 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002398/1.321, allocations: 2.036 MB / 0.5931 GB, free: 42.78 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/1.323, allocations: 0.901 MB / 0.5939 GB, free: 41.95 MB / 395.1 MB Notification: Performance of SimCode: time 1.563e-06/1.323, allocations: 0 / 0.5939 GB, free: 41.95 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.032/5.355, allocations: 99.06 MB / 0.6907 GB, free: 95.51 MB / 411.1 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