Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008115/0.0008115, allocations: 98.05 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.871e-05/1.874e-05, allocations: 4 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1088, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3624/0.4713, allocations: 86.37 MB / 473.9 MB, free: 8.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.4716, allocations: 79.95 kB / 474 MB, free: 8.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06096/0.5325, allocations: 26.46 MB / 0.4887 GB, free: 13.42 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5326, allocations: 4 kB / 0.4887 GB, free: 13.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.075e-05/0.5326, allocations: 12 kB / 0.4887 GB, free: 13.4 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002241/0.5348, allocations: 1.026 MB / 0.4897 GB, free: 12.33 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.5349, allocations: 8.031 kB / 0.4897 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/0.5382, allocations: 498.5 kB / 0.4902 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006436/0.5389, allocations: 422 kB / 0.4906 GB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.5389, allocations: 32 kB / 0.4907 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.539, allocations: 55.91 kB / 0.4907 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001416/0.5405, allocations: 0.8162 MB / 0.4915 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.5418, allocations: 0.7752 MB / 0.4923 GB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.5419, allocations: 8 kB / 0.4923 GB, free: 9.684 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.328e-05/0.542, allocations: 0 / 0.4923 GB, free: 9.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.542, allocations: 24 kB / 0.4923 GB, free: 9.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00491/0.5469, allocations: 3.301 MB / 0.4955 GB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.5492, allocations: 2.197 MB / 0.4977 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.5496, allocations: 256.6 kB / 0.4979 GB, free: 3.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.5497, allocations: 97.66 kB / 0.498 GB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.5498, allocations: 43.11 kB / 0.498 GB, free: 3.203 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 2.715e-06/0.5498, allocations: 4 kB / 0.498 GB, free: 3.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.001301/0.5511, allocations: 0.5609 MB / 0.4986 GB, free: 2.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.5511, allocations: 111.4 kB / 0.4987 GB, free: 2.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002305/0.5514, allocations: 216.4 kB / 0.4989 GB, free: 2.281 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.5514, allocations: 25.7 kB / 0.4989 GB, free: 2.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.5517, allocations: 382.6 kB / 0.4993 GB, free: 1.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.5518, allocations: 208.9 kB / 0.4995 GB, free: 1.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.5519, allocations: 0 / 0.4995 GB, free: 1.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.552, allocations: 350.9 kB / 0.4998 GB, free: 1.309 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.5523, allocations: 189.5 kB / 0.5 GB, free: 1.125 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.5528, allocations: 375.7 kB / 0.5004 GB, free: 0.668 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008539/0.5536, allocations: 381.8 kB / 0.5007 GB, free: 300 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5536, allocations: 0 / 0.5007 GB, free: 300 kB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001428/0.5551, allocations: 0.7527 MB / 0.5015 GB, free: 15.54 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.5551, allocations: 11.95 kB / 0.5015 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5551, allocations: 8 kB / 0.5015 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.335e-05/0.5552, allocations: 15.94 kB / 0.5015 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.5559, allocations: 191.7 kB / 0.5017 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.5559, allocations: 15.92 kB / 0.5017 GB, free: 15.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.5563, allocations: 67.28 kB / 0.5018 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.168e-05/0.5564, allocations: 39.98 kB / 0.5018 GB, free: 15.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * 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.0001265/0.5565, allocations: 120.7 kB / 0.5019 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001153/0.5577, allocations: 0.5609 MB / 0.5025 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.578e-05/0.5578, allocations: 43.47 kB / 0.5025 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.5592, allocations: 0.6712 MB / 0.5032 GB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.5592, allocations: 8 kB / 0.5032 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.5592, allocations: 4 kB / 0.5032 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.5592, allocations: 7.984 kB / 0.5032 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.5617, allocations: 1.389 MB / 0.5045 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5617, allocations: 4 kB / 0.5045 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005796/0.5623, allocations: 143.8 kB / 0.5047 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.5623, allocations: 4 kB / 0.5047 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.249e-05/0.5623, allocations: 7.984 kB / 0.5047 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.361e-06/0.5623, allocations: 4 kB / 0.5047 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.5623, allocations: 3.984 kB / 0.5047 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/0.564, allocations: 1.145 MB / 0.5058 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.665e-05/0.5641, allocations: 124.5 kB / 0.5059 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/0.5641, allocations: 7.953 kB / 0.5059 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/0.5645, allocations: 11.98 kB / 0.506 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-05/0.5646, allocations: 48.56 kB / 0.506 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.5646, allocations: 16 kB / 0.506 GB, free: 10.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001466/0.5648, allocations: 164.4 kB / 0.5062 GB, free: 10.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5648, allocations: 0 / 0.5062 GB, free: 10.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007309/0.5655, allocations: 207.1 kB / 0.5064 GB, free: 10.41 MB / 394.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 (72): * Single equations (assignments): 72 * 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.002112/0.5677, allocations: 1.878 MB / 0.5082 GB, free: 8.492 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.5686, allocations: 0.5195 MB / 0.5087 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.5686, allocations: 0 / 0.5087 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003574/0.5689, allocations: 274 kB / 0.509 GB, free: 7.707 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.5693, allocations: 16.38 kB / 0.509 GB, free: 7.691 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.5713, allocations: 0.9878 MB / 0.51 GB, free: 6.656 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.5719, allocations: 0.9165 MB / 0.5108 GB, free: 5.707 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00036/0.5723, allocations: 72.36 kB / 0.5109 GB, free: 5.637 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.5726, allocations: 253 kB / 0.5112 GB, free: 5.391 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5726, allocations: 0 / 0.5112 GB, free: 5.391 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.6029, allocations: 8.279 MB / 0.5192 GB, free: 13.12 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002812/0.6032, allocations: 164.6 kB / 0.5194 GB, free: 12.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.751, allocations: 0 / 0.5194 GB, free: 12.93 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat