Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.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.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer",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.001518/0.001518, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.11/2.11, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00103/0.001029, allocations: 74.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.891e-05/3.915e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4124/0.5284, allocations: 85.67 MB / 454.9 MB, free: 7.211 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.5287, allocations: 78.7 kB / 454.9 MB, free: 7.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1185/0.6472, allocations: 29.01 MB / 483.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6473, allocations: 0 / 483.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.689e-05/0.6473, allocations: 20 kB / 484 MB, free: 11.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003732/0.6511, allocations: 1.076 MB / 485 MB, free: 10.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/0.6512, allocations: 8.031 kB / 485 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003693/0.6515, allocations: 164.9 kB / 485.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007439/0.659, allocations: 0.7052 MB / 485.9 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.6602, allocations: 468.7 kB / 486.4 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.511e-05/0.6604, allocations: 78.17 kB / 486.4 MB, free: 9.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002699/0.6606, allocations: 108 kB / 486.6 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/0.6637, allocations: 1.074 MB / 487.6 MB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.388e-05/0.6638, allocations: 7.938 kB / 487.6 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/0.664, allocations: 43.98 kB / 487.7 MB, free: 8.055 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.594e-05/0.664, allocations: 28 kB / 487.7 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003062/0.6671, allocations: 1.082 MB / 488.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/0.6772, allocations: 4.062 MB / 492.8 MB, free: 2.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005359/0.6826, allocations: 3.738 MB / 496.6 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007917/0.6834, allocations: 297.6 kB / 496.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001969/0.6836, allocations: 93.66 kB / 497 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.6837, allocations: 55 kB / 497 MB, free: 13.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 1.455e-05/0.6837, allocations: 0 / 497 MB, free: 13.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.001478/0.6852, allocations: 0.5025 MB / 497.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.558e-05/0.6853, allocations: 111.4 kB / 497.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000511/0.6858, allocations: 294.4 kB / 497.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.6859, allocations: 41.64 kB / 498 MB, free: 12.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.6863, allocations: 0.4964 MB / 498.5 MB, free: 12.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002804/0.6866, allocations: 244.5 kB / 498.7 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.411e-05/0.6867, allocations: 24.06 kB / 498.7 MB, free: 12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.6868, allocations: 342.8 kB / 499.1 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006355/0.6875, allocations: 226 kB / 499.3 MB, free: 11.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009299/0.6884, allocations: 0.532 MB / 499.8 MB, free: 10.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008324/0.6893, allocations: 313.9 kB / 0.4884 GB, free: 10.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.6893, allocations: 4 kB / 0.4884 GB, free: 10.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002147/0.6915, allocations: 0.843 MB / 0.4892 GB, free: 9.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/0.6915, allocations: 12.92 kB / 0.4892 GB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.6916, allocations: 12 kB / 0.4892 GB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.77e-05/0.6916, allocations: 20 kB / 0.4893 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.6933, allocations: 231.6 kB / 0.4895 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.64e-05/0.6933, allocations: 23.92 kB / 0.4895 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.6942, allocations: 107 kB / 0.4896 GB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.6943, allocations: 44 kB / 0.4896 GB, free: 9.152 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 122 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002423/0.6946, allocations: 168.6 kB / 0.4898 GB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.6948, allocations: 43.44 kB / 0.4899 GB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.6966, allocations: 0.6497 MB / 0.4905 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.6967, allocations: 8 kB / 0.4905 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.6967, allocations: 0 / 0.4905 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.6967, allocations: 3.984 kB / 0.4905 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.7005, allocations: 1.543 MB / 0.492 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.7005, allocations: 0 / 0.492 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.7018, allocations: 151.8 kB / 0.4921 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.47e-05/0.7018, allocations: 4 kB / 0.4922 GB, free: 6.516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.358e-05/0.7019, allocations: 19.98 kB / 0.4922 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.148e-06/0.7019, allocations: 7.953 kB / 0.4922 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/0.7019, allocations: 4 kB / 0.4922 GB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002379/0.7043, allocations: 1.119 MB / 0.4933 GB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.7046, allocations: 140.3 kB / 0.4934 GB, free: 5.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.7047, allocations: 15.98 kB / 0.4934 GB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/0.7054, allocations: 24 kB / 0.4934 GB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001609/0.7055, allocations: 48.7 kB / 0.4935 GB, free: 5.094 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.942e-05/0.7056, allocations: 24.06 kB / 0.4935 GB, free: 5.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003465/0.706, allocations: 210.2 kB / 0.4937 GB, free: 4.859 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.706, allocations: 0 / 0.4937 GB, free: 4.859 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001186/0.7072, allocations: 255.1 kB / 0.494 GB, free: 4.609 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 78 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002958/0.7102, allocations: 1.87 MB / 0.4958 GB, free: 2.711 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.7119, allocations: 0.6432 MB / 0.4964 GB, free: 2.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.712, allocations: 4.062 kB / 0.4964 GB, free: 2.066 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006958/0.7127, allocations: 300.4 kB / 0.4967 GB, free: 1.773 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005471/0.7132, allocations: 37.17 kB / 0.4967 GB, free: 1.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006824/0.7201, allocations: 1.755 MB / 0.4985 GB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007071/0.7208, allocations: 0.9361 MB / 0.4994 GB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007142/0.7216, allocations: 295.3 kB / 0.4997 GB, free: 14.67 MB / 394.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7216, allocations: 4 kB / 0.4997 GB, free: 14.67 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.481/3.202, allocations: 10.98 MB / 0.5104 GB, free: 3.668 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat