Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 94.55 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009577/0.0009578, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002498/0.0002501, allocations: 7 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 50.42 MB / 351.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01121/0.1176, allocations: 10.41 MB / 361.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007734/0.1254, allocations: 4.089 MB / 365.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001963/0.1274, allocations: 67.62 kB / 365.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002313/0.1298, allocations: 0.8008 MB / 366.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.1331, allocations: 0.9892 MB / 367.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1344, allocations: 315.5 kB / 367.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004747/0.1391, allocations: 2.951 MB / 370.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.1422, allocations: 2.594 MB / 373.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.1444, allocations: 1.436 MB / 374.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.1473, allocations: 1.805 MB / 376.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006312/0.1479, allocations: 240 kB / 376.9 MB, free: 1.762 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.149, allocations: 303.9 kB / 377.2 MB, free: 1.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.15, allocations: 1.071 MB / 378.3 MB, free: 400 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.1512, allocations: 0.8472 MB / 379.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006462/0.1576, allocations: 5.937 MB / 385.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1577, allocations: 0 / 385.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1577, allocations: 0 / 385.1 MB, free: 9.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002427/0.1579, allocations: 4 kB / 385.1 MB, free: 9.578 MB / 318.1 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.01006/0.168, allocations: 3.99 MB / 389.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.445e-05/0.1681, allocations: 8.031 kB / 389.1 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001563/0.1696, allocations: 0.4979 MB / 389.6 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/0.1712, allocations: 0.5063 MB / 390.1 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004945/0.1761, allocations: 2.427 MB / 392.5 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.1764, allocations: 263 kB / 392.8 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005263/0.1769, allocations: 355.9 kB / 393.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008525/0.1854, allocations: 4.981 MB / 398.1 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.069e-05/0.1855, allocations: 11.89 kB / 398.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003118/0.1858, allocations: 148 kB / 398.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001702/0.186, allocations: 179.1 kB / 398.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007891/0.1939, allocations: 4.294 MB / 402.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02672/0.2207, allocations: 14.93 MB / 417.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004826/0.2255, allocations: 4.191 MB / 421.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002947/0.2259, allocations: 143 kB / 422 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.2259, allocations: 52.56 kB / 422 MB, free: 3.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.026e-06/0.2259, allocations: 0 / 422 MB, free: 3.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.2244/0.4504, allocations: 10.31 MB / 432.3 MB, free: 60.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.4505, allocations: 75.09 kB / 432.4 MB, free: 59.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004529/0.455, allocations: 2.448 MB / 434.9 MB, free: 59.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004281/0.4555, allocations: 62.45 kB / 434.9 MB, free: 59.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001445/0.4569, allocations: 1.614 MB / 436.5 MB, free: 59.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009173/0.4578, allocations: 0.7314 MB / 437.3 MB, free: 58.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.458, allocations: 45.84 kB / 437.3 MB, free: 58.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4582, allocations: 402.2 kB / 437.7 MB, free: 58.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.4603, allocations: 1.317 MB / 439 MB, free: 58.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/0.4626, allocations: 1.792 MB / 440.8 MB, free: 57.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.4646, allocations: 1.576 MB / 442.4 MB, free: 56.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.4646, allocations: 3.938 kB / 442.4 MB, free: 56.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006537/0.4712, allocations: 4.106 MB / 446.5 MB, free: 54.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.754e-05/0.4712, allocations: 10.91 kB / 446.5 MB, free: 54.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/0.4713, allocations: 11.38 kB / 446.5 MB, free: 54.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002697/0.474, allocations: 0.8805 MB / 447.4 MB, free: 54.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.4761, allocations: 0.5283 MB / 447.9 MB, free: 54.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008977/0.4851, allocations: 8.943 MB / 456.9 MB, free: 46.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002694/0.4879, allocations: 123.8 kB / 457 MB, free: 46.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004854/0.4884, allocations: 98.3 kB / 457.1 MB, free: 46.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * 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 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00295/0.4913, allocations: 1.213 MB / 458.3 MB, free: 45.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.4924, allocations: 276.7 kB / 458.6 MB, free: 45.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006611/0.499, allocations: 3.754 MB / 462.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.4991, allocations: 20 kB / 462.3 MB, free: 41.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.959e-05/0.4991, allocations: 12 kB / 462.4 MB, free: 41.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-05/0.4992, allocations: 7.969 kB / 462.4 MB, free: 41.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01557/0.5147, allocations: 8.083 MB / 470.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.5148, allocations: 4.344 kB / 470.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.5164, allocations: 383.5 kB / 470.8 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002861/0.5193, allocations: 0.9185 MB / 471.7 MB, free: 31.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/0.5196, allocations: 65.97 kB / 471.8 MB, free: 31.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009232/0.5288, allocations: 10.44 MB / 482.2 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.5289, allocations: 4 kB / 482.2 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008165/0.5371, allocations: 5.79 MB / 488 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002103/0.5392, allocations: 0.6304 MB / 488.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00096/0.5402, allocations: 51.98 kB / 488.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/0.5423, allocations: 127.9 kB / 488.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004724/0.5428, allocations: 189.7 kB / 489 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/0.543, allocations: 55.98 kB / 489.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003345/0.5464, allocations: 1.676 MB / 490.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5464, allocations: 2.625 kB / 490.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004814/0.5512, allocations: 0.7994 MB / 491.6 MB, free: 11.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * 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%) 26,(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01008/0.5613, allocations: 7.127 MB / 498.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006064/0.5674, allocations: 3.918 MB / 0.4908 GB, free: 60 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.08e-05/0.5675, allocations: 0 / 0.4908 GB, free: 60 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004561/0.5721, allocations: 2.498 MB / 0.4933 GB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004334/0.5764, allocations: 0.722 MB / 0.494 GB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06761/0.6441, allocations: 32.91 MB / 0.5261 GB, free: 10.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004392/0.6485, allocations: 2.839 MB / 0.5289 GB, free: 7.496 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002499/0.651, allocations: 0.6827 MB / 0.5295 GB, free: 6.809 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002256/0.6533, allocations: 1.405 MB / 0.5309 GB, free: 5.406 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6533, allocations: 0 / 0.5309 GB, free: 5.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3135/0.9669, allocations: 70.02 MB / 0.5993 GB, free: 141 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/0.9671, allocations: 262.5 kB / 0.5995 GB, free: 140.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.909/4.876, allocations: 0 / 0.5995 GB, free: 140.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat