Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 93.05 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.898e-05/3.91e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3064/0.4097, allocations: 81.47 MB / 483.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.4099, allocations: 74.11 kB / 483.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01897/0.4288, allocations: 8.475 MB / 492.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4289, allocations: 0 / 492.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.4289, allocations: 12 kB / 492.2 MB, free: 0.7969 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.000986/0.4299, allocations: 0.733 MB / 492.9 MB, free: 64 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.43, allocations: 15.2 kB / 492.9 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/0.4301, allocations: 105 kB / 493 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.4304, allocations: 95.98 kB / 493.1 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.431, allocations: 357.1 kB / 493.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.431, allocations: 37.94 kB / 493.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-05/0.4311, allocations: 51 kB / 493.5 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007507/0.4319, allocations: 483.6 kB / 494 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.4319, allocations: 0 / 494 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.739e-05/0.432, allocations: 22.62 kB / 494 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.432, allocations: 12 kB / 494 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005497/0.4325, allocations: 311.7 kB / 494.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/0.4353, allocations: 1.751 MB / 496.1 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003935/0.4357, allocations: 251.1 kB / 496.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.4359, allocations: 129.7 kB / 496.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.4359, allocations: 4 kB / 496.5 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.436, allocations: 42.52 kB / 496.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.436, allocations: 0 / 496.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001314/0.4373, allocations: 0.7574 MB / 497.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.4374, allocations: 81.36 kB / 497.4 MB, free: 11.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.4377, allocations: 331.5 kB / 497.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.4378, allocations: 31.48 kB / 497.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.4379, allocations: 299.3 kB / 498 MB, free: 10.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.426e-05/0.4381, allocations: 114.4 kB / 498.1 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.4381, allocations: 8.219 kB / 498.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4382, allocations: 350.8 kB / 498.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.4384, allocations: 92.81 kB / 498.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002091/0.4386, allocations: 174.8 kB / 498.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.4388, allocations: 112.9 kB / 498.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4388, allocations: 4 kB / 498.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007052/0.4395, allocations: 423.8 kB / 499.2 MB, free: 9.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.4396, allocations: 4.312 kB / 499.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.4396, allocations: 11.98 kB / 499.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003087/0.4399, allocations: 85.61 kB / 499.3 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003664/0.4403, allocations: 83.89 kB / 499.4 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.4426, allocations: 2.838 MB / 0.4905 GB, free: 6.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.4429, allocations: 23.84 kB / 0.4905 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.4429, allocations: 16.17 kB / 0.4905 GB, free: 6.324 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.443, allocations: 124.9 kB / 0.4907 GB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.4431, allocations: 39.53 kB / 0.4907 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.156e-05/0.4432, allocations: 53.47 kB / 0.4907 GB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.4432, allocations: 7.953 kB / 0.4908 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4432, allocations: 7.938 kB / 0.4908 GB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4433, allocations: 3.984 kB / 0.4908 GB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.4446, allocations: 0.9244 MB / 0.4917 GB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.4446, allocations: 4 kB / 0.4917 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.4448, allocations: 43.97 kB / 0.4917 GB, free: 5.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002581/0.4451, allocations: 85.59 kB / 0.4918 GB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.4451, allocations: 7.984 kB / 0.4918 GB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.4473, allocations: 2.851 MB / 0.4946 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.4473, allocations: 0 / 0.4946 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007817/0.4481, allocations: 0.5892 MB / 0.4952 GB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.4482, allocations: 116.6 kB / 0.4953 GB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.4483, allocations: 7.953 kB / 0.4953 GB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003287/0.4486, allocations: 39.97 kB / 0.4953 GB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.4487, allocations: 23.97 kB / 0.4953 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.4487, allocations: 11.98 kB / 0.4954 GB, free: 1.008 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002715/0.449, allocations: 262.2 kB / 0.4956 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.333e-06/0.449, allocations: 0 / 0.4956 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005375/0.4496, allocations: 123.9 kB / 0.4957 GB, free: 0.6328 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001156/0.4507, allocations: 1.215 MB / 0.4969 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007809/0.4515, allocations: 499.1 kB / 0.4974 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4515, allocations: 0 / 0.4974 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005553/0.4521, allocations: 372.7 kB / 0.4977 GB, free: 14.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003672/0.4525, allocations: 62.73 kB / 0.4978 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.4541, allocations: 0.8218 MB / 0.4986 GB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.4546, allocations: 0.8549 MB / 0.4994 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000183/0.4548, allocations: 51.22 kB / 0.4995 GB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.455, allocations: 171.4 kB / 0.4996 GB, free: 12.46 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.455, allocations: 6.625 kB / 0.4997 GB, free: 12.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.4768, allocations: 7.982 MB / 0.5074 GB, free: 4.746 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002834/0.4771, allocations: 187.2 kB / 0.5076 GB, free: 4.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.561, allocations: 0 / 0.5076 GB, free: 4.52 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat