Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 182.2 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.922/1.922, allocations: 205.4 MB / 222.5 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 97.23 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000384/0.000384, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3352, allocations: 47.57 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.4733, allocations: 86.2 MB / 460.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.4737, allocations: 83.95 kB / 460.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04775/0.5215, allocations: 9.3 MB / 470.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5215, allocations: 0 / 470.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.005e-05/0.5216, allocations: 8 kB / 470.2 MB, free: 1.109 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002175/0.5238, allocations: 0.6588 MB / 470.9 MB, free: 412 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.5238, allocations: 8.031 kB / 470.9 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001392/0.524, allocations: 66.53 kB / 471 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.5241, allocations: 35.62 kB / 471 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006917/0.5248, allocations: 320.2 kB / 471.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.5249, allocations: 46.27 kB / 471.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.5252, allocations: 35.98 kB / 471.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.5262, allocations: 332.4 kB / 471.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.5263, allocations: 7.906 kB / 471.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.5263, allocations: 8 kB / 471.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.921e-05/0.5264, allocations: 8 kB / 471.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.5276, allocations: 306 kB / 472 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/0.5306, allocations: 1.17 MB / 473.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.5317, allocations: 309.5 kB / 473.5 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.414e-05/0.5318, allocations: 8 kB / 473.5 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.5318, allocations: 30.56 kB / 473.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 2.414e-06/0.5318, allocations: 0 / 473.5 MB, free: 13.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.02173/0.5536, allocations: 2.84 MB / 476.4 MB, free: 10.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.5537, allocations: 81.11 kB / 476.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005675/0.5542, allocations: 256.2 kB / 476.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/0.5544, allocations: 37.7 kB / 476.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.5545, allocations: 222.9 kB / 477 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.5547, allocations: 141.9 kB / 477.1 MB, free: 9.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.419e-05/0.5548, allocations: 16 kB / 477.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.555, allocations: 322.8 kB / 477.4 MB, free: 9.555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007317/0.5557, allocations: 168.8 kB / 477.6 MB, free: 9.391 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007797/0.5565, allocations: 233.8 kB / 477.8 MB, free: 9.148 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007867/0.5573, allocations: 189.5 kB / 478 MB, free: 8.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5573, allocations: 0 / 478 MB, free: 8.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001815/0.5592, allocations: 489.1 kB / 478.5 MB, free: 8.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.5592, allocations: 8 kB / 478.5 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.5592, allocations: 0 / 478.5 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.5593, allocations: 7.953 kB / 478.5 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.5604, allocations: 119.8 kB / 478.6 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.101e-05/0.5604, allocations: 8.062 kB / 478.6 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007603/0.5612, allocations: 39.92 kB / 478.7 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.849e-05/0.5613, allocations: 19.98 kB / 478.7 MB, free: 8.281 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002896/0.5616, allocations: 149.7 kB / 478.8 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.5617, allocations: 31.62 kB / 478.9 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004214/0.566, allocations: 0.7305 MB / 479.6 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.566, allocations: 4 kB / 479.6 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.5661, allocations: 7.984 kB / 479.6 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.5661, allocations: 0 / 479.6 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005908/0.572, allocations: 1.314 MB / 480.9 MB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.5721, allocations: 4 kB / 480.9 MB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.573, allocations: 95.88 kB / 481 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003201/0.5762, allocations: 284.5 kB / 481.3 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5764, allocations: 12 kB / 481.3 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007021/0.5834, allocations: 2.315 MB / 483.6 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.5835, allocations: 4.141 kB / 483.6 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004372/0.5878, allocations: 1.067 MB / 484.7 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/0.5882, allocations: 148.7 kB / 484.8 MB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.36e-05/0.5883, allocations: 12 kB / 484.8 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007986/0.5892, allocations: 35.97 kB / 484.9 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.5894, allocations: 40.33 kB / 484.9 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.5894, allocations: 16 kB / 484.9 MB, free: 1.762 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000361/0.5898, allocations: 212.4 kB / 485.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5898, allocations: 0 / 485.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008388/0.5907, allocations: 131.9 kB / 485.3 MB, free: 1.426 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.004946/0.5956, allocations: 1.711 MB / 487 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.5974, allocations: 446.1 kB / 487.4 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5974, allocations: 0 / 487.4 MB, free: 15.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001226/0.5987, allocations: 389.2 kB / 487.8 MB, free: 14.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005642/0.5992, allocations: 36.38 kB / 487.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007727/0.607, allocations: 3.399 MB / 491.2 MB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004818/0.6075, allocations: 0.7972 MB / 492 MB, free: 10.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.608, allocations: 127.4 kB / 492.2 MB, free: 10.38 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.608, allocations: 0 / 492.2 MB, free: 10.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.607/3.215, allocations: 7.02 MB / 499.2 MB, free: 3.367 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat does not exist to compare? outputFormat=mat