Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.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.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",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.001608/0.001608, allocations: 93.67 kB / 16.3 MB, free: 5.996 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.001376/0.001376, allocations: 179.4 kB / 17.2 MB, free: 5.914 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.592/1.592, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003199, allocations: 6.156 kB / 300.8 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1246, allocations: 50.42 MB / 351.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02646/0.1511, allocations: 22.94 MB / 374.2 MB, free: 4.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0162/0.1674, allocations: 6.786 MB / 381 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006292/0.1737, allocations: 227.2 kB / 381.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00695/0.1807, allocations: 1.48 MB / 382.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01288/0.1937, allocations: 2.252 MB / 384.9 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00664/0.2003, allocations: 1.346 MB / 386.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03034/0.2307, allocations: 17.7 MB / 404 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5131/0.7439, allocations: 35.26 MB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0126/0.7565, allocations: 6.18 MB / 445.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01654/0.7731, allocations: 7.184 MB / 452.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006939/0.7801, allocations: 1.142 MB / 453.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01221/0.7924, allocations: 1.346 MB / 455.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01013/0.8026, allocations: 3.151 MB / 458.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01127/0.8139, allocations: 3.595 MB / 461.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03374/0.8477, allocations: 33.23 MB / 495 MB, free: 5.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.8477, allocations: 0 / 495 MB, free: 5.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.8477, allocations: 4 kB / 495 MB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00139/0.8491, allocations: 0 / 495 MB, free: 5.352 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.06614/0.9153, allocations: 18.25 MB / 0.5013 GB, free: 5.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.341e-05/0.9154, allocations: 12.03 kB / 0.5013 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01755/0.9329, allocations: 2.952 MB / 0.5042 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04933/0.9823, allocations: 8.361 MB / 0.5123 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03178/1.014, allocations: 11.17 MB / 0.5232 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002178/1.016, allocations: 1.336 MB / 0.5245 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01104/1.027, allocations: 1.758 MB / 0.5262 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08969/1.117, allocations: 28.48 MB / 0.5541 GB, free: 2.711 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008782/1.118, allocations: 15.91 kB / 0.5541 GB, free: 2.695 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007124/1.125, allocations: 0.7255 MB / 0.5548 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001097/1.126, allocations: 0.8688 MB / 0.5556 GB, free: 1.109 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06123/1.188, allocations: 24.69 MB / 0.5797 GB, free: 8.41 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7917/1.979, allocations: 88.19 MB / 0.6659 GB, free: 69.58 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02856/2.008, allocations: 35.14 MB / 0.7002 GB, free: 36.05 MB / 462.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/2.009, allocations: 204.5 kB / 0.7004 GB, free: 35.85 MB / 462.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.438e-05/2.009, allocations: 103.1 kB / 0.7005 GB, free: 35.73 MB / 462.3 MB Notification: Performance of pre-optimization done (n=589): time 8.727e-06/2.009, allocations: 0 / 0.7005 GB, free: 35.73 MB / 462.3 MB Notification: Performance of matching and sorting (n=589): time 0.04781/2.057, allocations: 16.78 MB / 0.7169 GB, free: 18.66 MB / 462.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/2.057, allocations: 141.7 kB / 0.717 GB, free: 18.5 MB / 462.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01252/2.07, allocations: 6.362 MB / 0.7232 GB, free: 12.19 MB / 462.3 MB Notification: Performance of collectPreVariables (initialization): time 0.001609/2.071, allocations: 125.7 kB / 0.7233 GB, free: 12.06 MB / 462.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.005183/2.077, allocations: 7.601 MB / 0.7308 GB, free: 4.418 MB / 462.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.002853/2.079, allocations: 2.044 MB / 0.7327 GB, free: 2.391 MB / 462.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001248/2.081, allocations: 208 kB / 0.7329 GB, free: 2.188 MB / 462.3 MB Notification: Performance of setup shared object (initialization): time 0.0006872/2.081, allocations: 0.7478 MB / 0.7337 GB, free: 1.434 MB / 462.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008852/2.09, allocations: 4.795 MB / 0.7384 GB, free: 12.63 MB / 478.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01593/2.106, allocations: 9.467 MB / 0.7476 GB, free: 0.9297 MB / 478.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/2.12, allocations: 7.167 MB / 0.7546 GB, free: 9.719 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000242/2.121, allocations: 52 kB / 0.7547 GB, free: 9.668 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.03466/2.155, allocations: 15.54 MB / 0.7698 GB, free: 10.05 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001361/2.155, allocations: 76 kB / 0.7699 GB, free: 9.977 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002561/2.156, allocations: 156 kB / 0.77 GB, free: 9.824 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005859/2.162, allocations: 1.79 MB / 0.7718 GB, free: 8.035 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009054/2.171, allocations: 2.332 MB / 0.7741 GB, free: 5.699 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3135/2.484, allocations: 12.36 MB / 0.7861 GB, free: 146.4 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009065/2.493, allocations: 1.35 MB / 0.7875 GB, free: 146.1 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002308/2.496, allocations: 0.5283 MB / 0.788 GB, free: 146.1 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * 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 (1237): * Single equations (assignments): 1228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,72.2%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01673/2.512, allocations: 7.153 MB / 0.795 GB, free: 145.9 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001976/2.514, allocations: 0.6204 MB / 0.7956 GB, free: 145.6 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01715/2.532, allocations: 10.35 MB / 0.8057 GB, free: 144.6 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01225/2.544, allocations: 7.988 MB / 0.8135 GB, free: 141.5 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/2.544, allocations: 11.75 kB / 0.8135 GB, free: 141.5 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.49e-05/2.544, allocations: 33.08 kB / 0.8135 GB, free: 141.5 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04812/2.592, allocations: 25.95 MB / 0.8389 GB, free: 130 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.261e-05/2.592, allocations: 4 kB / 0.8389 GB, free: 130 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003801/2.596, allocations: 0.9819 MB / 0.8398 GB, free: 129.2 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004866/2.601, allocations: 1.564 MB / 0.8414 GB, free: 128 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009122/2.602, allocations: 123.6 kB / 0.8415 GB, free: 127.9 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/2.615, allocations: 11.99 MB / 0.8532 GB, free: 117.4 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/2.615, allocations: 11.95 kB / 0.8532 GB, free: 117.4 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01978/2.635, allocations: 15.27 MB / 0.8681 GB, free: 102.8 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004337/2.639, allocations: 1.448 MB / 0.8695 GB, free: 101.3 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/2.641, allocations: 108 kB / 0.8696 GB, free: 101.2 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003797/2.645, allocations: 327.7 kB / 0.8699 GB, free: 100.8 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008995/2.646, allocations: 404.9 kB / 0.8703 GB, free: 100.4 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003369/2.646, allocations: 164 kB / 0.8705 GB, free: 100.3 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.006588/2.653, allocations: 4.254 MB / 0.8746 GB, free: 96.07 MB / 0.4983 GB Notification: Performance of sort global known variables: time 4.71e-07/2.653, allocations: 0 / 0.8746 GB, free: 96.07 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01416/2.667, allocations: 4.06 MB / 0.8786 GB, free: 91.99 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 1 (source.plug_p.reference.gamma) * 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 (518): * Single equations (assignments): 509 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02135/2.688, allocations: 17.29 MB / 0.8955 GB, free: 74.3 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01916/2.708, allocations: 11.59 MB / 0.9068 GB, free: 62.67 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/2.708, allocations: 0 / 0.9068 GB, free: 62.67 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.008894/2.717, allocations: 4.839 MB / 0.9115 GB, free: 57.8 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008649/2.725, allocations: 1.385 MB / 0.9129 GB, free: 56.45 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5373/3.263, allocations: 193.6 MB / 1.102 GB, free: 48.31 MB / 0.5139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02518/3.288, allocations: 11.52 MB / 1.113 GB, free: 43.77 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01368/3.302, allocations: 3.751 MB / 1.117 GB, free: 42.13 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01108/3.313, allocations: 5.873 MB / 1.123 GB, free: 36.71 MB / 0.5139 GB Notification: Performance of SimCode: time 1.092e-06/3.313, allocations: 0 / 1.123 GB, free: 36.71 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5713/3.884, allocations: 201.9 MB / 1.32 GB, free: 24.32 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/3.884, allocations: 264.6 kB / 1.32 GB, free: 23.96 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.835/9.719, allocations: 0 / 1.32 GB, free: 23.96 MB / 0.5139 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat