Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001299/0.001299, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00105/0.00105, allocations: 106.7 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.044e-05/2.048e-05, allocations: 7.984 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4082/0.5147, allocations: 112.2 MB / 0.4956 GB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.515, allocations: 81.77 kB / 0.4957 GB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5285/1.043, allocations: 92.73 MB / 0.5862 GB, free: 68.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.267e-06/1.044, allocations: 0 / 0.5862 GB, free: 68.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004755/1.044, allocations: 98.17 kB / 0.5863 GB, free: 68.24 MB / 442.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.01177/1.056, allocations: 3.566 MB / 0.5898 GB, free: 67.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.056, allocations: 9.406 kB / 0.5898 GB, free: 67.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003224/1.059, allocations: 0.5373 MB / 0.5903 GB, free: 66.83 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007347/1.066, allocations: 2.549 MB / 0.5928 GB, free: 66.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/1.067, allocations: 114.1 kB / 0.5929 GB, free: 66.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00145/1.068, allocations: 215 kB / 0.5931 GB, free: 66.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008333/1.077, allocations: 3.687 MB / 0.5967 GB, free: 66.27 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/1.087, allocations: 4.314 MB / 0.601 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/1.087, allocations: 10.25 kB / 0.601 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008215/1.088, allocations: 4.875 kB / 0.601 GB, free: 65.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/1.088, allocations: 179.7 kB / 0.6011 GB, free: 65.78 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02508/1.113, allocations: 14.22 MB / 0.615 GB, free: 62.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004453/1.118, allocations: 4.064 MB / 0.619 GB, free: 61.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/1.121, allocations: 1.755 MB / 0.6207 GB, free: 61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003432/1.121, allocations: 149.5 kB / 0.6209 GB, free: 60.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/1.121, allocations: 58.92 kB / 0.6209 GB, free: 60.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 3.977e-06/1.121, allocations: 0 / 0.6209 GB, free: 60.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.01585/1.137, allocations: 7.201 MB / 0.6279 GB, free: 59.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/1.137, allocations: 80.92 kB / 0.628 GB, free: 59.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005059/1.142, allocations: 1.746 MB / 0.6297 GB, free: 58.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004996/1.143, allocations: 26.67 kB / 0.6298 GB, free: 58.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/1.144, allocations: 1.606 MB / 0.6313 GB, free: 57.31 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008896/1.145, allocations: 0.7102 MB / 0.632 GB, free: 56.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/1.145, allocations: 0 / 0.632 GB, free: 56.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/1.145, allocations: 394 kB / 0.6324 GB, free: 56.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/1.147, allocations: 1.195 MB / 0.6336 GB, free: 55.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001901/1.149, allocations: 1.608 MB / 0.6351 GB, free: 55.02 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/1.151, allocations: 1.434 MB / 0.6365 GB, free: 54.47 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.465e-05/1.151, allocations: 7.812 kB / 0.6365 GB, free: 54.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006295/1.158, allocations: 3.666 MB / 0.6401 GB, free: 53.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/1.158, allocations: 10.27 kB / 0.6401 GB, free: 53.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/1.158, allocations: 14.56 kB / 0.6401 GB, free: 53.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/1.16, allocations: 0.7444 MB / 0.6409 GB, free: 52.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/1.162, allocations: 0.5269 MB / 0.6414 GB, free: 52.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008114/1.17, allocations: 8.345 MB / 0.6495 GB, free: 47.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002748/1.173, allocations: 70.11 kB / 0.6496 GB, free: 47.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005756/1.173, allocations: 86.94 kB / 0.6497 GB, free: 47.08 MB / 442.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,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008638/1.174, allocations: 162.5 kB / 0.6498 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006383/1.181, allocations: 3.209 MB / 0.653 GB, free: 45.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009891/1.182, allocations: 253.7 kB / 0.6532 GB, free: 45.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005943/1.188, allocations: 3.414 MB / 0.6565 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.946e-05/1.188, allocations: 21.62 kB / 0.6566 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.432e-05/1.188, allocations: 12.39 kB / 0.6566 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/1.188, allocations: 10.08 kB / 0.6566 GB, free: 44.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/1.203, allocations: 7.288 MB / 0.6637 GB, free: 41.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/1.204, allocations: 0 / 0.6637 GB, free: 41.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/1.205, allocations: 394.9 kB / 0.6641 GB, free: 41.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/1.207, allocations: 0.8048 MB / 0.6649 GB, free: 41.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002016/1.208, allocations: 20.98 kB / 0.6649 GB, free: 41.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009068/1.217, allocations: 9.818 MB / 0.6745 GB, free: 34.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/1.217, allocations: 3.906 kB / 0.6745 GB, free: 34.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008189/1.225, allocations: 5.391 MB / 0.6797 GB, free: 31.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001823/1.227, allocations: 0.6045 MB / 0.6803 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009279/1.228, allocations: 15.34 kB / 0.6803 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002048/1.23, allocations: 92.62 kB / 0.6804 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005309/1.23, allocations: 181.6 kB / 0.6806 GB, free: 31.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.231, allocations: 61.98 kB / 0.6807 GB, free: 31.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002765/1.233, allocations: 1.317 MB / 0.682 GB, free: 30.64 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.233, allocations: 0 / 0.682 GB, free: 30.64 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00382/1.237, allocations: 0.7193 MB / 0.6827 GB, free: 30.63 MB / 442.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.008526/1.246, allocations: 6.894 MB / 0.6894 GB, free: 26.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006817/1.253, allocations: 3.627 MB / 0.6929 GB, free: 25.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/1.253, allocations: 3.781 kB / 0.6929 GB, free: 25.28 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003537/1.256, allocations: 2.339 MB / 0.6952 GB, free: 24.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004005/1.26, allocations: 0.533 MB / 0.6957 GB, free: 23.96 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01894/1.279, allocations: 7.267 MB / 0.7028 GB, free: 20.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003286/1.283, allocations: 2.831 MB / 0.7056 GB, free: 18.33 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002688/1.285, allocations: 0.6353 MB / 0.7062 GB, free: 17.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/1.288, allocations: 1.364 MB / 0.7076 GB, free: 16.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/1.288, allocations: 0 / 0.7076 GB, free: 16.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3599/1.648, allocations: 61.81 MB / 0.7679 GB, free: 75.98 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.648, allocations: 167.8 kB / 0.7681 GB, free: 75.79 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.676/5.323, allocations: 0 / 0.7681 GB, free: 75.79 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat