Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001185/0.001185, allocations: 197 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.436/1.436, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008147/0.0008144, allocations: 93.14 kB / 292.1 MB, free: 6.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.731e-05/2.75e-05, allocations: 4 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 51.49 MB / 402.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3317/0.4535, allocations: 82.24 MB / 484.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4538, allocations: 78.2 kB / 484.4 MB, free: 7.184 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03375/0.4876, allocations: 12.41 MB / 496.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4876, allocations: 0 / 496.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.4877, allocations: 8 kB / 496.9 MB, free: 12.42 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.001298/0.489, allocations: 0.7341 MB / 497.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.489, allocations: 12.02 kB / 497.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.4891, allocations: 90.52 kB / 497.7 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.4894, allocations: 63.25 kB / 497.8 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004969/0.4899, allocations: 349.8 kB / 498.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.4899, allocations: 37.31 kB / 498.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.49, allocations: 48 kB / 498.2 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006772/0.4907, allocations: 410.2 kB / 498.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4907, allocations: 0 / 498.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.368e-05/0.4908, allocations: 24 kB / 498.6 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.4908, allocations: 15.94 kB / 498.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000667/0.4915, allocations: 329.2 kB / 499 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.4941, allocations: 1.6 MB / 0.4888 GB, free: 8.531 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000654/0.4948, allocations: 389.5 kB / 0.4892 GB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.4951, allocations: 165.4 kB / 0.4893 GB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.4952, allocations: 13.14 kB / 0.4894 GB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.4952, allocations: 38.89 kB / 0.4894 GB, free: 7.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 2.154e-06/0.4952, allocations: 0 / 0.4894 GB, free: 7.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.002943/0.4982, allocations: 1.051 MB / 0.4904 GB, free: 6.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.4982, allocations: 55.97 kB / 0.4905 GB, free: 6.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.4987, allocations: 358.8 kB / 0.4908 GB, free: 6.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.4987, allocations: 37.7 kB / 0.4909 GB, free: 6.367 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002305/0.499, allocations: 303.8 kB / 0.4911 GB, free: 6.066 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.4991, allocations: 187.5 kB / 0.4913 GB, free: 5.883 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.4991, allocations: 12 kB / 0.4913 GB, free: 5.871 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.4994, allocations: 370.7 kB / 0.4917 GB, free: 5.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.4996, allocations: 141.6 kB / 0.4918 GB, free: 5.363 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003442/0.5, allocations: 260.4 kB / 0.4921 GB, free: 5.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.5003, allocations: 183.2 kB / 0.4922 GB, free: 4.891 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.5004, allocations: 0 / 0.4922 GB, free: 4.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001242/0.5016, allocations: 0.6795 MB / 0.4929 GB, free: 4.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.5017, allocations: 8 kB / 0.4929 GB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.5017, allocations: 4 kB / 0.4929 GB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005189/0.5022, allocations: 177.6 kB / 0.4931 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005407/0.5027, allocations: 119.8 kB / 0.4932 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.5068, allocations: 3.895 MB / 0.497 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005978/0.5074, allocations: 31.98 kB / 0.497 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.5075, allocations: 24 kB / 0.4971 GB, free: 15.68 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.0001604/0.5076, allocations: 144.9 kB / 0.4972 GB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.5077, allocations: 43.44 kB / 0.4972 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000147/0.5079, allocations: 60.86 kB / 0.4973 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.5079, allocations: 7.953 kB / 0.4973 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/0.5079, allocations: 4 kB / 0.4973 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.5079, allocations: 3.984 kB / 0.4973 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.51, allocations: 1.234 MB / 0.4985 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.51, allocations: 0 / 0.4985 GB, free: 14.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.5104, allocations: 67.95 kB / 0.4986 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003982/0.5108, allocations: 161.6 kB / 0.4987 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.5108, allocations: 12 kB / 0.4988 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003818/0.5146, allocations: 3.699 MB / 0.5024 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5146, allocations: 32 / 0.5024 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009967/0.5157, allocations: 0.6837 MB / 0.503 GB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.5158, allocations: 128.4 kB / 0.5032 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/0.5159, allocations: 15.94 kB / 0.5032 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.5163, allocations: 31.97 kB / 0.5032 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.5164, allocations: 40.38 kB / 0.5032 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.5164, allocations: 16 kB / 0.5033 GB, free: 8.902 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003292/0.5167, allocations: 277.2 kB / 0.5035 GB, free: 8.633 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5167, allocations: 0 / 0.5035 GB, free: 8.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007229/0.5175, allocations: 156 kB / 0.5037 GB, free: 8.48 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.001518/0.519, allocations: 1.52 MB / 0.5052 GB, free: 6.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.5202, allocations: 0.712 MB / 0.5058 GB, free: 6.168 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.5202, allocations: 112 / 0.5058 GB, free: 6.168 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.521, allocations: 0.4946 MB / 0.5063 GB, free: 5.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.5214, allocations: 36.19 kB / 0.5064 GB, free: 5.613 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.523, allocations: 0.7309 MB / 0.5071 GB, free: 4.832 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.5235, allocations: 0.8717 MB / 0.5079 GB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.5237, allocations: 48.36 kB / 0.508 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.5239, allocations: 175.4 kB / 0.5081 GB, free: 3.715 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5239, allocations: 0 / 0.5081 GB, free: 3.715 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.5473, allocations: 8.984 MB / 0.5169 GB, free: 11 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002905/0.5476, allocations: 201.3 kB / 0.5171 GB, free: 10.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.079, allocations: 1.875 kB / 0.5171 GB, free: 10.77 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat