Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001194, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 227.2 MB / 245 MB, free: 7.617 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009123/0.0009124, allocations: 110.1 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002139/0.000214, allocations: 8 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2221, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09936/0.3215, allocations: 93.54 MB / 0.4913 GB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.3217, allocations: 91.95 kB / 0.4913 GB, free: 12.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3213/0.643, allocations: 74.44 MB / 0.564 GB, free: 46.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6431, allocations: 0 / 0.564 GB, free: 46.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002116/0.6433, allocations: 87.88 kB / 0.5641 GB, free: 46.21 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.007232/0.6505, allocations: 3.233 MB / 0.5673 GB, free: 42.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.6506, allocations: 8.031 kB / 0.5673 GB, free: 42.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008477/0.6514, allocations: 437.7 kB / 0.5677 GB, free: 42.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.6527, allocations: 444 kB / 0.5681 GB, free: 42.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004001/0.6567, allocations: 2.193 MB / 0.5703 GB, free: 39.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.6568, allocations: 221.8 kB / 0.5705 GB, free: 39.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003443/0.6571, allocations: 284 kB / 0.5708 GB, free: 39.28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004912/0.6621, allocations: 4.11 MB / 0.5748 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.538e-05/0.6621, allocations: 0 / 0.5748 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002515/0.6624, allocations: 128 kB / 0.5749 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.201e-05/0.6625, allocations: 137.9 kB / 0.575 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00408/0.6666, allocations: 3.193 MB / 0.5781 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01314/0.6797, allocations: 11.02 MB / 0.5889 GB, free: 20.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.6817, allocations: 2.646 MB / 0.5915 GB, free: 17.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/0.6819, allocations: 138 kB / 0.5916 GB, free: 17.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.6819, allocations: 47.52 kB / 0.5917 GB, free: 17.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.006e-06/0.682, allocations: 4 kB / 0.5917 GB, free: 17.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.007018/0.689, allocations: 5.663 MB / 0.5972 GB, free: 11.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.689, allocations: 90.42 kB / 0.5973 GB, free: 11.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.6908, allocations: 1.718 MB / 0.599 GB, free: 9.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.878e-05/0.6909, allocations: 49.7 kB / 0.599 GB, free: 9.566 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.6915, allocations: 1.318 MB / 0.6003 GB, free: 8.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/0.6917, allocations: 457 kB / 0.6007 GB, free: 7.781 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.129e-05/0.6918, allocations: 28 kB / 0.6007 GB, free: 7.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.149e-05/0.6918, allocations: 369.9 kB / 0.6011 GB, free: 7.387 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009356/0.6928, allocations: 0.8237 MB / 0.6019 GB, free: 6.562 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.6939, allocations: 1.173 MB / 0.6031 GB, free: 5.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.695, allocations: 1.025 MB / 0.6041 GB, free: 4.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.695, allocations: 4 kB / 0.6041 GB, free: 4.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.00314/0.6981, allocations: 2.545 MB / 0.6065 GB, free: 1.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.6981, allocations: 8 kB / 0.6066 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.6982, allocations: 12.16 kB / 0.6066 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007871/0.699, allocations: 377.1 kB / 0.6069 GB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.7001, allocations: 331.5 kB / 0.6072 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00487/0.705, allocations: 4.365 MB / 0.6115 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.7064, allocations: 91.83 kB / 0.6116 GB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.7065, allocations: 67.98 kB / 0.6117 GB, free: 12.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (153): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001758/0.7083, allocations: 1.036 MB / 0.6127 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000374/0.7087, allocations: 193.8 kB / 0.6128 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.7122, allocations: 2.203 MB / 0.615 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.7122, allocations: 19.94 kB / 0.615 GB, free: 8.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.7122, allocations: 7.938 kB / 0.615 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.7122, allocations: 7.938 kB / 0.615 GB, free: 8.801 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007962/0.7202, allocations: 5.173 MB / 0.6201 GB, free: 3.551 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/0.7202, allocations: 4 kB / 0.6201 GB, free: 3.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7212, allocations: 227.8 kB / 0.6203 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008615/0.7221, allocations: 360.5 kB / 0.6207 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.663e-05/0.7222, allocations: 31.98 kB / 0.6207 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005016/0.7272, allocations: 4.286 MB / 0.6249 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7273, allocations: 0 / 0.6249 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004762/0.732, allocations: 3.309 MB / 0.6281 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.7333, allocations: 470.6 kB / 0.6285 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.7335, allocations: 28 kB / 0.6286 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/0.7345, allocations: 108 kB / 0.6287 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.7348, allocations: 88.81 kB / 0.6288 GB, free: 10.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.512e-05/0.7349, allocations: 39.98 kB / 0.6288 GB, free: 10.43 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001888/0.7368, allocations: 1.331 MB / 0.6301 GB, free: 9.105 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7368, allocations: 8 kB / 0.6301 GB, free: 9.098 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001727/0.7385, allocations: 0.5703 MB / 0.6307 GB, free: 8.527 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].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 (98): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005278/0.7438, allocations: 4.113 MB / 0.6347 GB, free: 4.363 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003457/0.7473, allocations: 2.336 MB / 0.637 GB, free: 1.988 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.7473, allocations: 7.938 kB / 0.637 GB, free: 1.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.7492, allocations: 1.334 MB / 0.6383 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/0.7513, allocations: 492.7 kB / 0.6387 GB, free: 140 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/0.7787, allocations: 23.36 MB / 0.6616 GB, free: 7.895 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002101/0.7808, allocations: 2.482 MB / 0.664 GB, free: 5.383 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001541/0.7824, allocations: 479.5 kB / 0.6644 GB, free: 4.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001266/0.7836, allocations: 1.03 MB / 0.6654 GB, free: 3.879 MB / 442.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7837, allocations: 0 / 0.6654 GB, free: 3.879 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2216/1.005, allocations: 49.64 MB / 0.7139 GB, free: 102 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/1.005, allocations: 233 kB / 0.7141 GB, free: 101.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.043/4.049, allocations: 0 / 0.7141 GB, free: 101.7 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat