Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001017/0.001017, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008489/0.0008491, allocations: 92.17 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002984, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2381, allocations: 47.58 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09474/0.3329, allocations: 85.76 MB / 461.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.3331, allocations: 79.95 kB / 461.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06239/0.3955, allocations: 29.09 MB / 490.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3956, allocations: 0 / 490.9 MB, free: 13.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.3956, allocations: 12 kB / 490.9 MB, free: 13.33 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.002173/0.3978, allocations: 1.089 MB / 492 MB, free: 12.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3978, allocations: 12.03 kB / 492 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001807/0.398, allocations: 160.9 kB / 492.1 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004463/0.4025, allocations: 0.7169 MB / 492.8 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006775/0.4032, allocations: 464.3 kB / 493.3 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/0.4032, allocations: 78.17 kB / 493.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.4034, allocations: 108 kB / 493.5 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.4051, allocations: 1.113 MB / 494.6 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.4051, allocations: 0 / 494.6 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.864e-05/0.4052, allocations: 44 kB / 494.6 MB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.4052, allocations: 28 kB / 494.7 MB, free: 9.387 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001766/0.407, allocations: 1.14 MB / 495.8 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005587/0.4126, allocations: 4.071 MB / 499.9 MB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1732/0.5858, allocations: 3.749 MB / 0.4918 GB, free: 91.99 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000162/0.5861, allocations: 96.7 kB / 0.4919 GB, free: 91.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.5861, allocations: 44.22 kB / 0.4919 GB, free: 91.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=71): time 3.146e-06/0.5861, allocations: 0 / 0.4919 GB, free: 91.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=71): time 0.001801/0.5879, allocations: 0.7648 MB / 0.4927 GB, free: 91.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.146e-05/0.588, allocations: 110.9 kB / 0.4928 GB, free: 91.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004548/0.5884, allocations: 291.3 kB / 0.4931 GB, free: 91.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.5885, allocations: 40.3 kB / 0.4931 GB, free: 91.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.5888, allocations: 444.2 kB / 0.4935 GB, free: 91.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.5889, allocations: 246.4 kB / 0.4938 GB, free: 91.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.589, allocations: 19.19 kB / 0.4938 GB, free: 91.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.5891, allocations: 354.1 kB / 0.4941 GB, free: 90.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004897/0.5896, allocations: 251.2 kB / 0.4944 GB, free: 90.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005944/0.5902, allocations: 0.5523 MB / 0.4949 GB, free: 90.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005968/0.5908, allocations: 334.7 kB / 0.4952 GB, free: 90.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.5908, allocations: 3.5 kB / 0.4952 GB, free: 90.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001373/0.5922, allocations: 0.8934 MB / 0.4961 GB, free: 90.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.5922, allocations: 8.969 kB / 0.4961 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.5923, allocations: 13.59 kB / 0.4961 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.441e-05/0.5923, allocations: 16.66 kB / 0.4961 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008601/0.5932, allocations: 237 kB / 0.4964 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.4e-05/0.5932, allocations: 24.73 kB / 0.4964 GB, free: 90.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/0.5938, allocations: 112.6 kB / 0.4965 GB, free: 90.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.432e-05/0.5939, allocations: 42.84 kB / 0.4965 GB, free: 90.42 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.000362/0.5942, allocations: 243.1 kB / 0.4968 GB, free: 90.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.5944, allocations: 47.12 kB / 0.4968 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.5957, allocations: 0.6882 MB / 0.4975 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.5957, allocations: 8.594 kB / 0.4975 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5957, allocations: 1.031 kB / 0.4975 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.5957, allocations: 4.906 kB / 0.4975 GB, free: 90.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002226/0.5979, allocations: 1.583 MB / 0.499 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.598, allocations: 6.156 kB / 0.4991 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.5985, allocations: 153 kB / 0.4992 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.5986, allocations: 5.312 kB / 0.4992 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.5986, allocations: 15.53 kB / 0.4992 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.5986, allocations: 7.219 kB / 0.4992 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5986, allocations: 4.828 kB / 0.4992 GB, free: 89.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.6001, allocations: 1.182 MB / 0.5004 GB, free: 89.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.6002, allocations: 136.4 kB / 0.5005 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.6003, allocations: 14.34 kB / 0.5005 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/0.6007, allocations: 29.77 kB / 0.5006 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.945e-05/0.6008, allocations: 46.2 kB / 0.5006 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.609e-05/0.6008, allocations: 28.72 kB / 0.5006 GB, free: 89.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000182/0.601, allocations: 212.3 kB / 0.5008 GB, free: 89.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.601, allocations: 0 / 0.5008 GB, free: 89.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008846/0.6019, allocations: 256.3 kB / 0.5011 GB, free: 89.23 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.001541/0.6034, allocations: 1.918 MB / 0.5029 GB, free: 88.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009262/0.6044, allocations: 0.6877 MB / 0.5036 GB, free: 88.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.6044, allocations: 0 / 0.5036 GB, free: 88.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.6047, allocations: 320.3 kB / 0.5039 GB, free: 88.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.6051, allocations: 46.09 kB / 0.504 GB, free: 88.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0067/0.6118, allocations: 11.1 MB / 0.5148 GB, free: 79.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.6121, allocations: 0.9447 MB / 0.5157 GB, free: 78.9 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003724/0.6125, allocations: 91.58 kB / 0.5158 GB, free: 78.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.6128, allocations: 284.2 kB / 0.5161 GB, free: 78.87 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6128, allocations: 0 / 0.5161 GB, free: 78.87 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01897/0.6318, allocations: 9.617 MB / 0.5255 GB, free: 78.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.632, allocations: 197.6 kB / 0.5257 GB, free: 77.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.663, allocations: 0 / 0.5257 GB, free: 77.96 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat