Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009376/0.0009376, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000785/0.000785, allocations: 70.73 kB / 262.4 MB, free: 1.695 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.356e-05/1.365e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.09147, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.375/0.4665, allocations: 109.7 MB / 472.9 MB, free: 2.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.4669, allocations: 82.23 kB / 473 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1709/0.6378, allocations: 64.34 MB / 0.5247 GB, free: 6.941 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.215e-06/0.6378, allocations: 0 / 0.5247 GB, free: 6.941 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003827/0.6382, allocations: 87.88 kB / 0.5248 GB, free: 6.855 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.009952/0.6482, allocations: 3.253 MB / 0.528 GB, free: 3.543 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.6482, allocations: 8.031 kB / 0.528 GB, free: 3.535 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002146/0.6504, allocations: 447.1 kB / 0.5284 GB, free: 3.094 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005451/0.6559, allocations: 2.383 MB / 0.5307 GB, free: 0.6602 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.656, allocations: 100 kB / 0.5308 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006867/0.6567, allocations: 187.9 kB / 0.531 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2419/0.8986, allocations: 3.293 MB / 0.5342 GB, free: 92.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00991/0.9086, allocations: 3.792 MB / 0.5379 GB, free: 92.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.9088, allocations: 7.453 kB / 0.5379 GB, free: 92.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004002/0.9092, allocations: 4.125 kB / 0.5379 GB, free: 92.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.9094, allocations: 126.1 kB / 0.5381 GB, free: 92.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0276/0.937, allocations: 12.98 MB / 0.5507 GB, free: 89.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003011/0.94, allocations: 2.828 MB / 0.5535 GB, free: 88.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.9418, allocations: 1.455 MB / 0.5549 GB, free: 88.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/0.9422, allocations: 148.8 kB / 0.5551 GB, free: 88.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.9422, allocations: 49.41 kB / 0.5551 GB, free: 88.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=167): time 4.789e-06/0.9422, allocations: 0 / 0.5551 GB, free: 88.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=183): time 0.01087/0.9531, allocations: 6.321 MB / 0.5613 GB, free: 87.11 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.9532, allocations: 72.5 kB / 0.5613 GB, free: 87.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.9558, allocations: 1.705 MB / 0.563 GB, free: 86.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003218/0.9561, allocations: 29.67 kB / 0.563 GB, free: 86.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008599/0.957, allocations: 1.464 MB / 0.5645 GB, free: 85.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005343/0.9575, allocations: 0.5853 MB / 0.565 GB, free: 85.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.9576, allocations: 0 / 0.565 GB, free: 85.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.9578, allocations: 390.4 kB / 0.5654 GB, free: 84.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.9591, allocations: 1.044 MB / 0.5664 GB, free: 84.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/0.9606, allocations: 1.435 MB / 0.5678 GB, free: 83.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.9624, allocations: 1.255 MB / 0.5691 GB, free: 83.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.9624, allocations: 3.938 kB / 0.5691 GB, free: 83.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.005027/0.9674, allocations: 3.293 MB / 0.5723 GB, free: 82.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.9675, allocations: 12.72 kB / 0.5723 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.9675, allocations: 13.28 kB / 0.5723 GB, free: 82.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/0.9693, allocations: 0.7913 MB / 0.5731 GB, free: 81.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.971, allocations: 460.8 kB / 0.5735 GB, free: 81.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008002/0.979, allocations: 10.38 MB / 0.5837 GB, free: 73.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/0.9812, allocations: 90.86 kB / 0.5837 GB, free: 73.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002111/0.9814, allocations: 78.94 kB / 0.5838 GB, free: 73.73 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.0003919/0.9818, allocations: 156 kB / 0.584 GB, free: 73.61 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004144/0.986, allocations: 2.919 MB / 0.5868 GB, free: 72.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005244/0.9865, allocations: 225.1 kB / 0.587 GB, free: 72.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.9911, allocations: 3.11 MB / 0.5901 GB, free: 71.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.9911, allocations: 15.03 kB / 0.5901 GB, free: 71.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.9911, allocations: 9.031 kB / 0.5901 GB, free: 71.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.9912, allocations: 11.25 kB / 0.5901 GB, free: 71.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009737/1.001, allocations: 6.368 MB / 0.5963 GB, free: 68.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/1.001, allocations: 9.516 kB / 0.5963 GB, free: 68.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/1.002, allocations: 313.7 kB / 0.5966 GB, free: 68.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/1.004, allocations: 0.8914 MB / 0.5975 GB, free: 68.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/1.004, allocations: 17.94 kB / 0.5975 GB, free: 68.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008969/1.013, allocations: 12.95 MB / 0.6102 GB, free: 58.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.013, allocations: 2.25 kB / 0.6102 GB, free: 58.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/1.02, allocations: 4.759 MB / 0.6148 GB, free: 56.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/1.021, allocations: 0.5495 MB / 0.6153 GB, free: 55.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003091/1.021, allocations: 11.05 kB / 0.6154 GB, free: 55.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/1.023, allocations: 103.7 kB / 0.6155 GB, free: 55.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003997/1.023, allocations: 157.3 kB / 0.6156 GB, free: 55.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/1.023, allocations: 51.75 kB / 0.6156 GB, free: 55.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001827/1.025, allocations: 1.29 MB / 0.6169 GB, free: 54.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.025, allocations: 0 / 0.6169 GB, free: 54.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002492/1.028, allocations: 0.6401 MB / 0.6175 GB, free: 53.51 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 () * 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.006391/1.034, allocations: 6.005 MB / 0.6234 GB, free: 48.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/1.038, allocations: 3.392 MB / 0.6267 GB, free: 44.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.038, allocations: 7.938 kB / 0.6267 GB, free: 44.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002939/1.041, allocations: 2.386 MB / 0.629 GB, free: 42.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003609/1.045, allocations: 0.5128 MB / 0.6295 GB, free: 42.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/1.06, allocations: 6.347 MB / 0.6357 GB, free: 36.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002312/1.062, allocations: 2.583 MB / 0.6383 GB, free: 34.88 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001961/1.064, allocations: 0.542 MB / 0.6388 GB, free: 34.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/1.066, allocations: 1.235 MB / 0.64 GB, free: 33.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/1.066, allocations: 0 / 0.64 GB, free: 33.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2999/1.366, allocations: 57.29 MB / 0.696 GB, free: 87.28 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/1.366, allocations: 176.1 kB / 0.6961 GB, free: 87.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.571/4.937, allocations: 1.188 kB / 0.6961 GB, free: 87.09 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat