Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001482/0.001481, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.247/2.247, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001593/0.001593, allocations: 92.73 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.592e-05, allocations: 0 / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4752/0.4753, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.6911, allocations: 91.32 MB / 453.8 MB, free: 10.93 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004178/0.6916, allocations: 79.95 kB / 453.8 MB, free: 10.85 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6036/1.295, allocations: 73.37 MB / 0.5149 GB, free: 87.23 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.407e-06/1.295, allocations: 0.9062 kB / 0.5149 GB, free: 87.23 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003813/1.296, allocations: 93.27 kB / 0.5149 GB, free: 87.21 MB / 395.1 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.0123/1.308, allocations: 2.871 MB / 0.5178 GB, free: 86.13 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/1.308, allocations: 9.844 kB / 0.5178 GB, free: 86.13 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002707/1.311, allocations: 391 kB / 0.5181 GB, free: 85.95 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007784/1.319, allocations: 2.177 MB / 0.5203 GB, free: 85.47 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/1.319, allocations: 97.94 kB / 0.5204 GB, free: 85.47 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001201/1.32, allocations: 169.8 kB / 0.5205 GB, free: 85.47 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00918/1.329, allocations: 2.946 MB / 0.5234 GB, free: 85.45 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/1.342, allocations: 3.636 MB / 0.5269 GB, free: 84.98 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.599e-05/1.342, allocations: 0 / 0.5269 GB, free: 84.98 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004805/1.342, allocations: 3.938 kB / 0.5269 GB, free: 84.98 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001687/1.342, allocations: 140.8 kB / 0.5271 GB, free: 84.97 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03028/1.373, allocations: 10.41 MB / 0.5372 GB, free: 81.83 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003647/1.376, allocations: 2.532 MB / 0.5397 GB, free: 80.04 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003015/1.379, allocations: 1.335 MB / 0.541 GB, free: 79.6 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000432/1.38, allocations: 147.7 kB / 0.5412 GB, free: 79.5 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/1.38, allocations: 43.19 kB / 0.5412 GB, free: 79.45 MB / 395.1 MB Notification: Performance of pre-optimization done (n=128): time 4.298e-06/1.38, allocations: 0 / 0.5412 GB, free: 79.45 MB / 395.1 MB Notification: Performance of matching and sorting (n=133): time 0.01367/1.394, allocations: 4.181 MB / 0.5453 GB, free: 77.55 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/1.394, allocations: 96.67 kB / 0.5454 GB, free: 77.45 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006005/1.4, allocations: 1.432 MB / 0.5468 GB, free: 76.89 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004968/1.4, allocations: 25.7 kB / 0.5468 GB, free: 76.86 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001527/1.402, allocations: 1.281 MB / 0.5481 GB, free: 75.84 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007333/1.403, allocations: 445.8 kB / 0.5485 GB, free: 75.49 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/1.403, allocations: 0 / 0.5485 GB, free: 75.49 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/1.403, allocations: 372.8 kB / 0.5488 GB, free: 75.15 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001642/1.405, allocations: 0.7514 MB / 0.5496 GB, free: 74.86 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/1.407, allocations: 1.098 MB / 0.5506 GB, free: 74.16 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002352/1.409, allocations: 0.9596 MB / 0.5516 GB, free: 73.8 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.841e-05/1.409, allocations: 3.969 kB / 0.5516 GB, free: 73.8 MB / 395.1 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.006028/1.415, allocations: 2.183 MB / 0.5537 GB, free: 73.04 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/1.415, allocations: 10.62 kB / 0.5537 GB, free: 73.04 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-05/1.415, allocations: 14.91 kB / 0.5537 GB, free: 73.04 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/1.417, allocations: 352.2 kB / 0.5541 GB, free: 72.94 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/1.419, allocations: 335.3 kB / 0.5544 GB, free: 72.93 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006776/1.426, allocations: 3.906 MB / 0.5582 GB, free: 70.42 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002368/1.429, allocations: 60 kB / 0.5583 GB, free: 70.41 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/1.429, allocations: 64.88 kB / 0.5583 GB, free: 70.4 MB / 395.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 152 * 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%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003616/1.429, allocations: 128.5 kB / 0.5585 GB, free: 70.27 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004348/1.434, allocations: 1.865 MB / 0.5603 GB, free: 69.55 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004607/1.434, allocations: 166.5 kB / 0.5604 GB, free: 69.47 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/1.439, allocations: 2 MB / 0.5624 GB, free: 68.7 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/1.439, allocations: 10.94 kB / 0.5624 GB, free: 68.7 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.439, allocations: 2.969 kB / 0.5624 GB, free: 68.7 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/1.439, allocations: 6.281 kB / 0.5624 GB, free: 68.7 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/1.45, allocations: 4.636 MB / 0.5669 GB, free: 66.84 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.68e-05/1.45, allocations: 7.375 kB / 0.5669 GB, free: 66.83 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001853/1.452, allocations: 230.7 kB / 0.5672 GB, free: 66.73 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/1.453, allocations: 339.4 kB / 0.5675 GB, free: 66.46 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/1.453, allocations: 23.06 kB / 0.5675 GB, free: 66.45 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00625/1.46, allocations: 3.82 MB / 0.5712 GB, free: 62.9 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/1.46, allocations: 3.797 kB / 0.5712 GB, free: 62.9 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006361/1.466, allocations: 3.122 MB / 0.5743 GB, free: 60.09 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001589/1.468, allocations: 442.6 kB / 0.5747 GB, free: 59.68 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005083/1.468, allocations: 12 kB / 0.5747 GB, free: 59.67 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.47, allocations: 81.66 kB / 0.5748 GB, free: 59.61 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/1.47, allocations: 92.66 kB / 0.5749 GB, free: 59.56 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/1.471, allocations: 47.42 kB / 0.5749 GB, free: 59.52 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002163/1.473, allocations: 1.091 MB / 0.576 GB, free: 58.55 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.473, allocations: 0 / 0.576 GB, free: 58.55 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00285/1.476, allocations: 0.5038 MB / 0.5765 GB, free: 58.05 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * 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%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006764/1.482, allocations: 4.106 MB / 0.5805 GB, free: 54.27 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/1.487, allocations: 2.157 MB / 0.5826 GB, free: 52.3 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.487, allocations: 0 / 0.5826 GB, free: 52.3 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002456/1.489, allocations: 1.238 MB / 0.5838 GB, free: 51.15 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.492, allocations: 348.8 kB / 0.5841 GB, free: 50.88 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/1.506, allocations: 5.338 MB / 0.5894 GB, free: 46.27 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002549/1.508, allocations: 2.418 MB / 0.5917 GB, free: 44.36 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002143/1.51, allocations: 1.039 MB / 0.5927 GB, free: 43.4 MB / 395.1 MB Notification: Performance of SimCode: time 1.483e-06/1.51, allocations: 0 / 0.5927 GB, free: 43.4 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.212/5.723, allocations: 62.95 MB / 0.6542 GB, free: 84.84 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat