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.002556/0.002561, allocations: 181.3 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.109/2.109, 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.001083/0.001082, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.298e-05/3.318e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4883/0.601, allocations: 110.1 MB / 479.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.6014, allocations: 80.52 kB / 479.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.572/1.173, allocations: 65.19 MB / 0.5318 GB, free: 91.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.173, allocations: 3.969 kB / 0.5318 GB, free: 91.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004716/1.174, allocations: 86.81 kB / 0.5319 GB, free: 91.1 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01371/1.188, allocations: 3.254 MB / 0.5351 GB, free: 90.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.618e-05/1.188, allocations: 9.875 kB / 0.5351 GB, free: 90.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002006/1.19, allocations: 440.9 kB / 0.5355 GB, free: 90.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002676/1.192, allocations: 446.1 kB / 0.5359 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009278/1.202, allocations: 2.375 MB / 0.5383 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/1.202, allocations: 234 kB / 0.5385 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001392/1.204, allocations: 304.7 kB / 0.5388 GB, free: 89.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/1.219, allocations: 4.241 MB / 0.5429 GB, free: 89.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001597/1.219, allocations: 12.47 kB / 0.5429 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006414/1.22, allocations: 133.3 kB / 0.543 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002168/1.22, allocations: 121.5 kB / 0.5432 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01292/1.233, allocations: 3.483 MB / 0.5466 GB, free: 89.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03872/1.272, allocations: 13.59 MB / 0.5598 GB, free: 85.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00522/1.277, allocations: 2.905 MB / 0.5627 GB, free: 84.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004102/1.281, allocations: 1.585 MB / 0.5642 GB, free: 83.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005397/1.282, allocations: 145.9 kB / 0.5644 GB, free: 83.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.392e-05/1.282, allocations: 51.69 kB / 0.5644 GB, free: 83.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 4.709e-06/1.282, allocations: 1.875 kB / 0.5644 GB, free: 83.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=183): time 0.02487/1.307, allocations: 7.308 MB / 0.5716 GB, free: 80.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.307, allocations: 68.56 kB / 0.5716 GB, free: 80.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004812/1.312, allocations: 2.051 MB / 0.5736 GB, free: 79.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005051/1.312, allocations: 63.44 kB / 0.5737 GB, free: 79.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001143/1.313, allocations: 1.354 MB / 0.575 GB, free: 78.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009654/1.314, allocations: 0.6053 MB / 0.5756 GB, free: 78.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/1.314, allocations: 38.69 kB / 0.5756 GB, free: 78.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/1.315, allocations: 386.5 kB / 0.576 GB, free: 77.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002616/1.317, allocations: 1.084 MB / 0.5771 GB, free: 77.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003044/1.32, allocations: 1.483 MB / 0.5785 GB, free: 76.56 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003047/1.323, allocations: 1.294 MB / 0.5798 GB, free: 76.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/1.323, allocations: 3.625 kB / 0.5798 GB, free: 76.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.009038/1.333, allocations: 3.35 MB / 0.583 GB, free: 74.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/1.333, allocations: 7.5 kB / 0.5831 GB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/1.333, allocations: 11.22 kB / 0.5831 GB, free: 74.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003349/1.336, allocations: 0.8127 MB / 0.5839 GB, free: 74.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003698/1.34, allocations: 463.7 kB / 0.5843 GB, free: 74.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/1.354, allocations: 10.83 MB / 0.5949 GB, free: 66.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/1.358, allocations: 126.5 kB / 0.595 GB, free: 66.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000629/1.358, allocations: 78.91 kB / 0.5951 GB, free: 66.16 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 207 * 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%) 5,(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006002/1.359, allocations: 216.5 kB / 0.5953 GB, free: 65.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009215/1.36, allocations: 243.5 kB / 0.5955 GB, free: 65.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008675/1.369, allocations: 3.283 MB / 0.5987 GB, free: 64.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.752e-05/1.369, allocations: 18.19 kB / 0.5987 GB, free: 64.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/1.369, allocations: 8.469 kB / 0.5987 GB, free: 64.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.002e-05/1.369, allocations: 6.938 kB / 0.5987 GB, free: 64.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.389, allocations: 6.953 MB / 0.6055 GB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/1.389, allocations: 7.781 kB / 0.6055 GB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002859/1.391, allocations: 312.7 kB / 0.6058 GB, free: 61.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004198/1.396, allocations: 0.9246 MB / 0.6067 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005094/1.396, allocations: 38.48 kB / 0.6068 GB, free: 61.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/1.413, allocations: 13.48 MB / 0.6199 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.413, allocations: 0 / 0.6199 GB, free: 48.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.425, allocations: 4.986 MB / 0.6248 GB, free: 43.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002356/1.427, allocations: 0.572 MB / 0.6254 GB, free: 43.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009894/1.428, allocations: 36 kB / 0.6254 GB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003025/1.431, allocations: 134.8 kB / 0.6255 GB, free: 43.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007875/1.432, allocations: 170.6 kB / 0.6257 GB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/1.432, allocations: 55.52 kB / 0.6258 GB, free: 43.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003858/1.436, allocations: 1.567 MB / 0.6273 GB, free: 41.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.436, allocations: 0 / 0.6273 GB, free: 41.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004171/1.44, allocations: 0.7413 MB / 0.628 GB, free: 40.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 141 * 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.0128/1.453, allocations: 6.387 MB / 0.6342 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008215/1.461, allocations: 3.52 MB / 0.6377 GB, free: 31.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.462, allocations: 4.188 kB / 0.6377 GB, free: 31.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005563/1.467, allocations: 2.484 MB / 0.6401 GB, free: 29.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/1.472, allocations: 0.6841 MB / 0.6408 GB, free: 28.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02084/1.493, allocations: 6.516 MB / 0.6471 GB, free: 23.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/1.5, allocations: 2.54 MB / 0.6496 GB, free: 21.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004809/1.505, allocations: 1.259 MB / 0.6509 GB, free: 20.11 MB / 410.7 MB Notification: Performance of SimCode: time 2.194e-06/1.505, allocations: 0 / 0.6509 GB, free: 20.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.935/6.44, allocations: 176.7 MB / 0.8234 GB, free: 4.215 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