Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.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.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",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.002122/0.002122, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.019/2.019, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001171/0.001171, allocations: 93.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003829/0.000383, allocations: 8 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3447, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.5296, allocations: 110.2 MB / 484.8 MB, free: 2.367 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/0.53, allocations: 99.95 kB / 484.9 MB, free: 2.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5399/1.07, allocations: 65.06 MB / 0.5371 GB, free: 79.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.995e-06/1.07, allocations: 0 / 0.5371 GB, free: 79.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000391/1.07, allocations: 83.94 kB / 0.5372 GB, free: 79.11 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.0143/1.085, allocations: 3.667 MB / 0.5408 GB, free: 75.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.085, allocations: 8.031 kB / 0.5408 GB, free: 75.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001972/1.087, allocations: 446.4 kB / 0.5412 GB, free: 74.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002511/1.089, allocations: 451.1 kB / 0.5416 GB, free: 74.47 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008028/1.097, allocations: 2.386 MB / 0.544 GB, free: 72.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/1.098, allocations: 230.1 kB / 0.5442 GB, free: 71.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001336/1.099, allocations: 307.9 kB / 0.5445 GB, free: 71.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/1.112, allocations: 4.341 MB / 0.5487 GB, free: 67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/1.112, allocations: 0 / 0.5487 GB, free: 67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006194/1.113, allocations: 132 kB / 0.5488 GB, free: 66.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001446/1.113, allocations: 126 kB / 0.549 GB, free: 66.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01169/1.125, allocations: 3.635 MB / 0.5525 GB, free: 63.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03647/1.161, allocations: 13.59 MB / 0.5658 GB, free: 49.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005892/1.167, allocations: 2.95 MB / 0.5687 GB, free: 46.04 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005496/1.168, allocations: 147 kB / 0.5688 GB, free: 45.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/1.168, allocations: 56.56 kB / 0.5689 GB, free: 45.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=167): time 4.869e-06/1.168, allocations: 0 / 0.5689 GB, free: 45.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=183): time 0.03263/1.201, allocations: 9.42 MB / 0.5781 GB, free: 36.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/1.201, allocations: 73.41 kB / 0.5781 GB, free: 36.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004986/1.206, allocations: 2.073 MB / 0.5802 GB, free: 34.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/1.206, allocations: 57.7 kB / 0.5802 GB, free: 33.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/1.207, allocations: 1.35 MB / 0.5815 GB, free: 32.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008982/1.208, allocations: 0.6122 MB / 0.5821 GB, free: 31.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/1.209, allocations: 40 kB / 0.5822 GB, free: 31.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/1.209, allocations: 386.8 kB / 0.5825 GB, free: 31.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003011/1.212, allocations: 1.152 MB / 0.5837 GB, free: 30.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003546/1.215, allocations: 1.565 MB / 0.5852 GB, free: 28.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003583/1.219, allocations: 1.353 MB / 0.5865 GB, free: 27.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.645e-05/1.219, allocations: 4 kB / 0.5865 GB, free: 27.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.009951/1.229, allocations: 3.469 MB / 0.5899 GB, free: 23.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/1.229, allocations: 8.344 kB / 0.5899 GB, free: 23.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.924e-05/1.229, allocations: 19.95 kB / 0.5899 GB, free: 23.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/1.232, allocations: 0.7942 MB / 0.5907 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003674/1.236, allocations: 471.2 kB / 0.5912 GB, free: 22.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/1.25, allocations: 10.51 MB / 0.6014 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003357/1.254, allocations: 123.9 kB / 0.6015 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/1.254, allocations: 75.98 kB / 0.6016 GB, free: 11.14 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 210 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003127/1.257, allocations: 1.089 MB / 0.6027 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008781/1.258, allocations: 245 kB / 0.6029 GB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00977/1.268, allocations: 3.411 MB / 0.6062 GB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/1.268, allocations: 20 kB / 0.6063 GB, free: 6.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/1.268, allocations: 4 kB / 0.6063 GB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.817e-05/1.268, allocations: 11.95 kB / 0.6063 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02099/1.289, allocations: 6.927 MB / 0.613 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/1.289, allocations: 3.938 kB / 0.613 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003015/1.292, allocations: 311.5 kB / 0.6133 GB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004583/1.297, allocations: 0.933 MB / 0.6142 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004999/1.297, allocations: 43.98 kB / 0.6143 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02286/1.32, allocations: 13.76 MB / 0.6277 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/1.32, allocations: 8.094 kB / 0.6277 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/1.336, allocations: 5.148 MB / 0.6328 GB, free: 10 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00256/1.339, allocations: 0.576 MB / 0.6333 GB, free: 9.406 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009674/1.34, allocations: 39.98 kB / 0.6334 GB, free: 9.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00303/1.343, allocations: 135.8 kB / 0.6335 GB, free: 9.234 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008632/1.344, allocations: 165.7 kB / 0.6336 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/1.344, allocations: 56.03 kB / 0.6337 GB, free: 9.016 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004821/1.349, allocations: 1.59 MB / 0.6353 GB, free: 7.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.349, allocations: 0 / 0.6353 GB, free: 7.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004597/1.354, allocations: 0.7462 MB / 0.636 GB, free: 6.664 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * 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: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01755/1.371, allocations: 6.432 MB / 0.6423 GB, free: 132 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3062/1.678, allocations: 3.659 MB / 0.6458 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.678, allocations: 0 / 0.6458 GB, free: 104.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005724/1.683, allocations: 2.562 MB / 0.6483 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004997/1.688, allocations: 0.6641 MB / 0.649 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05823/1.747, allocations: 28.96 MB / 0.6773 GB, free: 89.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/1.75, allocations: 2.537 MB / 0.6798 GB, free: 88.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002834/1.752, allocations: 1.259 MB / 0.681 GB, free: 87.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.253e-06/1.752, allocations: 0 / 0.681 GB, free: 87.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.601/6.354, allocations: 176.8 MB / 0.8537 GB, free: 92.01 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat