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_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",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.002415/0.002415, allocations: 186.8 kB / 16.4 MB, free: 5.746 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.093/2.093, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001165/0.001165, allocations: 93.48 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004441/0.0004441, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3354, allocations: 47.56 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1733/0.5088, allocations: 103.8 MB / 478.4 MB, free: 8.848 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003644/0.5093, allocations: 91.95 kB / 478.5 MB, free: 8.758 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4785/0.9877, allocations: 44.47 MB / 0.5107 GB, free: 95.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.9878, allocations: 0 / 0.5107 GB, free: 95.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002659/0.9881, allocations: 54.94 kB / 0.5107 GB, free: 95.56 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009568/0.9977, allocations: 2.439 MB / 0.5131 GB, free: 94.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.9977, allocations: 11.09 kB / 0.5131 GB, free: 94.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001396/0.9991, allocations: 308.8 kB / 0.5134 GB, free: 94.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/1.001, allocations: 291 kB / 0.5137 GB, free: 93.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005449/1.007, allocations: 1.542 MB / 0.5152 GB, free: 93.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/1.007, allocations: 154.7 kB / 0.5154 GB, free: 93.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009738/1.008, allocations: 210.7 kB / 0.5156 GB, free: 92.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008304/1.016, allocations: 2.71 MB / 0.5182 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/1.016, allocations: 10.81 kB / 0.5182 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003576/1.017, allocations: 87.72 kB / 0.5183 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/1.017, allocations: 84.86 kB / 0.5184 GB, free: 91.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007592/1.024, allocations: 2.233 MB / 0.5206 GB, free: 90.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02288/1.047, allocations: 8.454 MB / 0.5288 GB, free: 85.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003618/1.051, allocations: 1.809 MB / 0.5306 GB, free: 83.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004686/1.052, allocations: 138 kB / 0.5307 GB, free: 83.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.668e-05/1.052, allocations: 43.56 kB / 0.5308 GB, free: 83.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=107): time 4.008e-06/1.052, allocations: 3.938 kB / 0.5308 GB, free: 83.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=123): time 0.02281/1.074, allocations: 6.448 MB / 0.5371 GB, free: 76.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/1.075, allocations: 64.41 kB / 0.5371 GB, free: 76.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003201/1.078, allocations: 1.317 MB / 0.5384 GB, free: 75.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003418/1.078, allocations: 45.7 kB / 0.5384 GB, free: 75.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006996/1.079, allocations: 0.9335 MB / 0.5394 GB, free: 74.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005758/1.079, allocations: 429.6 kB / 0.5398 GB, free: 73.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/1.08, allocations: 24 kB / 0.5398 GB, free: 73.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/1.08, allocations: 366.8 kB / 0.5401 GB, free: 73.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002041/1.082, allocations: 0.7417 MB / 0.5409 GB, free: 72.74 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002321/1.084, allocations: 1.05 MB / 0.5419 GB, free: 71.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/1.087, allocations: 0.8847 MB / 0.5428 GB, free: 70.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.521e-05/1.087, allocations: 4 kB / 0.5428 GB, free: 70.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006502/1.093, allocations: 2.264 MB / 0.545 GB, free: 68.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.472e-05/1.093, allocations: 8 kB / 0.545 GB, free: 68.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/1.093, allocations: 12 kB / 0.545 GB, free: 68.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/1.095, allocations: 409.9 kB / 0.5454 GB, free: 67.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/1.098, allocations: 343.5 kB / 0.5457 GB, free: 67.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006933/1.105, allocations: 4.745 MB / 0.5503 GB, free: 62.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002213/1.107, allocations: 99.06 kB / 0.5504 GB, free: 62.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/1.107, allocations: 60.06 kB / 0.5505 GB, free: 62.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 152 * 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: 2 * 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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002007/1.109, allocations: 0.7047 MB / 0.5512 GB, free: 61.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/1.11, allocations: 166 kB / 0.5513 GB, free: 61.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006202/1.116, allocations: 2.192 MB / 0.5535 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/1.116, allocations: 12 kB / 0.5535 GB, free: 59.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.116, allocations: 4 kB / 0.5535 GB, free: 59.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.118e-05/1.116, allocations: 11.91 kB / 0.5535 GB, free: 59.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/1.129, allocations: 4.579 MB / 0.558 GB, free: 54.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.129, allocations: 3.938 kB / 0.558 GB, free: 54.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002016/1.131, allocations: 239.9 kB / 0.5582 GB, free: 54.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002183/1.134, allocations: 466.8 kB / 0.5587 GB, free: 53.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002992/1.134, allocations: 31.98 kB / 0.5587 GB, free: 53.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008399/1.142, allocations: 6.312 MB / 0.5649 GB, free: 47.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.142, allocations: 4 kB / 0.5649 GB, free: 47.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008241/1.151, allocations: 3.393 MB / 0.5682 GB, free: 43.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.152, allocations: 406.9 kB / 0.5686 GB, free: 43.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004973/1.153, allocations: 27.98 kB / 0.5686 GB, free: 43.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/1.154, allocations: 87.91 kB / 0.5687 GB, free: 43.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004192/1.155, allocations: 108.8 kB / 0.5688 GB, free: 43.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/1.155, allocations: 35.98 kB / 0.5688 GB, free: 43.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002272/1.157, allocations: 1.016 MB / 0.5698 GB, free: 42.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.157, allocations: 3.938 kB / 0.5698 GB, free: 42.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00264/1.16, allocations: 491.9 kB / 0.5703 GB, free: 41.56 MB / 378.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: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * 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): 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 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009177/1.169, allocations: 4.736 MB / 0.5749 GB, free: 36.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005585/1.175, allocations: 2.301 MB / 0.5771 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/1.175, allocations: 0 / 0.5771 GB, free: 34.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003614/1.178, allocations: 1.519 MB / 0.5786 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003296/1.182, allocations: 414.4 kB / 0.579 GB, free: 32.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03505/1.217, allocations: 19.39 MB / 0.598 GB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/1.219, allocations: 1.838 MB / 0.5998 GB, free: 10.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/1.221, allocations: 0.7961 MB / 0.6005 GB, free: 9.656 MB / 378.7 MB Notification: Performance of SimCode: time 2.224e-06/1.221, allocations: 0 / 0.6005 GB, free: 9.656 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.955/5.176, allocations: 78.63 MB / 0.6773 GB, free: 105.2 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.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_DOL_res.mat does not exist to compare? outputFormat=mat