Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009554/0.0009555, allocations: 99.09 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000305/0.0003053, allocations: 15.92 kB / 351.2 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3363, allocations: 50.41 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.118/0.4543, allocations: 81.05 MB / 482.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.4546, allocations: 86.05 kB / 482.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02638/0.481, allocations: 11.43 MB / 494.2 MB, free: 3.703 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.481, allocations: 3.938 kB / 494.2 MB, free: 3.699 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.4811, allocations: 4 kB / 494.2 MB, free: 3.695 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.001294/0.4824, allocations: 0.6305 MB / 494.8 MB, free: 3.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.4824, allocations: 8.031 kB / 494.8 MB, free: 3.012 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.033e-05/0.4825, allocations: 78.42 kB / 494.9 MB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006855/0.4832, allocations: 103.5 kB / 495 MB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.4835, allocations: 255.3 kB / 495.2 MB, free: 2.535 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.4836, allocations: 20.66 kB / 495.3 MB, free: 2.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.4836, allocations: 36 kB / 495.3 MB, free: 2.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000502/0.4841, allocations: 329.1 kB / 495.6 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.4842, allocations: 0 / 495.6 MB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.4842, allocations: 16 kB / 495.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.4842, allocations: 11.95 kB / 495.6 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003818/0.4846, allocations: 238.5 kB / 495.9 MB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.4866, allocations: 1.455 MB / 497.3 MB, free: 296 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006745/0.4873, allocations: 0.7006 MB / 498 MB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.4874, allocations: 89.09 kB / 498.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.4874, allocations: 38.55 kB / 498.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.532e-06/0.4874, allocations: 4 kB / 498.2 MB, free: 15.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001119/0.4885, allocations: 485.8 kB / 498.6 MB, free: 14.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.4886, allocations: 59.41 kB / 498.7 MB, free: 14.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.4888, allocations: 160.1 kB / 498.8 MB, free: 14.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.4888, allocations: 25.7 kB / 498.9 MB, free: 14.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.4889, allocations: 179.9 kB / 499 MB, free: 14.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.489, allocations: 78.77 kB / 499.1 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.032e-05/0.489, allocations: 4 kB / 499.1 MB, free: 14.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4891, allocations: 330.8 kB / 499.4 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.4892, allocations: 68.53 kB / 499.5 MB, free: 13.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.4894, allocations: 120.2 kB / 499.6 MB, free: 13.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.4895, allocations: 85.11 kB / 499.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.4895, allocations: 7.953 kB / 499.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005294/0.49, allocations: 311.9 kB / 0.4883 GB, free: 13.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4901, allocations: 4 kB / 0.4883 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.4901, allocations: 4 kB / 0.4883 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003178/0.4904, allocations: 84.92 kB / 0.4884 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.4906, allocations: 39.92 kB / 0.4884 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/0.4924, allocations: 1.85 MB / 0.4902 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.4925, allocations: 27.72 kB / 0.4903 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.4926, allocations: 12 kB / 0.4903 GB, free: 11.19 MB / 378.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 () * Number of clocked 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.0001511/0.4927, allocations: 145.9 kB / 0.4904 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.4928, allocations: 15.81 kB / 0.4904 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005306/0.4933, allocations: 295.6 kB / 0.4907 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.4933, allocations: 4 kB / 0.4907 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.4933, allocations: 0 / 0.4907 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4933, allocations: 3.984 kB / 0.4907 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.4943, allocations: 0.6865 MB / 0.4914 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.4943, allocations: 0 / 0.4914 GB, free: 9.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.4944, allocations: 31.92 kB / 0.4914 GB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.4947, allocations: 73.38 kB / 0.4915 GB, free: 9.863 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.4947, allocations: 3.984 kB / 0.4915 GB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001797/0.4965, allocations: 1.854 MB / 0.4933 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4965, allocations: 4.031 kB / 0.4933 GB, free: 7.871 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006/0.4971, allocations: 443.7 kB / 0.4937 GB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.509e-05/0.4972, allocations: 112.9 kB / 0.4938 GB, free: 7.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.4973, allocations: 15.89 kB / 0.4939 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.4974, allocations: 4.125 kB / 0.4939 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.4974, allocations: 19.97 kB / 0.4939 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.4974, allocations: 4 kB / 0.4939 GB, free: 7.246 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.4976, allocations: 132.4 kB / 0.494 GB, free: 7.117 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4976, allocations: 0 / 0.494 GB, free: 7.117 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004809/0.498, allocations: 103.7 kB / 0.4941 GB, free: 7.016 MB / 378.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 () * Number of clocked 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.0009778/0.499, allocations: 1.002 MB / 0.4951 GB, free: 5.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.4996, allocations: 346.4 kB / 0.4954 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4997, allocations: 0 / 0.4954 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.5, allocations: 250.7 kB / 0.4957 GB, free: 5.375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.5002, allocations: 29.81 kB / 0.4957 GB, free: 5.348 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.5029, allocations: 2.366 MB / 0.498 GB, free: 2.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.5032, allocations: 0.7596 MB / 0.4987 GB, free: 2.133 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.5034, allocations: 21.95 kB / 0.4988 GB, free: 2.109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.5035, allocations: 75.41 kB / 0.4988 GB, free: 2.035 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5035, allocations: 0 / 0.4988 GB, free: 2.035 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2164/0.7198, allocations: 4.637 MB / 0.5034 GB, free: 96.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/0.72, allocations: 223 kB / 0.5036 GB, free: 96.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/2.424, allocations: 0 / 0.5036 GB, free: 96.21 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat