Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.001435/0.001435, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.5 MB / 230.7 MB, free: 7.562 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.0008615/0.0008615, allocations: 99.47 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2306/0.2306, allocations: 44.16 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.661e-05, allocations: 4.219 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 61.92 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4146/0.5371, allocations: 88.72 MB / 0.5814 GB, free: 7.617 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.5375, allocations: 75.94 kB / 0.5815 GB, free: 7.543 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02636/0.5639, allocations: 7.128 MB / 0.5884 GB, free: 416 kB / 394.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.5639, allocations: 3.938 kB / 0.5885 GB, free: 412 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.5639, allocations: 8 kB / 0.5885 GB, free: 404 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0012/0.5651, allocations: 0.5919 MB / 0.589 GB, free: 15.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.5652, allocations: 11.98 kB / 0.589 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.5653, allocations: 39.53 kB / 0.5891 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.5658, allocations: 276.3 kB / 0.5894 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.5658, allocations: 8 kB / 0.5894 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.051e-05/0.5658, allocations: 24 kB / 0.5894 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005405/0.5664, allocations: 193.5 kB / 0.5896 GB, free: 15.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006345/0.567, allocations: 274.3 kB / 0.5898 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.5671, allocations: 4 kB / 0.5898 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.5671, allocations: 3.984 kB / 0.5898 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.5671, allocations: 8 kB / 0.5898 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.5694, allocations: 1.212 MB / 0.591 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.5699, allocations: 158.5 kB / 0.5912 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.57, allocations: 55.62 kB / 0.5912 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.5701, allocations: 3.938 kB / 0.5912 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.5701, allocations: 46.53 kB / 0.5913 GB, free: 13.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.773e-06/0.5701, allocations: 0 / 0.5913 GB, free: 13.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004488/0.5706, allocations: 125.3 kB / 0.5914 GB, free: 13.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.5707, allocations: 132.5 kB / 0.5915 GB, free: 12.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.571, allocations: 230.3 kB / 0.5917 GB, free: 12.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.571, allocations: 25.7 kB / 0.5918 GB, free: 12.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.5712, allocations: 247.7 kB / 0.592 GB, free: 12.47 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.5713, allocations: 51.2 kB / 0.5921 GB, free: 12.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.437e-05/0.5713, allocations: 4 kB / 0.5921 GB, free: 12.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.5715, allocations: 334.8 kB / 0.5924 GB, free: 12.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.5716, allocations: 48.56 kB / 0.5924 GB, free: 12.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.5719, allocations: 135.9 kB / 0.5926 GB, free: 11.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.572, allocations: 63.97 kB / 0.5926 GB, free: 11.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.572, allocations: 0 / 0.5926 GB, free: 11.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005095/0.5726, allocations: 229.2 kB / 0.5928 GB, free: 11.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.5726, allocations: 8 kB / 0.5928 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.5726, allocations: 4 kB / 0.5928 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.5726, allocations: 4 kB / 0.5928 GB, free: 11.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004631/0.5731, allocations: 84.14 kB / 0.5929 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.5731, allocations: 7.984 kB / 0.5929 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.5735, allocations: 43.61 kB / 0.593 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.5736, allocations: 8 kB / 0.593 GB, free: 11.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001466/0.5737, allocations: 116.9 kB / 0.5931 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003659/0.5741, allocations: 133.3 kB / 0.5932 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.5742, allocations: 23.91 kB / 0.5932 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.198e-05/0.5743, allocations: 29.64 kB / 0.5933 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.5744, allocations: 7.984 kB / 0.5933 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.5744, allocations: 0 / 0.5933 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.5744, allocations: 0 / 0.5933 GB, free: 11.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.5754, allocations: 0.5412 MB / 0.5938 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.5754, allocations: 4 kB / 0.5938 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.5757, allocations: 39.97 kB / 0.5939 GB, free: 10.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.5757, allocations: 4 kB / 0.5939 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.5758, allocations: 0 / 0.5939 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.5758, allocations: 7.938 kB / 0.5939 GB, free: 10.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/0.5758, allocations: 8.047 kB / 0.5939 GB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004456/0.5763, allocations: 405.1 kB / 0.5943 GB, free: 9.953 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.661e-05/0.5764, allocations: 100.8 kB / 0.5944 GB, free: 9.836 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.634e-05/0.5764, allocations: 4 kB / 0.5944 GB, free: 9.832 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.5768, allocations: 24.16 kB / 0.5944 GB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.592e-05/0.5769, allocations: 23.88 kB / 0.5944 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.5769, allocations: 8 kB / 0.5944 GB, free: 9.777 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002278/0.5771, allocations: 178 kB / 0.5946 GB, free: 9.609 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5771, allocations: 0 / 0.5946 GB, free: 9.609 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006114/0.5778, allocations: 71.69 kB / 0.5946 GB, free: 9.539 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0009582/0.5787, allocations: 1.341 MB / 0.596 GB, free: 8.133 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003447/0.5791, allocations: 128.3 kB / 0.5961 GB, free: 8.008 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.5791, allocations: 4.062 kB / 0.5961 GB, free: 8.004 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.5792, allocations: 51.88 kB / 0.5961 GB, free: 7.953 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.5797, allocations: 16.84 kB / 0.5962 GB, free: 7.934 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.581, allocations: 404.9 kB / 0.5965 GB, free: 7.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.5814, allocations: 0.7791 MB / 0.5973 GB, free: 6.672 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001653/0.5816, allocations: 17.84 kB / 0.5973 GB, free: 6.656 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.5818, allocations: 103.4 kB / 0.5974 GB, free: 6.555 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5818, allocations: 0 / 0.5974 GB, free: 6.555 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.6066, allocations: 3.623 MB / 0.601 GB, free: 2.953 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.6068, allocations: 126.6 kB / 0.6011 GB, free: 2.766 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.474, allocations: 0 / 0.6011 GB, free: 2.766 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat