Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001522, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009607/0.0009608, allocations: 92.05 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.559e-05/1.573e-05, allocations: 0 / 343.8 MB, free: 8.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1169, allocations: 51.48 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3911/0.508, allocations: 81.18 MB / 476.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.5083, allocations: 89.31 kB / 476.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02639/0.5347, allocations: 11.93 MB / 488.5 MB, free: 2.258 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.5348, allocations: 0 / 488.5 MB, free: 2.258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.5348, allocations: 8 kB / 488.5 MB, free: 2.25 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001201/0.536, allocations: 0.6194 MB / 489.1 MB, free: 1.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.536, allocations: 10 kB / 489.1 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007003/0.5367, allocations: 104.5 kB / 489.2 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.537, allocations: 258.6 kB / 489.5 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.5371, allocations: 12.86 kB / 489.5 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.5371, allocations: 27.84 kB / 489.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003562/0.5375, allocations: 217.3 kB / 489.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.5379, allocations: 274.6 kB / 490 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.5379, allocations: 7.062 kB / 490 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.5379, allocations: 0 / 490 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.5379, allocations: 8 kB / 490 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001736/0.5397, allocations: 1.381 MB / 491.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000703/0.5404, allocations: 0.6832 MB / 492.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.5406, allocations: 91.39 kB / 492.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002247/0.5409, allocations: 169.5 kB / 492.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.5409, allocations: 34.56 kB / 492.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.5409, allocations: 0 / 492.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000878/0.5418, allocations: 293.7 kB / 492.6 MB, free: 14.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.5418, allocations: 55.34 kB / 492.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.542, allocations: 136.4 kB / 492.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.542, allocations: 26.64 kB / 492.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/0.5422, allocations: 178.3 kB / 493 MB, free: 13.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.284e-05/0.5423, allocations: 83.81 kB / 493.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.026e-05/0.5423, allocations: 0 / 493.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.5424, allocations: 330.3 kB / 493.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.135e-05/0.5425, allocations: 57.06 kB / 493.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.5426, allocations: 111.3 kB / 493.6 MB, free: 13.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.5431, allocations: 137.4 kB / 493.7 MB, free: 13.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5431, allocations: 0 / 493.7 MB, free: 13.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008294/0.544, allocations: 348.4 kB / 494.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.544, allocations: 5.875 kB / 494.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.544, allocations: 0 / 494.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002985/0.5443, allocations: 74.69 kB / 494.2 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.5445, allocations: 43.91 kB / 494.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.5464, allocations: 1.758 MB / 496 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.5466, allocations: 23.67 kB / 496 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.5466, allocations: 11.88 kB / 496 MB, free: 11.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.718e-05/0.5467, allocations: 108.9 kB / 496.1 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008076/0.5475, allocations: 298.2 kB / 496.4 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.5476, allocations: 15.81 kB / 496.4 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008156/0.5484, allocations: 310.8 kB / 496.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.5484, allocations: 4 kB / 496.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.449e-05/0.5485, allocations: 7.953 kB / 496.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.5485, allocations: 3.984 kB / 496.7 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.5498, allocations: 0.6656 MB / 497.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.5498, allocations: 9.688 kB / 497.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.5499, allocations: 31.92 kB / 497.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.5502, allocations: 66.81 kB / 497.5 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.5503, allocations: 7.078 kB / 497.5 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.5521, allocations: 1.745 MB / 499.2 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.5521, allocations: 8.094 kB / 499.3 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009209/0.553, allocations: 474 kB / 499.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.5531, allocations: 116.4 kB / 499.8 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.5532, allocations: 0 / 499.8 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.5533, allocations: 0 / 499.8 MB, free: 7.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/0.5533, allocations: 20.03 kB / 499.8 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.5534, allocations: 11.75 kB / 499.9 MB, free: 7.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.952e-05/0.5535, allocations: 111 kB / 500 MB, free: 7.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5535, allocations: 0 / 500 MB, free: 7.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005161/0.554, allocations: 95.38 kB / 0.4883 GB, free: 7.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001385/0.5554, allocations: 1.041 MB / 0.4894 GB, free: 6.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006099/0.556, allocations: 316.1 kB / 0.4897 GB, free: 6.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.556, allocations: 3.938 kB / 0.4897 GB, free: 6.406 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.5563, allocations: 227.2 kB / 0.4899 GB, free: 6.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.5566, allocations: 11.69 kB / 0.4899 GB, free: 6.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.5577, allocations: 445.7 kB / 0.4903 GB, free: 5.785 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.5581, allocations: 0.7597 MB / 0.4911 GB, free: 5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001558/0.5583, allocations: 21.86 kB / 0.4911 GB, free: 4.977 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.495e-05/0.5584, allocations: 70.28 kB / 0.4911 GB, free: 4.957 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5584, allocations: 0 / 0.4911 GB, free: 4.957 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.5833, allocations: 3.981 MB / 0.495 GB, free: 1.051 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.5835, allocations: 170.7 kB / 0.4952 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.386, allocations: 0 / 0.4952 GB, free: 0.8555 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat