Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",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.001509/0.001513, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.905/1.905, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.00114/0.001139, allocations: 104 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.000382, allocations: 8 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3323, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.4611, allocations: 79.25 MB / 453.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.4614, allocations: 71.97 kB / 454 MB, free: 1.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0325/0.4939, allocations: 6.965 MB / 460.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.494, allocations: 0 / 460.9 MB, free: 10.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.734e-05/0.494, allocations: 4 kB / 460.9 MB, free: 10.41 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001292/0.4953, allocations: 0.554 MB / 461.5 MB, free: 9.805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.4954, allocations: 8.031 kB / 461.5 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.4955, allocations: 62.55 kB / 461.5 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.973e-05/0.4956, allocations: 31.62 kB / 461.6 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.4961, allocations: 267.4 kB / 461.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.401e-05/0.4961, allocations: 24.52 kB / 461.9 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.863e-05/0.4962, allocations: 27.94 kB / 461.9 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007716/0.497, allocations: 248.9 kB / 462.1 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.497, allocations: 0 / 462.1 MB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.4971, allocations: 16 kB / 462.1 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4971, allocations: 4 kB / 462.2 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007911/0.4979, allocations: 222.1 kB / 462.4 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.5005, allocations: 1.017 MB / 463.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007064/0.5012, allocations: 206.4 kB / 463.6 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.5013, allocations: 4 kB / 463.6 MB, free: 7.539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.5013, allocations: 34.56 kB / 463.6 MB, free: 7.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.515e-06/0.5013, allocations: 4 kB / 463.6 MB, free: 7.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.00847/0.5098, allocations: 1.499 MB / 465.1 MB, free: 5.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.5099, allocations: 59.34 kB / 465.2 MB, free: 5.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.5102, allocations: 200.2 kB / 465.4 MB, free: 5.645 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.83e-05/0.5103, allocations: 33.7 kB / 465.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.5105, allocations: 234.6 kB / 465.6 MB, free: 5.375 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.5106, allocations: 118.3 kB / 465.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.535e-05/0.5107, allocations: 8 kB / 465.8 MB, free: 5.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5108, allocations: 326.8 kB / 466.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.5113, allocations: 115.9 kB / 466.2 MB, free: 4.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000466/0.5118, allocations: 156.5 kB / 466.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004821/0.5123, allocations: 137.4 kB / 466.5 MB, free: 4.504 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5123, allocations: 4 kB / 466.5 MB, free: 4.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002834/0.5151, allocations: 0.5202 MB / 467 MB, free: 3.969 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.5152, allocations: 8 kB / 467 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.5152, allocations: 0 / 467 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/0.5178, allocations: 257.4 kB / 467.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005348/0.5183, allocations: 55.91 kB / 467.3 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007595/0.5259, allocations: 3.787 MB / 471.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004468/0.5264, allocations: 24.17 kB / 471.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.5265, allocations: 11.94 kB / 471.1 MB, free: 15.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 26 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002661/0.5268, allocations: 149.8 kB / 471.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.053e-05/0.5269, allocations: 27.62 kB / 471.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.527, allocations: 38.95 kB / 471.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.527, allocations: 4 kB / 471.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.5271, allocations: 0 / 471.4 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5271, allocations: 7.938 kB / 471.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000674/0.5278, allocations: 385.4 kB / 471.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5278, allocations: 0 / 471.7 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.5282, allocations: 39.97 kB / 471.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002462/0.5307, allocations: 253.9 kB / 472 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.5307, allocations: 4 kB / 472 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/0.5376, allocations: 3.686 MB / 475.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5376, allocations: 0 / 475.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/0.5409, allocations: 0.7231 MB / 476.4 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.541, allocations: 104.8 kB / 476.5 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.766e-05/0.5411, allocations: 4.094 kB / 476.6 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.5415, allocations: 20 kB / 476.6 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.5417, allocations: 35.84 kB / 476.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.5417, allocations: 8 kB / 476.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002465/0.542, allocations: 164.5 kB / 476.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.542, allocations: 0 / 476.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007854/0.5428, allocations: 104 kB / 476.9 MB, free: 9.453 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * 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 (18): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003667/0.5464, allocations: 1.276 MB / 478.2 MB, free: 8.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.5481, allocations: 0.5675 MB / 478.7 MB, free: 7.551 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.5481, allocations: 0 / 478.7 MB, free: 7.551 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009207/0.5491, allocations: 426 kB / 479.1 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.5494, allocations: 31.69 kB / 479.2 MB, free: 7.082 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006403/0.5558, allocations: 2.616 MB / 481.8 MB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.5563, allocations: 0.7917 MB / 482.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.5566, allocations: 95.39 kB / 482.7 MB, free: 3.469 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5566, allocations: 0 / 482.7 MB, free: 3.469 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.725/3.282, allocations: 7.053 MB / 489.7 MB, free: 12.41 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat