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.001507/0.001506, allocations: 185.4 kB / 16.41 MB, free: 5.727 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/2, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001131/0.00113, allocations: 95.44 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005186/0.000519, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3425, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1451/0.4876, allocations: 85.77 MB / 460.4 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003453/0.488, allocations: 87.95 kB / 460.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1142/0.6022, allocations: 29.09 MB / 489.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6023, allocations: 0 / 489.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.082e-05/0.6023, allocations: 12 kB / 489.6 MB, free: 13.35 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.00425/0.6066, allocations: 1.093 MB / 490.7 MB, free: 12.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.6067, allocations: 12.03 kB / 490.7 MB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004681/0.6072, allocations: 160.8 kB / 490.8 MB, free: 12.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007848/0.615, allocations: 0.7169 MB / 491.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.6164, allocations: 469.8 kB / 492 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.6165, allocations: 82.17 kB / 492.1 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/0.6169, allocations: 104 kB / 492.2 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003732/0.6206, allocations: 1.113 MB / 493.3 MB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.512e-05/0.6207, allocations: 0 / 493.3 MB, free: 9.473 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/0.6209, allocations: 40 kB / 493.4 MB, free: 9.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.621, allocations: 28 kB / 493.4 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003993/0.625, allocations: 1.144 MB / 494.5 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01102/0.636, allocations: 4.067 MB / 498.6 MB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2778/0.9139, allocations: 3.747 MB / 0.4906 GB, free: 91.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002243/0.9142, allocations: 100.8 kB / 0.4907 GB, free: 91.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.9142, allocations: 41.42 kB / 0.4907 GB, free: 91.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 3.457e-06/0.9142, allocations: 0 / 0.4907 GB, free: 91.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.002911/0.9172, allocations: 0.7611 MB / 0.4914 GB, free: 91.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.9173, allocations: 112.7 kB / 0.4916 GB, free: 91.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005466/0.9178, allocations: 287.4 kB / 0.4918 GB, free: 91.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.918, allocations: 37.05 kB / 0.4919 GB, free: 91.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002985/0.9183, allocations: 0.5015 MB / 0.4924 GB, free: 91.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.9185, allocations: 249.4 kB / 0.4926 GB, free: 90.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-05/0.9186, allocations: 19.16 kB / 0.4926 GB, free: 90.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.895e-05/0.9187, allocations: 347.7 kB / 0.4929 GB, free: 90.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007998/0.9195, allocations: 246.9 kB / 0.4932 GB, free: 90.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009186/0.9205, allocations: 0.5541 MB / 0.4937 GB, free: 90.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009763/0.9215, allocations: 334.2 kB / 0.494 GB, free: 90.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.9215, allocations: 3.906 kB / 0.494 GB, free: 90.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00247/0.924, allocations: 0.8891 MB / 0.4949 GB, free: 90.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.9241, allocations: 11.78 kB / 0.4949 GB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/0.9241, allocations: 10.19 kB / 0.4949 GB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.772e-05/0.9242, allocations: 17.81 kB / 0.4949 GB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.9258, allocations: 239.3 kB / 0.4952 GB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.12e-05/0.9259, allocations: 26.44 kB / 0.4952 GB, free: 90.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009227/0.9268, allocations: 108.9 kB / 0.4953 GB, free: 90.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.927, allocations: 41.81 kB / 0.4953 GB, free: 90.12 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 () * Number of clocked 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.0005274/0.9275, allocations: 245 kB / 0.4956 GB, free: 90.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.9277, allocations: 45.12 kB / 0.4956 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002058/0.9298, allocations: 0.6889 MB / 0.4963 GB, free: 89.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.9298, allocations: 8.719 kB / 0.4963 GB, free: 89.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.9298, allocations: 1.156 kB / 0.4963 GB, free: 89.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.9299, allocations: 11.77 kB / 0.4963 GB, free: 89.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004148/0.934, allocations: 1.579 MB / 0.4979 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.9341, allocations: 5.312 kB / 0.4979 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.9353, allocations: 154.3 kB / 0.498 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.9353, allocations: 2.781 kB / 0.498 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.9354, allocations: 13.28 kB / 0.498 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.759e-06/0.9354, allocations: 4.25 kB / 0.498 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.9354, allocations: 0 / 0.498 GB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002606/0.938, allocations: 1.188 MB / 0.4992 GB, free: 89.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002489/0.9383, allocations: 132.5 kB / 0.4993 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.9385, allocations: 15.72 kB / 0.4993 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.9391, allocations: 31.19 kB / 0.4994 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/0.9393, allocations: 44.08 kB / 0.4994 GB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-05/0.9394, allocations: 26.84 kB / 0.4994 GB, free: 89.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003344/0.9397, allocations: 212.4 kB / 0.4996 GB, free: 88.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9397, allocations: 3.609 kB / 0.4996 GB, free: 88.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001324/0.941, allocations: 250.8 kB / 0.4999 GB, free: 88.95 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 () * Number of clocked 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.003101/0.9442, allocations: 1.917 MB / 0.5017 GB, free: 87.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.946, allocations: 0.6874 MB / 0.5024 GB, free: 87.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.9461, allocations: 0 / 0.5024 GB, free: 87.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.9469, allocations: 323.6 kB / 0.5027 GB, free: 87.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.9475, allocations: 37.14 kB / 0.5028 GB, free: 87.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.9594, allocations: 11.15 MB / 0.5136 GB, free: 79.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.9599, allocations: 0.943 MB / 0.5146 GB, free: 78.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/0.9606, allocations: 295 kB / 0.5149 GB, free: 78.56 MB / 378.7 MB Notification: Performance of SimCode: time 2.515e-06/0.9606, allocations: 0 / 0.5149 GB, free: 78.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.531/3.492, allocations: 10.8 MB / 0.5254 GB, free: 77.86 MB / 378.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