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.002218/0.002217, allocations: 180.1 kB / 8.365 MB, free: 0.7109 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.358/2.358, 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.001121/0.001121, allocations: 87.09 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.207e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.344, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2219/0.566, allocations: 109.5 MB / 471.9 MB, free: 8.695 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004141/0.5665, allocations: 79.95 kB / 472 MB, free: 8.617 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6269/1.193, allocations: 64.34 MB / 0.5237 GB, free: 98.31 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.886e-06/1.193, allocations: 0 / 0.5237 GB, free: 98.31 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003758/1.194, allocations: 87.34 kB / 0.5238 GB, free: 98.29 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01175/1.206, allocations: 3.258 MB / 0.527 GB, free: 96.96 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/1.206, allocations: 11.42 kB / 0.527 GB, free: 96.96 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002534/1.208, allocations: 444.7 kB / 0.5274 GB, free: 96.75 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007734/1.216, allocations: 2.372 MB / 0.5298 GB, free: 96.22 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/1.216, allocations: 102.1 kB / 0.5299 GB, free: 96.21 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/1.217, allocations: 183 kB / 0.53 GB, free: 96.21 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00948/1.227, allocations: 3.302 MB / 0.5333 GB, free: 95.16 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/1.238, allocations: 3.794 MB / 0.537 GB, free: 93.44 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/1.238, allocations: 5.922 kB / 0.537 GB, free: 93.44 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004521/1.239, allocations: 7.562 kB / 0.537 GB, free: 93.43 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/1.239, allocations: 128.9 kB / 0.5371 GB, free: 93.42 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03252/1.271, allocations: 12.99 MB / 0.5498 GB, free: 86.61 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00488/1.276, allocations: 2.811 MB / 0.5525 GB, free: 84.92 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003383/1.28, allocations: 1.462 MB / 0.554 GB, free: 84.42 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004522/1.28, allocations: 147.3 kB / 0.5541 GB, free: 84.32 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/1.28, allocations: 52.94 kB / 0.5542 GB, free: 84.27 MB / 395.1 MB Notification: Performance of pre-optimization done (n=167): time 5.05e-06/1.28, allocations: 0 / 0.5542 GB, free: 84.27 MB / 395.1 MB Notification: Performance of matching and sorting (n=183): time 0.01792/1.298, allocations: 6.308 MB / 0.5603 GB, free: 79.92 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/1.298, allocations: 84.17 kB / 0.5604 GB, free: 79.83 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003647/1.302, allocations: 1.699 MB / 0.5621 GB, free: 78.29 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004931/1.303, allocations: 29.7 kB / 0.5621 GB, free: 78.25 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00103/1.304, allocations: 1.381 MB / 0.5634 GB, free: 76.98 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008474/1.305, allocations: 0.5841 MB / 0.564 GB, free: 76.44 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/1.305, allocations: 0 / 0.564 GB, free: 76.44 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/1.305, allocations: 389.5 kB / 0.5644 GB, free: 76.07 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002249/1.307, allocations: 1.044 MB / 0.5654 GB, free: 75.12 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002554/1.31, allocations: 1.444 MB / 0.5668 GB, free: 73.52 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002799/1.313, allocations: 1.251 MB / 0.568 GB, free: 72.27 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/1.313, allocations: 4 kB / 0.568 GB, free: 72.27 MB / 395.1 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.007752/1.32, allocations: 3.153 MB / 0.5711 GB, free: 69.09 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/1.32, allocations: 12.03 kB / 0.5711 GB, free: 69.08 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/1.321, allocations: 15.94 kB / 0.5711 GB, free: 69.06 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003084/1.324, allocations: 0.801 MB / 0.5719 GB, free: 68.25 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/1.327, allocations: 457.8 kB / 0.5724 GB, free: 67.8 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/1.34, allocations: 10.38 MB / 0.5825 GB, free: 56.87 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003204/1.344, allocations: 87.94 kB / 0.5826 GB, free: 56.78 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004645/1.344, allocations: 72 kB / 0.5826 GB, free: 56.71 MB / 395.1 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.0005405/1.345, allocations: 156.5 kB / 0.5828 GB, free: 56.55 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007537/1.352, allocations: 2.918 MB / 0.5856 GB, free: 53.6 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.353, allocations: 228.9 kB / 0.5859 GB, free: 53.38 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008079/1.361, allocations: 3.108 MB / 0.5889 GB, free: 50.23 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/1.361, allocations: 23.95 kB / 0.5889 GB, free: 50.21 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.919e-05/1.361, allocations: 12 kB / 0.5889 GB, free: 50.2 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.703e-05/1.362, allocations: 7.969 kB / 0.5889 GB, free: 50.19 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0179/1.379, allocations: 6.362 MB / 0.5951 GB, free: 43.77 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.952e-05/1.38, allocations: 4 kB / 0.5952 GB, free: 43.77 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002695/1.382, allocations: 307.6 kB / 0.5954 GB, free: 43.47 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003956/1.386, allocations: 0.8962 MB / 0.5963 GB, free: 42.55 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005032/1.387, allocations: 7.984 kB / 0.5963 GB, free: 42.54 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01546/1.402, allocations: 12.96 MB / 0.609 GB, free: 28.81 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/1.402, allocations: 7.938 kB / 0.609 GB, free: 28.8 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/1.413, allocations: 4.764 MB / 0.6136 GB, free: 23.92 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002242/1.415, allocations: 0.545 MB / 0.6142 GB, free: 23.35 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007248/1.416, allocations: 15.94 kB / 0.6142 GB, free: 23.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002848/1.419, allocations: 99.88 kB / 0.6143 GB, free: 23.24 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007958/1.42, allocations: 165.8 kB / 0.6144 GB, free: 23.08 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/1.42, allocations: 47.98 kB / 0.6145 GB, free: 23.03 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002993/1.423, allocations: 1.288 MB / 0.6157 GB, free: 21.72 MB / 395.1 MB Notification: Performance of sort global known variables: time 7.52e-07/1.423, allocations: 0 / 0.6157 GB, free: 21.72 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00411/1.427, allocations: 0.6407 MB / 0.6164 GB, free: 21.08 MB / 395.1 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 () * 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.01203/1.439, allocations: 6 MB / 0.6222 GB, free: 15.01 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.007534/1.447, allocations: 3.392 MB / 0.6255 GB, free: 11.52 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.447, allocations: 4 kB / 0.6255 GB, free: 11.52 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005379/1.452, allocations: 2.385 MB / 0.6279 GB, free: 9.047 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004805/1.457, allocations: 0.5171 MB / 0.6284 GB, free: 8.543 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.019/1.476, allocations: 6.314 MB / 0.6345 GB, free: 2.184 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00373/1.48, allocations: 2.528 MB / 0.637 GB, free: 15.62 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003731/1.484, allocations: 1.241 MB / 0.6382 GB, free: 14.38 MB / 411.1 MB Notification: Performance of SimCode: time 1.733e-06/1.484, allocations: 8 kB / 0.6382 GB, free: 14.38 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.943/6.427, allocations: 173.9 MB / 0.8081 GB, free: 118.8 MB / 443.1 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