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.001882/0.001882, allocations: 198 kB / 14.17 MB, free: 1.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009709/0.0009709, allocations: 94.41 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.412e-05/3.426e-05, allocations: 0 / 350.7 MB, free: 2.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1156, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3997/0.5153, allocations: 112.9 MB / 0.5029 GB, free: 8.91 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.5158, allocations: 84.89 kB / 0.503 GB, free: 8.867 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5316/1.047, allocations: 93.91 MB / 0.5947 GB, free: 73.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.787e-06/1.047, allocations: 0.6562 kB / 0.5947 GB, free: 73.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003759/1.048, allocations: 101.1 kB / 0.5948 GB, free: 73.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.01169/1.06, allocations: 3.572 MB / 0.5983 GB, free: 71.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.06, allocations: 11.06 kB / 0.5983 GB, free: 71.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001669/1.061, allocations: 0.4948 MB / 0.5988 GB, free: 71.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002138/1.063, allocations: 0.5376 MB / 0.5993 GB, free: 71.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006404/1.07, allocations: 2.545 MB / 0.6018 GB, free: 71.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/1.07, allocations: 270.5 kB / 0.6021 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008113/1.071, allocations: 352.7 kB / 0.6024 GB, free: 71.08 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009569/1.081, allocations: 4.829 MB / 0.6071 GB, free: 70.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.951e-05/1.081, allocations: 7.781 kB / 0.6071 GB, free: 70.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004357/1.081, allocations: 148 kB / 0.6073 GB, free: 70.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002331/1.081, allocations: 179.5 kB / 0.6074 GB, free: 70.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008319/1.09, allocations: 3.905 MB / 0.6113 GB, free: 70.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02774/1.118, allocations: 14.95 MB / 0.6259 GB, free: 66.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004451/1.122, allocations: 4.154 MB / 0.6299 GB, free: 64.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/1.124, allocations: 1.828 MB / 0.6317 GB, free: 63.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003387/1.125, allocations: 144.5 kB / 0.6318 GB, free: 63.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/1.125, allocations: 61.47 kB / 0.6319 GB, free: 63.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 4.248e-06/1.125, allocations: 0 / 0.6319 GB, free: 63.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.0177/1.143, allocations: 8.347 MB / 0.64 GB, free: 60.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/1.143, allocations: 79.72 kB / 0.6401 GB, free: 60.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003537/1.146, allocations: 2.185 MB / 0.6423 GB, free: 59.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003335/1.147, allocations: 61.2 kB / 0.6423 GB, free: 59.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008895/1.147, allocations: 1.597 MB / 0.6439 GB, free: 57.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005081/1.148, allocations: 0.7432 MB / 0.6446 GB, free: 57.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/1.148, allocations: 43.56 kB / 0.6446 GB, free: 57.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/1.148, allocations: 395.2 kB / 0.645 GB, free: 57.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/1.15, allocations: 1.241 MB / 0.6462 GB, free: 56.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001705/1.151, allocations: 1.667 MB / 0.6479 GB, free: 55.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001799/1.153, allocations: 1.491 MB / 0.6493 GB, free: 55.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.486e-06/1.153, allocations: 3.062 kB / 0.6493 GB, free: 55.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006011/1.159, allocations: 3.906 MB / 0.6531 GB, free: 53.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/1.159, allocations: 15.36 kB / 0.6531 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/1.159, allocations: 14.53 kB / 0.6532 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/1.161, allocations: 0.7543 MB / 0.6539 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002015/1.163, allocations: 0.5276 MB / 0.6544 GB, free: 53.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/1.172, allocations: 8.712 MB / 0.6629 GB, free: 47.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002708/1.174, allocations: 123.4 kB / 0.663 GB, free: 47.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003241/1.175, allocations: 86 kB / 0.6631 GB, free: 47.13 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,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004927/1.175, allocations: 240.4 kB / 0.6633 GB, free: 46.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000615/1.176, allocations: 278.5 kB / 0.6636 GB, free: 46.78 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005755/1.181, allocations: 3.642 MB / 0.6672 GB, free: 45.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/1.182, allocations: 23.59 kB / 0.6672 GB, free: 45.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/1.182, allocations: 6.656 kB / 0.6672 GB, free: 45.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-05/1.182, allocations: 15.25 kB / 0.6672 GB, free: 45.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01371/1.195, allocations: 7.938 MB / 0.675 GB, free: 42.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/1.195, allocations: 3.656 kB / 0.675 GB, free: 42.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/1.197, allocations: 397.4 kB / 0.6753 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.199, allocations: 0.8134 MB / 0.6761 GB, free: 41.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/1.199, allocations: 57.03 kB / 0.6762 GB, free: 41.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008842/1.208, allocations: 10.21 MB / 0.6862 GB, free: 34.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.208, allocations: 3.938 kB / 0.6862 GB, free: 34.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007542/1.216, allocations: 5.609 MB / 0.6916 GB, free: 31.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002078/1.218, allocations: 0.6454 MB / 0.6923 GB, free: 31.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007036/1.219, allocations: 51.36 kB / 0.6923 GB, free: 31.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/1.22, allocations: 130.8 kB / 0.6924 GB, free: 31.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/1.221, allocations: 180.6 kB / 0.6926 GB, free: 31.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.221, allocations: 69.39 kB / 0.6927 GB, free: 31.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002626/1.224, allocations: 1.673 MB / 0.6943 GB, free: 30.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.224, allocations: 0 / 0.6943 GB, free: 30.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004167/1.228, allocations: 0.8434 MB / 0.6951 GB, free: 29.66 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.00865/1.236, allocations: 7.129 MB / 0.7021 GB, free: 23.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005092/1.242, allocations: 3.785 MB / 0.7058 GB, free: 19.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/1.242, allocations: 0.9375 kB / 0.7058 GB, free: 19.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003121/1.245, allocations: 2.44 MB / 0.7082 GB, free: 17.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003903/1.249, allocations: 0.7383 MB / 0.7089 GB, free: 16.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.262, allocations: 7.514 MB / 0.7162 GB, free: 10.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002083/1.264, allocations: 2.845 MB / 0.719 GB, free: 8.184 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002399/1.266, allocations: 0.6814 MB / 0.7197 GB, free: 7.707 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/1.268, allocations: 1.395 MB / 0.7211 GB, free: 6.414 MB / 442.7 MB Notification: Performance of SimCode: time 1.092e-06/1.268, allocations: 0 / 0.7211 GB, free: 6.414 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4334/1.701, allocations: 74.98 MB / 0.7943 GB, free: 70.54 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/1.702, allocations: 202 kB / 0.7945 GB, free: 70.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.242/5.943, allocations: 0 / 0.7945 GB, free: 70.32 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