Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.00097/0.00097, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.311/1.311, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007866/0.0007866, allocations: 74.72 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.379e-05, allocations: 11.94 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08386/0.0839, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/0.3973, allocations: 90.72 MB / 460.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.3976, allocations: 82.27 kB / 460.9 MB, free: 2.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07252/0.4701, allocations: 30.61 MB / 491.5 MB, free: 4.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4702, allocations: 0 / 491.5 MB, free: 4.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.644e-05/0.4702, allocations: 16 kB / 491.6 MB, free: 4.895 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.003424/0.4736, allocations: 1.259 MB / 492.8 MB, free: 3.586 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4737, allocations: 12.03 kB / 492.8 MB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003528/0.474, allocations: 171.6 kB / 493 MB, free: 3.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002834/0.4769, allocations: 470.2 kB / 493.5 MB, free: 2.934 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.4778, allocations: 0.4919 MB / 493.9 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.541e-05/0.4779, allocations: 86.3 kB / 494 MB, free: 2.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.4781, allocations: 119.9 kB / 494.1 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/0.4799, allocations: 0.9601 MB / 495.1 MB, free: 1.203 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.318e-05/0.4799, allocations: 4 kB / 495.1 MB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.48, allocations: 47.98 kB / 495.2 MB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/0.4801, allocations: 31.98 kB / 495.2 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.4818, allocations: 0.9697 MB / 496.2 MB, free: 148 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006326/0.4882, allocations: 3.907 MB / 0.4883 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/0.4902, allocations: 2.027 MB / 0.4903 GB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006477/0.4909, allocations: 423.7 kB / 0.4907 GB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.491, allocations: 97.94 kB / 0.4908 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007121/0.4918, allocations: 469.5 kB / 0.4913 GB, free: 8.684 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.596e-06/0.4918, allocations: 0 / 0.4913 GB, free: 8.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.007211/0.499, allocations: 3.492 MB / 0.4947 GB, free: 5.109 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.4991, allocations: 230.8 kB / 0.4949 GB, free: 4.836 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004396/0.4996, allocations: 359 kB / 0.4952 GB, free: 4.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.449e-05/0.4997, allocations: 53.69 kB / 0.4953 GB, free: 4.422 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.5, allocations: 435.4 kB / 0.4957 GB, free: 3.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000305/0.5003, allocations: 417.9 kB / 0.4961 GB, free: 3.574 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.5004, allocations: 24 kB / 0.4961 GB, free: 3.551 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.5005, allocations: 390.6 kB / 0.4965 GB, free: 3.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005545/0.5011, allocations: 322.6 kB / 0.4968 GB, free: 2.844 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007036/0.5018, allocations: 0.5548 MB / 0.4974 GB, free: 2.195 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006749/0.5025, allocations: 418.1 kB / 0.4977 GB, free: 1.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5025, allocations: 4 kB / 0.4978 GB, free: 1.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00221/0.5047, allocations: 1.353 MB / 0.4991 GB, free: 424 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.5047, allocations: 8.188 kB / 0.4991 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.5048, allocations: 8 kB / 0.4991 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008397/0.5056, allocations: 355.9 kB / 0.4994 GB, free: 40 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008487/0.5065, allocations: 207.7 kB / 0.4996 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00736/0.5139, allocations: 7.65 MB / 0.5071 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008302/0.5147, allocations: 60.03 kB / 0.5072 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.5149, allocations: 48 kB / 0.5072 GB, free: 7.543 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002556/0.5151, allocations: 176.5 kB / 0.5074 GB, free: 7.363 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.5153, allocations: 75.06 kB / 0.5074 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.5176, allocations: 1.227 MB / 0.5086 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.5176, allocations: 12 kB / 0.5087 GB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/0.5177, allocations: 8 kB / 0.5087 GB, free: 6.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5177, allocations: 11.94 kB / 0.5087 GB, free: 6.012 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004174/0.5219, allocations: 2.646 MB / 0.5113 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.5219, allocations: 0 / 0.5113 GB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006761/0.5226, allocations: 155.9 kB / 0.5114 GB, free: 3.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008175/0.5234, allocations: 327.2 kB / 0.5117 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.837e-05/0.5235, allocations: 27.98 kB / 0.5117 GB, free: 2.773 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006934/0.5304, allocations: 7.392 MB / 0.519 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5305, allocations: 0 / 0.519 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.5332, allocations: 1.758 MB / 0.5207 GB, free: 9.031 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/0.5336, allocations: 224.1 kB / 0.5209 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.5337, allocations: 24 kB / 0.5209 GB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/0.5343, allocations: 35.98 kB / 0.5209 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/0.5345, allocations: 104.8 kB / 0.521 GB, free: 8.629 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.5346, allocations: 32 kB / 0.5211 GB, free: 8.598 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003423/0.535, allocations: 273.2 kB / 0.5213 GB, free: 8.336 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.535, allocations: 0 / 0.5213 GB, free: 8.336 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001279/0.5363, allocations: 332 kB / 0.5217 GB, free: 8.012 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003389/0.5397, allocations: 2.696 MB / 0.5243 GB, free: 5.246 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002436/0.5421, allocations: 1.562 MB / 0.5258 GB, free: 3.629 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5421, allocations: 3.938 kB / 0.5258 GB, free: 3.625 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.5436, allocations: 1.114 MB / 0.5269 GB, free: 2.461 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.544, allocations: 59.28 kB / 0.527 GB, free: 2.406 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006356/0.5504, allocations: 2.176 MB / 0.5291 GB, free: 184 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1865/0.7369, allocations: 1.046 MB / 0.5301 GB, free: 113.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007423/0.7376, allocations: 103.4 kB / 0.5302 GB, free: 113.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000611/0.7383, allocations: 359 kB / 0.5305 GB, free: 113.1 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/0.7383, allocations: 0 / 0.5305 GB, free: 113.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0371/0.7754, allocations: 17.65 MB / 0.5478 GB, free: 112.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/0.7756, allocations: 209.6 kB / 0.548 GB, free: 112 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.387/3.163, allocations: 0 / 0.548 GB, free: 112 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat