Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001182, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 221.3 MB / 235.5 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009049, allocations: 86.47 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.907e-05, allocations: 8 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 50.42 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.4531, allocations: 112.1 MB / 0.4945 GB, free: 7.371 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/0.4535, allocations: 79.95 kB / 0.4946 GB, free: 7.293 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4767/0.9302, allocations: 93.8 MB / 0.5862 GB, free: 95.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.9303, allocations: 0 / 0.5862 GB, free: 95.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003155/0.9306, allocations: 104.6 kB / 0.5863 GB, free: 95.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.00981/0.9404, allocations: 3.556 MB / 0.5898 GB, free: 94.33 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.9405, allocations: 11.75 kB / 0.5898 GB, free: 94.33 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00154/0.942, allocations: 0.4912 MB / 0.5903 GB, free: 94.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001862/0.9439, allocations: 0.504 MB / 0.5908 GB, free: 93.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005129/0.949, allocations: 2.538 MB / 0.5932 GB, free: 92.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.9492, allocations: 267.1 kB / 0.5935 GB, free: 92.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007978/0.95, allocations: 365 kB / 0.5939 GB, free: 92.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007947/0.958, allocations: 4.829 MB / 0.5986 GB, free: 90.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.935e-05/0.9581, allocations: 11.56 kB / 0.5986 GB, free: 90.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000368/0.9585, allocations: 151.7 kB / 0.5987 GB, free: 89.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/0.9586, allocations: 175.2 kB / 0.5989 GB, free: 89.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006235/0.9649, allocations: 3.901 MB / 0.6027 GB, free: 88.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02538/0.9903, allocations: 14.95 MB / 0.6173 GB, free: 80.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003825/0.9941, allocations: 4.145 MB / 0.6213 GB, free: 77.94 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.9965, allocations: 1.84 MB / 0.6231 GB, free: 77.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003048/0.9969, allocations: 141.4 kB / 0.6233 GB, free: 77.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.9969, allocations: 60.56 kB / 0.6233 GB, free: 77.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 3.447e-06/0.9969, allocations: 0 / 0.6233 GB, free: 77.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01706/1.014, allocations: 8.344 MB / 0.6315 GB, free: 69.81 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/1.014, allocations: 73.41 kB / 0.6316 GB, free: 69.72 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004344/1.018, allocations: 2.18 MB / 0.6337 GB, free: 67.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003123/1.019, allocations: 65.7 kB / 0.6337 GB, free: 67.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/1.02, allocations: 1.603 MB / 0.6353 GB, free: 65.83 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000639/1.021, allocations: 0.7424 MB / 0.636 GB, free: 65.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/1.021, allocations: 44 kB / 0.6361 GB, free: 65.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/1.021, allocations: 406.5 kB / 0.6365 GB, free: 64.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001823/1.023, allocations: 1.23 MB / 0.6377 GB, free: 63.42 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/1.025, allocations: 1.663 MB / 0.6393 GB, free: 61.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/1.027, allocations: 1.489 MB / 0.6407 GB, free: 60.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-05/1.027, allocations: 4 kB / 0.6407 GB, free: 60.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.007382/1.035, allocations: 3.911 MB / 0.6446 GB, free: 56.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.8e-05/1.035, allocations: 8 kB / 0.6446 GB, free: 56.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/1.035, allocations: 12 kB / 0.6446 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002102/1.037, allocations: 0.7623 MB / 0.6453 GB, free: 55.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00264/1.04, allocations: 0.5305 MB / 0.6459 GB, free: 54.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009891/1.049, allocations: 8.715 MB / 0.6544 GB, free: 45.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/1.052, allocations: 123.9 kB / 0.6545 GB, free: 45.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005396/1.053, allocations: 84 kB / 0.6546 GB, free: 45.53 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008425/1.054, allocations: 240.9 kB / 0.6548 GB, free: 45.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.055, allocations: 272.7 kB / 0.655 GB, free: 45.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006329/1.061, allocations: 3.637 MB / 0.6586 GB, free: 41.35 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/1.061, allocations: 23.95 kB / 0.6586 GB, free: 41.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/1.061, allocations: 8 kB / 0.6586 GB, free: 41.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/1.061, allocations: 11.95 kB / 0.6586 GB, free: 41.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01334/1.075, allocations: 7.941 MB / 0.6664 GB, free: 33.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/1.075, allocations: 4 kB / 0.6664 GB, free: 33.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/1.076, allocations: 395.7 kB / 0.6668 GB, free: 32.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.078, allocations: 0.8203 MB / 0.6676 GB, free: 32.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/1.078, allocations: 51.98 kB / 0.6676 GB, free: 32.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008373/1.087, allocations: 10.22 MB / 0.6776 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.087, allocations: 7.969 kB / 0.6776 GB, free: 21.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007419/1.094, allocations: 5.614 MB / 0.6831 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.096, allocations: 0.642 MB / 0.6837 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008859/1.097, allocations: 55.94 kB / 0.6838 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/1.099, allocations: 127.9 kB / 0.6839 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004961/1.099, allocations: 173.7 kB / 0.6841 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.099, allocations: 63.98 kB / 0.6841 GB, free: 14.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002859/1.102, allocations: 1.679 MB / 0.6858 GB, free: 12.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.102, allocations: 3.938 kB / 0.6858 GB, free: 12.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003398/1.106, allocations: 0.832 MB / 0.6866 GB, free: 11.93 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007862/1.114, allocations: 7.127 MB / 0.6935 GB, free: 4.723 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004846/1.119, allocations: 3.778 MB / 0.6972 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.119, allocations: 0.875 kB / 0.6972 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003441/1.122, allocations: 2.445 MB / 0.6996 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/1.126, allocations: 0.7385 MB / 0.7003 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.143, allocations: 7.505 MB / 0.7077 GB, free: 6.059 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003457/1.146, allocations: 2.855 MB / 0.7105 GB, free: 3.176 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002783/1.149, allocations: 0.6788 MB / 0.7111 GB, free: 2.492 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002237/1.151, allocations: 1.39 MB / 0.7125 GB, free: 1.102 MB / 442.7 MB Notification: Performance of SimCode: time 1.623e-06/1.151, allocations: 0 / 0.7125 GB, free: 1.102 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3406/1.492, allocations: 74.88 MB / 0.7856 GB, free: 76.86 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/1.492, allocations: 207.1 kB / 0.7858 GB, free: 76.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.966/5.458, allocations: 6.812 kB / 0.7858 GB, free: 76.62 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat