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.001049/0.001049, allocations: 91.02 kB / 16.31 MB, free: 5.66 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.00157/0.001571, allocations: 179.3 kB / 17.21 MB, free: 5.578 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.49/1.49, allocations: 223.3 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00026/0.0002602, allocations: 7.656 kB / 300.9 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1178, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01412/0.1319, allocations: 11.4 MB / 362.7 MB, free: 148 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009463/0.1415, allocations: 3.967 MB / 366.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002209/0.1437, allocations: 71.69 kB / 366.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002019/0.1458, allocations: 0.7728 MB / 367.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003015/0.1488, allocations: 1.026 MB / 368.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009314/0.1497, allocations: 319.5 kB / 368.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005399/0.1551, allocations: 4.807 MB / 373.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003181/0.1583, allocations: 2.598 MB / 376.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.1613, allocations: 1.568 MB / 377.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00337/0.1647, allocations: 2.09 MB / 380 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004655/0.1652, allocations: 240 kB / 380.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.1662, allocations: 307.9 kB / 380.5 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001125/0.1674, allocations: 1.137 MB / 381.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.1685, allocations: 0.8394 MB / 382.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005796/0.1743, allocations: 5.991 MB / 388.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.1743, allocations: 0 / 388.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1744, allocations: 0 / 388.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002023/0.1746, allocations: 4 kB / 388.5 MB, free: 6.301 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.009101/0.1837, allocations: 4.005 MB / 392.5 MB, free: 2.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.1837, allocations: 12.03 kB / 392.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001243/0.185, allocations: 0.4979 MB / 393 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001434/0.1864, allocations: 0.4986 MB / 393.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0046/0.191, allocations: 2.404 MB / 395.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002388/0.1913, allocations: 267 kB / 396.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005393/0.1918, allocations: 347.9 kB / 396.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009038/0.2009, allocations: 5.017 MB / 401.5 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-05/0.201, allocations: 7.859 kB / 401.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003438/0.2013, allocations: 152 kB / 401.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002201/0.2016, allocations: 179.1 kB / 401.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007712/0.2093, allocations: 4.294 MB / 406.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02351/0.2328, allocations: 14.98 MB / 421.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004372/0.2372, allocations: 4.187 MB / 425.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2557/0.493, allocations: 2.004 MB / 427.3 MB, free: 61.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004525/0.4935, allocations: 134.8 kB / 427.4 MB, free: 60.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.332e-05/0.4936, allocations: 55.91 kB / 427.5 MB, free: 60.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 6.132e-06/0.4936, allocations: 0 / 427.5 MB, free: 60.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.03269/0.5263, allocations: 10.03 MB / 437.5 MB, free: 59.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.171e-05/0.5264, allocations: 75.59 kB / 437.6 MB, free: 59.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00632/0.5327, allocations: 2.482 MB / 440.1 MB, free: 59.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000536/0.5333, allocations: 65.55 kB / 440.1 MB, free: 59.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.5347, allocations: 1.617 MB / 441.8 MB, free: 57.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009731/0.5357, allocations: 0.733 MB / 442.5 MB, free: 57.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.5359, allocations: 47.88 kB / 442.5 MB, free: 57.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.5361, allocations: 399.3 kB / 442.9 MB, free: 56.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002924/0.539, allocations: 1.307 MB / 444.2 MB, free: 56.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003402/0.5424, allocations: 1.781 MB / 446 MB, free: 55.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.5457, allocations: 1.557 MB / 447.6 MB, free: 54.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/0.5458, allocations: 3.312 kB / 447.6 MB, free: 54.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009854/0.5556, allocations: 4.082 MB / 451.7 MB, free: 52.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.79e-05/0.5557, allocations: 15.95 kB / 451.7 MB, free: 52.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.643e-05/0.5558, allocations: 12 kB / 451.7 MB, free: 52.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003805/0.5596, allocations: 0.8795 MB / 452.6 MB, free: 51.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/0.5628, allocations: 0.5305 MB / 453.1 MB, free: 50.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.5742, allocations: 8.739 MB / 461.8 MB, free: 41.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003496/0.5778, allocations: 123.9 kB / 461.9 MB, free: 41.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004324/0.5782, allocations: 84 kB / 462 MB, free: 41.66 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.003324/0.5816, allocations: 1.216 MB / 463.2 MB, free: 40.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001038/0.5826, allocations: 268.7 kB / 463.5 MB, free: 40.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008107/0.5907, allocations: 3.725 MB / 467.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-05/0.5908, allocations: 27.98 kB / 467.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/0.5908, allocations: 8 kB / 467.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.482e-05/0.5908, allocations: 9.938 kB / 467.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.61, allocations: 8.094 MB / 475.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/0.61, allocations: 11.89 kB / 475.4 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002429/0.6125, allocations: 387.8 kB / 475.8 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004299/0.6168, allocations: 0.9286 MB / 476.7 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003434/0.6172, allocations: 55.98 kB / 476.7 MB, free: 26.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.6311, allocations: 10.22 MB / 487 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/0.6311, allocations: 4 kB / 487 MB, free: 16.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/0.6433, allocations: 5.519 MB / 492.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002419/0.6458, allocations: 0.6421 MB / 493.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000826/0.6467, allocations: 51.98 kB / 493.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002265/0.6489, allocations: 123.9 kB / 493.3 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005665/0.6495, allocations: 181.8 kB / 493.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/0.6498, allocations: 63.98 kB / 493.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003674/0.6534, allocations: 1.707 MB / 495.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6535, allocations: 0 / 495.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004404/0.6579, allocations: 0.8072 MB / 496.1 MB, free: 6.91 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 {(3,88.9%) 25,(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.01229/0.6702, allocations: 6.185 MB / 0.4905 GB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00973/0.68, allocations: 3.891 MB / 0.4943 GB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.68, allocations: 4.188 kB / 0.4943 GB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006006/0.686, allocations: 2.497 MB / 0.4967 GB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006562/0.6926, allocations: 0.7566 MB / 0.4974 GB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07435/0.767, allocations: 24.48 MB / 0.5214 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003834/0.7709, allocations: 2.773 MB / 0.5241 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002867/0.7738, allocations: 0.682 MB / 0.5247 GB, free: 12.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/0.7762, allocations: 1.413 MB / 0.5261 GB, free: 10.59 MB / 398.1 MB Notification: Performance of SimCode: time 2.094e-06/0.7763, allocations: 0 / 0.5261 GB, free: 10.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.353/1.129, allocations: 70.5 MB / 0.595 GB, free: 138.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/1.129, allocations: 270.9 kB / 0.5952 GB, free: 137.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.043/5.173, allocations: 0 / 0.5952 GB, free: 137.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