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.002149/0.002148, allocations: 177.9 kB / 8.362 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/2, 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.00113/0.00113, allocations: 92.47 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.61e-05/2.61e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3308, allocations: 47.55 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.4702, allocations: 85.01 MB / 447.4 MB, free: 1.191 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.4705, allocations: 83.94 kB / 447.5 MB, free: 1.109 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1193/0.5898, allocations: 28.65 MB / 476.2 MB, free: 4.184 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5899, allocations: 0 / 476.2 MB, free: 4.184 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.896e-05/0.59, allocations: 16 kB / 476.2 MB, free: 4.168 MB / 363.1 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.003815/0.5938, allocations: 1.07 MB / 477.3 MB, free: 3.051 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.5939, allocations: 12.03 kB / 477.3 MB, free: 3.039 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007399/0.6013, allocations: 0.7091 MB / 478 MB, free: 2.328 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.6025, allocations: 463.8 kB / 478.4 MB, free: 1.832 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.6026, allocations: 36 kB / 478.5 MB, free: 1.797 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/0.6029, allocations: 64 kB / 478.5 MB, free: 1.734 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003014/0.6059, allocations: 1.012 MB / 479.5 MB, free: 0.7188 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00264/0.6086, allocations: 0.8864 MB / 480.4 MB, free: 15.8 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.319e-05/0.6087, allocations: 4 kB / 480.4 MB, free: 15.79 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.6088, allocations: 0 / 480.4 MB, free: 15.79 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.639e-05/0.6089, allocations: 24 kB / 480.5 MB, free: 15.77 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009707/0.6186, allocations: 3.899 MB / 484.4 MB, free: 11.64 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.6234, allocations: 3.709 MB / 488.1 MB, free: 7.262 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006994/0.6242, allocations: 264.7 kB / 488.3 MB, free: 6.996 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001716/0.6244, allocations: 97.66 kB / 488.4 MB, free: 6.883 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.6244, allocations: 39.12 kB / 488.5 MB, free: 6.836 MB / 379.1 MB Notification: Performance of pre-optimization done (n=71): time 3.457e-06/0.6244, allocations: 3.938 kB / 488.5 MB, free: 6.832 MB / 379.1 MB Notification: Performance of matching and sorting (n=71): time 0.00222/0.6267, allocations: 0.5883 MB / 489 MB, free: 6.238 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.6268, allocations: 116.9 kB / 489.2 MB, free: 6.102 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.6272, allocations: 266 kB / 489.4 MB, free: 5.832 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.6273, allocations: 25.7 kB / 489.4 MB, free: 5.801 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/0.6277, allocations: 0.4964 MB / 489.9 MB, free: 5.297 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002599/0.6279, allocations: 240.5 kB / 490.2 MB, free: 5.059 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.628, allocations: 0 / 490.2 MB, free: 5.059 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6282, allocations: 346.8 kB / 490.5 MB, free: 4.711 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.6287, allocations: 202.7 kB / 490.7 MB, free: 4.512 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007925/0.6295, allocations: 0.5129 MB / 491.2 MB, free: 3.852 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.6313, allocations: 436.1 kB / 491.7 MB, free: 3.426 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.437e-05/0.6313, allocations: 4 kB / 491.7 MB, free: 3.422 MB / 379.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003003/0.6343, allocations: 0.8938 MB / 492.5 MB, free: 2.52 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.6344, allocations: 8.969 kB / 492.6 MB, free: 2.512 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.6345, allocations: 12 kB / 492.6 MB, free: 2.5 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.619e-05/0.6345, allocations: 20 kB / 492.6 MB, free: 2.48 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/0.6361, allocations: 231.6 kB / 492.8 MB, free: 2.254 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.128e-05/0.6362, allocations: 23.92 kB / 492.8 MB, free: 2.23 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008351/0.637, allocations: 94.28 kB / 492.9 MB, free: 2.141 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.6371, allocations: 43.94 kB / 493 MB, free: 2.098 MB / 379.1 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.0002246/0.6374, allocations: 137.5 kB / 493.1 MB, free: 1.957 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002098/0.6395, allocations: 0.596 MB / 493.7 MB, free: 1.359 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.6397, allocations: 47.52 kB / 493.7 MB, free: 1.312 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/0.6421, allocations: 0.7039 MB / 494.5 MB, free: 0.5977 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.622e-05/0.6422, allocations: 8 kB / 494.5 MB, free: 0.5898 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.6422, allocations: 3.953 kB / 494.5 MB, free: 0.5859 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.6422, allocations: 7.984 kB / 494.5 MB, free: 0.5781 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004246/0.6465, allocations: 1.489 MB / 496 MB, free: 15.04 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.6466, allocations: 4 kB / 496 MB, free: 15.04 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.6478, allocations: 143.8 kB / 496.1 MB, free: 14.9 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.574e-05/0.6478, allocations: 4 kB / 496.1 MB, free: 14.89 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.638e-05/0.6479, allocations: 11.98 kB / 496.1 MB, free: 14.88 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.656e-06/0.6479, allocations: 4 kB / 496.1 MB, free: 14.88 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.6479, allocations: 0 / 496.1 MB, free: 14.88 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002895/0.6508, allocations: 1.189 MB / 497.3 MB, free: 13.66 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002082/0.6511, allocations: 128.4 kB / 497.4 MB, free: 13.52 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.395e-05/0.6512, allocations: 0 / 497.4 MB, free: 13.52 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00066/0.6518, allocations: 23.94 kB / 497.5 MB, free: 13.49 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.652, allocations: 48.72 kB / 497.5 MB, free: 13.45 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.652, allocations: 23.98 kB / 497.5 MB, free: 13.42 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.6523, allocations: 182 kB / 497.7 MB, free: 13.25 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6523, allocations: 0 / 497.7 MB, free: 13.25 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001219/0.6536, allocations: 227 kB / 497.9 MB, free: 13.02 MB / 395.1 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.003463/0.6571, allocations: 1.903 MB / 499.8 MB, free: 11.08 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.6586, allocations: 0.593 MB / 0.4887 GB, free: 10.5 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/0.6587, allocations: 4 kB / 0.4887 GB, free: 10.49 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006571/0.6594, allocations: 283.2 kB / 0.489 GB, free: 10.21 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.6599, allocations: 22.48 kB / 0.489 GB, free: 10.2 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00656/0.6665, allocations: 1.674 MB / 0.4906 GB, free: 8.473 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/0.6672, allocations: 0.94 MB / 0.4915 GB, free: 7.5 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007076/0.668, allocations: 291.3 kB / 0.4918 GB, free: 7.215 MB / 395.1 MB Notification: Performance of SimCode: time 1.533e-06/0.668, allocations: 0.6562 kB / 0.4918 GB, free: 7.215 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.747/3.415, allocations: 10.86 MB / 0.5024 GB, free: 106.6 MB / 395.1 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