Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.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.AsymmetricalLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_AsymmetricalLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_AsymmetricalLoad",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.001115/0.001116, allocations: 92.53 kB / 16.3 MB, free: 5.539 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.001189/0.001189, allocations: 185.8 kB / 17.2 MB, free: 5.473 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.425/1.425, allocations: 223.2 MB / 241.1 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002791, allocations: 4 kB / 300.8 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1175, allocations: 50.42 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad): time 0.00603/0.1236, allocations: 4.78 MB / 356 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003864/0.1275, allocations: 1.996 MB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006813/0.1282, allocations: 35.81 kB / 358.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008185/0.129, allocations: 314.5 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.1303, allocations: 462.5 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003582/0.1307, allocations: 131.9 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.1323, allocations: 1.423 MB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.134, allocations: 1.409 MB / 361.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.1351, allocations: 0.7123 MB / 362.5 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001142/0.1362, allocations: 0.856 MB / 363.3 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001814/0.1364, allocations: 124 kB / 363.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.1369, allocations: 179.9 kB / 363.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004455/0.1373, allocations: 498.5 kB / 364.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.1378, allocations: 444.6 kB / 364.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.1408, allocations: 3.066 MB / 367.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.1409, allocations: 4 kB / 367.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1409, allocations: 3.938 kB / 367.6 MB, free: 3.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.768e-05/0.1409, allocations: 4 kB / 367.6 MB, free: 3.215 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.00402/0.1449, allocations: 2.034 MB / 369.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.145, allocations: 12.03 kB / 369.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003751/0.1454, allocations: 278 kB / 370 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000649/0.146, allocations: 249.3 kB / 370.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2147/0.3608, allocations: 1.271 MB / 371.5 MB, free: 22.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.3609, allocations: 132.7 kB / 371.6 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003136/0.3613, allocations: 173.8 kB / 371.8 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004822/0.3661, allocations: 2.528 MB / 374.3 MB, free: 21.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.3661, allocations: 0.6562 kB / 374.3 MB, free: 21.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/0.3663, allocations: 74.22 kB / 374.4 MB, free: 21.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/0.3664, allocations: 96.08 kB / 374.5 MB, free: 21.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.3698, allocations: 2.11 MB / 376.6 MB, free: 20.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01196/0.3818, allocations: 7.503 MB / 384.1 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.3831, allocations: 1.266 MB / 385.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.3834, allocations: 115.1 kB / 385.5 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3834, allocations: 43.38 kB / 385.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.444e-06/0.3834, allocations: 0 / 385.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.004111/0.3875, allocations: 2.284 MB / 387.8 MB, free: 14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.3876, allocations: 88.02 kB / 387.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.3899, allocations: 1.49 MB / 389.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.3899, allocations: 36.17 kB / 389.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005627/0.3905, allocations: 0.9707 MB / 390.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3906, allocations: 197.5 kB / 390.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.661e-05/0.3907, allocations: 31.41 kB / 390.6 MB, free: 12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3908, allocations: 355.8 kB / 390.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006274/0.3914, allocations: 461.7 kB / 391.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008087/0.3923, allocations: 1.086 MB / 392.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000849/0.3931, allocations: 0.6782 MB / 393.1 MB, free: 9.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.3931, allocations: 5.406 kB / 393.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002905/0.396, allocations: 1.693 MB / 394.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/0.3961, allocations: 15.12 kB / 394.9 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.723e-05/0.3961, allocations: 25.95 kB / 394.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008076/0.397, allocations: 182.9 kB / 395.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009231/0.3979, allocations: 290.8 kB / 395.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.3999, allocations: 2.183 MB / 397.5 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001088/0.401, allocations: 89.86 kB / 397.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-05/0.4011, allocations: 63.19 kB / 397.7 MB, free: 6.914 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001167/0.4023, allocations: 0.7075 MB / 398.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/0.4025, allocations: 133.9 kB / 398.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.4038, allocations: 0.8487 MB / 399.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4038, allocations: 4 kB / 399.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4038, allocations: 0 / 399.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.4038, allocations: 4.172 kB / 399.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/0.4072, allocations: 2.521 MB / 401.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.4072, allocations: 3.938 kB / 401.9 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.4076, allocations: 103.8 kB / 402 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005739/0.4082, allocations: 153.4 kB / 402.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.201e-05/0.4082, allocations: 19.95 kB / 402.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.4098, allocations: 2.132 MB / 404.3 MB, free: 328 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4098, allocations: 4 kB / 404.3 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.412, allocations: 1.472 MB / 405.8 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006052/0.4126, allocations: 283.6 kB / 406.1 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.4127, allocations: 15.94 kB / 406.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005615/0.4133, allocations: 60.03 kB / 406.1 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.4134, allocations: 51.83 kB / 406.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.13e-05/0.4135, allocations: 20 kB / 406.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001558/0.4151, allocations: 1.024 MB / 407.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4151, allocations: 0 / 407.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001612/0.4167, allocations: 349.2 kB / 407.6 MB, free: 12.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 (transformer.l2sigma.inductor[1].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002934/0.4196, allocations: 2.811 MB / 410.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.4216, allocations: 1.156 MB / 411.5 MB, free: 8.867 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.753e-06/0.4217, allocations: 5 kB / 411.5 MB, free: 8.863 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000758/0.4224, allocations: 0.5169 MB / 412.1 MB, free: 8.336 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.424, allocations: 354.9 kB / 412.4 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02465/0.4487, allocations: 25.15 MB / 437.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00149/0.4502, allocations: 1.733 MB / 439.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001124/0.4513, allocations: 323.2 kB / 439.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008025/0.4521, allocations: 0.6125 MB / 440.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of SimCode: time 1.623e-06/0.4521, allocations: 4 kB / 440.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05731/0.5095, allocations: 31.13 MB / 471.3 MB, free: 12.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/0.5097, allocations: 269.2 kB / 471.6 MB, free: 12.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.558/3.068, allocations: 0 / 471.6 MB, free: 12.3 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_AsymmetricalLoad_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_AsymmetricalLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.AsymmetricalLoad_res.mat does not exist to compare? outputFormat=mat