Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001174/0.001174, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.449/1.449, allocations: 221.4 MB / 235.5 MB, free: 2.914 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.0008843/0.0008843, allocations: 102 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.2e-05/4.21e-05, allocations: 4 kB / 343.9 MB, free: 4.191 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1148, allocations: 50.4 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3312/0.446, allocations: 81.4 MB / 475.7 MB, free: 6.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/0.4465, allocations: 83.95 kB / 475.8 MB, free: 5.973 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03724/0.4838, allocations: 12.25 MB / 488.1 MB, free: 9.688 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.4838, allocations: 0 / 488.1 MB, free: 9.688 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.604e-05/0.4838, allocations: 8 kB / 488.1 MB, free: 9.68 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001531/0.4854, allocations: 0.7211 MB / 488.8 MB, free: 8.914 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.4854, allocations: 12.03 kB / 488.8 MB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.4856, allocations: 94.52 kB / 488.9 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.4857, allocations: 59.25 kB / 489 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.4862, allocations: 347.3 kB / 489.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.4863, allocations: 37.31 kB / 489.3 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/0.4866, allocations: 48 kB / 489.4 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007078/0.4873, allocations: 402.6 kB / 489.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.4873, allocations: 0 / 489.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.428e-05/0.4873, allocations: 23.95 kB / 489.8 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.4874, allocations: 12 kB / 489.8 MB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000615/0.488, allocations: 337.1 kB / 490.1 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002687/0.4907, allocations: 1.601 MB / 491.7 MB, free: 5.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000744/0.4915, allocations: 385.5 kB / 492.1 MB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003227/0.4918, allocations: 169.5 kB / 492.3 MB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.4918, allocations: 8.391 kB / 492.3 MB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.4919, allocations: 42.81 kB / 492.3 MB, free: 5.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 2.004e-06/0.4919, allocations: 0 / 492.3 MB, free: 5.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.002773/0.4947, allocations: 1.057 MB / 493.4 MB, free: 4.098 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.4947, allocations: 59.91 kB / 493.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003993/0.4952, allocations: 346.8 kB / 493.8 MB, free: 3.676 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.4952, allocations: 37.7 kB / 493.8 MB, free: 3.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.4954, allocations: 299.8 kB / 494.1 MB, free: 3.336 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.4957, allocations: 189.3 kB / 494.3 MB, free: 3.148 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.4957, allocations: 16 kB / 494.3 MB, free: 3.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4959, allocations: 354.8 kB / 494.7 MB, free: 2.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.4962, allocations: 141.6 kB / 494.8 MB, free: 2.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.4965, allocations: 260.4 kB / 495.1 MB, free: 2.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.4968, allocations: 187.2 kB / 495.2 MB, free: 2.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4968, allocations: 0 / 495.2 MB, free: 2.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001194/0.498, allocations: 0.6679 MB / 495.9 MB, free: 1.473 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4981, allocations: 7.938 kB / 495.9 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4981, allocations: 4 kB / 495.9 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005275/0.4986, allocations: 189.8 kB / 496.1 MB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004742/0.4991, allocations: 111.9 kB / 496.2 MB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.5033, allocations: 3.88 MB / 0.4884 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.5038, allocations: 44 kB / 0.4884 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.5038, allocations: 23.94 kB / 0.4884 GB, free: 12.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000165/0.504, allocations: 141.5 kB / 0.4886 GB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.5042, allocations: 51.42 kB / 0.4886 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.5043, allocations: 56.81 kB / 0.4887 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.5044, allocations: 8 kB / 0.4887 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.5044, allocations: 4 kB / 0.4887 GB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.5044, allocations: 3.984 kB / 0.4887 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.5064, allocations: 1.234 MB / 0.4899 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.5065, allocations: 0 / 0.4899 GB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.5068, allocations: 80.02 kB / 0.49 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/0.5072, allocations: 157.6 kB / 0.4901 GB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/0.5072, allocations: 12 kB / 0.4901 GB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003758/0.511, allocations: 3.69 MB / 0.4937 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.511, allocations: 4.062 kB / 0.4937 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.5122, allocations: 0.6759 MB / 0.4944 GB, free: 6.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001407/0.5123, allocations: 124.4 kB / 0.4945 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.806e-05/0.5124, allocations: 12 kB / 0.4945 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/0.5127, allocations: 31.94 kB / 0.4946 GB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.5128, allocations: 44.75 kB / 0.4946 GB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.5129, allocations: 19.98 kB / 0.4946 GB, free: 6.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003729/0.5133, allocations: 269.2 kB / 0.4949 GB, free: 5.922 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.52e-07/0.5133, allocations: 0 / 0.4949 GB, free: 5.922 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007643/0.5141, allocations: 155.9 kB / 0.495 GB, free: 5.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/0.5154, allocations: 1.515 MB / 0.4965 GB, free: 4.184 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.5168, allocations: 0.7065 MB / 0.4972 GB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5169, allocations: 0 / 0.4972 GB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006383/0.5175, allocations: 0.497 MB / 0.4977 GB, free: 2.934 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.518, allocations: 45.42 kB / 0.4977 GB, free: 2.891 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.5195, allocations: 0.7094 MB / 0.4984 GB, free: 2.125 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.52, allocations: 0.8717 MB / 0.4993 GB, free: 1.223 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.5203, allocations: 44.38 kB / 0.4993 GB, free: 1.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002293/0.5205, allocations: 175 kB / 0.4995 GB, free: 1.016 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5205, allocations: 0 / 0.4995 GB, free: 1.016 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.5448, allocations: 8.868 MB / 0.5081 GB, free: 8.32 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.5451, allocations: 213.6 kB / 0.5084 GB, free: 8.078 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.567/3.113, allocations: 0 / 0.5084 GB, free: 8.078 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat