Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000932/0.0009323, allocations: 98.39 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008882/0.0008883, allocations: 191.4 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.2 MB / 241.9 MB, free: 240 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.198/0.198, allocations: 44.22 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002826, allocations: 9.656 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1123, allocations: 61.92 MB / 471.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage): time 0.002311/0.1146, allocations: 1.947 MB / 473.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009376/0.1156, allocations: 0.5925 MB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.986e-05/0.1157, allocations: 4 kB / 474.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.048e-05/0.1157, allocations: 27.77 kB / 474.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.1159, allocations: 59.53 kB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1161, allocations: 63.92 kB / 474.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003109/0.1164, allocations: 319.2 kB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.1167, allocations: 110.9 kB / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1169, allocations: 111.6 kB / 474.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001988/0.1171, allocations: 127.5 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.1171, allocations: 16 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.591e-05/0.1171, allocations: 20 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.1172, allocations: 51.81 kB / 475.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.162e-05/0.1173, allocations: 77.58 kB / 475.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.1176, allocations: 275.5 kB / 475.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1176, allocations: 0 / 475.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1176, allocations: 3.938 kB / 475.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1176, allocations: 0 / 475.4 MB, free: 9.816 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0007674/0.1184, allocations: 0.5342 MB / 476 MB, free: 9.234 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.1184, allocations: 8.031 kB / 476 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.092e-05/0.1185, allocations: 74.47 kB / 476 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.626e-05/0.1186, allocations: 35.62 kB / 476.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.1187, allocations: 201.6 kB / 476.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.1188, allocations: 28.66 kB / 476.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.1189, allocations: 35.95 kB / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.1193, allocations: 274.1 kB / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1194, allocations: 0 / 476.6 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.1194, allocations: 19.94 kB / 476.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.1194, allocations: 8 kB / 476.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.1198, allocations: 210.5 kB / 476.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.1214, allocations: 1.028 MB / 477.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.305e-05/0.1215, allocations: 30.53 kB / 477.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.783e-05/0.1216, allocations: 28.91 kB / 477.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.1216, allocations: 0 / 477.9 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1216, allocations: 34.56 kB / 478 MB, free: 7.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.1216, allocations: 0 / 478 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002164/0.1218, allocations: 77.36 kB / 478 MB, free: 7.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.1219, allocations: 51.41 kB / 478.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/0.1223, allocations: 322.8 kB / 478.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1223, allocations: 25.7 kB / 478.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.1225, allocations: 230.8 kB / 478.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.1225, allocations: 19.83 kB / 478.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.1225, allocations: 8.125 kB / 478.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1227, allocations: 326.8 kB / 479 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.1228, allocations: 67.97 kB / 479.1 MB, free: 5.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.123, allocations: 94.67 kB / 479.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.1231, allocations: 72.5 kB / 479.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1231, allocations: 0 / 479.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004327/0.1236, allocations: 241.3 kB / 479.5 MB, free: 5.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1236, allocations: 4 kB / 479.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.1236, allocations: 0 / 479.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.1236, allocations: 4 kB / 479.5 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.1239, allocations: 59.89 kB / 479.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.1239, allocations: 4 kB / 479.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002117/0.1241, allocations: 35.59 kB / 479.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1242, allocations: 4 kB / 479.6 MB, free: 5.434 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (30): * Single equations (assignments): 30 * 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.0001468/0.1243, allocations: 138.3 kB / 479.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.408e-05/0.1244, allocations: 27.66 kB / 479.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.799e-05/0.1244, allocations: 24.86 kB / 479.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1244, allocations: 0 / 479.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1244, allocations: 3.984 kB / 479.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1244, allocations: 0 / 479.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006529/0.1251, allocations: 0.515 MB / 480.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1251, allocations: 0 / 480.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.681e-05/0.1251, allocations: 4 kB / 480.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1252, allocations: 0 / 480.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.1252, allocations: 0 / 480.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.309e-06/0.1252, allocations: 4 kB / 480.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.1252, allocations: 0 / 480.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.1253, allocations: 113.6 kB / 480.4 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.1255, allocations: 100.8 kB / 480.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.1255, allocations: 4 kB / 480.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1257, allocations: 4 kB / 480.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.1257, allocations: 0 / 480.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.1257, allocations: 11.92 kB / 480.5 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000272/0.126, allocations: 218 kB / 480.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.126, allocations: 0 / 480.7 MB, free: 4.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.1263, allocations: 67.78 kB / 480.8 MB, free: 4.102 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (2): * Single equations (assignments): 2 * 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.0004256/0.1267, allocations: 0.6288 MB / 481.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002389/0.127, allocations: 123.8 kB / 481.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.127, allocations: 4.094 kB / 481.6 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.98e-05/0.127, allocations: 4 kB / 481.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.1273, allocations: 27.12 kB / 481.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.1291, allocations: 1.19 MB / 482.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.1296, allocations: 0.7443 MB / 483.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.1297, allocations: 17.94 kB / 483.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.1298, allocations: 79.41 kB / 483.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1298, allocations: 4 kB / 483.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.1452, allocations: 3.736 MB / 487.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.1454, allocations: 180.4 kB / 487.5 MB, free: 13.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.046, allocations: 4 kB / 487.5 MB, free: 13.34 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Leakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Leakage_res.mat does not exist to compare? outputFormat=mat