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.001398/0.001398, allocations: 197.2 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.539/1.539, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00118/0.00118, allocations: 91.5 kB / 292.1 MB, free: 5.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.371e-05/4.387e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1176, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.358/0.4757, allocations: 81.85 MB / 484 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.4759, allocations: 90.56 kB / 484.1 MB, free: 7.555 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.5029, allocations: 12.05 MB / 496.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5029, allocations: 0 / 496.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.762e-05/0.5029, allocations: 4 kB / 496.1 MB, free: 13.04 MB / 362.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.001497/0.5044, allocations: 0.6072 MB / 496.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.5045, allocations: 9.25 kB / 496.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.5046, allocations: 74.53 kB / 496.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007384/0.5054, allocations: 99.55 kB / 496.9 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003805/0.5058, allocations: 261.8 kB / 497.2 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.5058, allocations: 28.77 kB / 497.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.997e-05/0.5059, allocations: 43.84 kB / 497.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.5065, allocations: 326.6 kB / 497.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.5065, allocations: 0 / 497.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.151e-05/0.5066, allocations: 16 kB / 497.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.5066, allocations: 8 kB / 497.6 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.507, allocations: 231.1 kB / 497.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002159/0.5092, allocations: 1.452 MB / 499.3 MB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.5099, allocations: 0.6945 MB / 500 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.5101, allocations: 104.8 kB / 0.4883 GB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002059/0.5103, allocations: 166.2 kB / 0.4885 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.5103, allocations: 38.56 kB / 0.4885 GB, free: 8.508 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.5104, allocations: 0 / 0.4885 GB, free: 8.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005802/0.5109, allocations: 241 kB / 0.4888 GB, free: 8.266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.511, allocations: 67.3 kB / 0.4888 GB, free: 8.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.5112, allocations: 155.4 kB / 0.489 GB, free: 8.023 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.5112, allocations: 33.7 kB / 0.489 GB, free: 7.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.5113, allocations: 172 kB / 0.4892 GB, free: 7.812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.5114, allocations: 86.75 kB / 0.4893 GB, free: 7.727 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/0.5114, allocations: 4 kB / 0.4893 GB, free: 7.723 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5115, allocations: 322.8 kB / 0.4896 GB, free: 7.398 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.5117, allocations: 64.56 kB / 0.4896 GB, free: 7.336 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.5118, allocations: 125.3 kB / 0.4898 GB, free: 7.195 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.512, allocations: 81.14 kB / 0.4898 GB, free: 7.117 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.512, allocations: 4 kB / 0.4898 GB, free: 7.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005515/0.5126, allocations: 314.1 kB / 0.4901 GB, free: 6.801 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.5126, allocations: 4 kB / 0.4901 GB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.5126, allocations: 4 kB / 0.4901 GB, free: 6.793 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.5129, allocations: 77 kB / 0.4902 GB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.5131, allocations: 47.91 kB / 0.4903 GB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.5151, allocations: 1.82 MB / 0.492 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.5152, allocations: 27.62 kB / 0.4921 GB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.5152, allocations: 8.062 kB / 0.4921 GB, free: 4.68 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 0.0001068/0.5154, allocations: 122.1 kB / 0.4922 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.265e-05/0.5154, allocations: 23.78 kB / 0.4922 GB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005496/0.516, allocations: 280.2 kB / 0.4925 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.516, allocations: 14.19 kB / 0.4925 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.516, allocations: 0 / 0.4925 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.516, allocations: 0 / 0.4925 GB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.517, allocations: 0.6881 MB / 0.4932 GB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5171, allocations: 3.953 kB / 0.4932 GB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.5172, allocations: 24 kB / 0.4932 GB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000241/0.5174, allocations: 76.73 kB / 0.4933 GB, free: 3.387 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.5175, allocations: 8 kB / 0.4933 GB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.5193, allocations: 1.813 MB / 0.495 GB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5193, allocations: 8 kB / 0.4951 GB, free: 1.422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006406/0.52, allocations: 445.4 kB / 0.4955 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.885e-05/0.5201, allocations: 116.8 kB / 0.4956 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.5201, allocations: 8 kB / 0.4956 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.5202, allocations: 8.062 kB / 0.4956 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.5203, allocations: 15.97 kB / 0.4956 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.5203, allocations: 12 kB / 0.4956 GB, free: 0.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.7e-05/0.5204, allocations: 123.2 kB / 0.4957 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5204, allocations: 0 / 0.4957 GB, free: 0.6719 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005177/0.5209, allocations: 103.7 kB / 0.4958 GB, free: 0.5703 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.001092/0.522, allocations: 1.018 MB / 0.4968 GB, free: 15.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005814/0.5226, allocations: 333.9 kB / 0.4972 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.5227, allocations: 0 / 0.4972 GB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.523, allocations: 248 kB / 0.4974 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002256/0.5232, allocations: 22.06 kB / 0.4974 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.5243, allocations: 467.4 kB / 0.4979 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.5247, allocations: 0.7596 MB / 0.4986 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.5248, allocations: 22.08 kB / 0.4986 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.5249, allocations: 79.41 kB / 0.4987 GB, free: 13.55 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5249, allocations: 0 / 0.4987 GB, free: 13.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.5451, allocations: 4.808 MB / 0.5034 GB, free: 9.023 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.5454, allocations: 199 kB / 0.5036 GB, free: 8.797 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.343, allocations: 2.656 kB / 0.5036 GB, free: 8.797 MB / 378.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