Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_FluxTubes_Sources",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.0008841/0.0008841, allocations: 179.5 kB / 16.72 MB, free: 5.078 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.23/1.23, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007226/0.0007226, allocations: 82.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2986/0.2986, allocations: 43.57 MB / 363.1 MB, free: 51.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003311/0.0003311, allocations: 12 kB / 432.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09909/0.09944, allocations: 58.85 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.002547/0.102, allocations: 2.197 MB / 493.1 MB, free: 8.336 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1032, allocations: 0.7528 MB / 493.9 MB, free: 7.574 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1033, allocations: 4 kB / 493.9 MB, free: 7.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1035, allocations: 55.62 kB / 493.9 MB, free: 7.516 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.1037, allocations: 79.42 kB / 494 MB, free: 7.438 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.1039, allocations: 75.92 kB / 494.1 MB, free: 7.363 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.1043, allocations: 378.5 kB / 494.4 MB, free: 6.992 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.1045, allocations: 124.5 kB / 494.6 MB, free: 6.867 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.1047, allocations: 123.5 kB / 494.7 MB, free: 6.746 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1049, allocations: 151.2 kB / 494.8 MB, free: 6.598 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.1049, allocations: 20 kB / 494.9 MB, free: 6.578 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.467e-05/0.105, allocations: 16 kB / 494.9 MB, free: 6.562 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.323e-05/0.105, allocations: 59.77 kB / 494.9 MB, free: 6.504 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.1052, allocations: 176.8 kB / 495.1 MB, free: 6.324 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.1055, allocations: 307.1 kB / 495.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1055, allocations: 0 / 495.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1055, allocations: 0 / 495.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1055, allocations: 8 kB / 495.4 MB, free: 6.016 MB / 378.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.0009401/0.1064, allocations: 0.6124 MB / 496 MB, free: 5.352 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.1065, allocations: 8.031 kB / 496 MB, free: 5.344 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.099e-05/0.1066, allocations: 70.72 kB / 496.1 MB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.1066, allocations: 44.38 kB / 496.1 MB, free: 5.223 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.1069, allocations: 272.6 kB / 496.4 MB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1069, allocations: 25.38 kB / 496.4 MB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.107, allocations: 36.38 kB / 496.5 MB, free: 4.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.1077, allocations: 373.9 kB / 496.8 MB, free: 4.469 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1077, allocations: 7.938 kB / 496.8 MB, free: 4.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.1077, allocations: 12 kB / 496.9 MB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1077, allocations: 8 kB / 496.9 MB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006298/0.1084, allocations: 291.7 kB / 497.1 MB, free: 4.156 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001901/0.1103, allocations: 1.358 MB / 498.5 MB, free: 2.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.1108, allocations: 206.6 kB / 498.7 MB, free: 2.469 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002149/0.111, allocations: 99.56 kB / 498.8 MB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.1111, allocations: 3.938 kB / 498.8 MB, free: 2.355 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.1111, allocations: 42.55 kB / 498.9 MB, free: 2.305 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 1.944e-06/0.1111, allocations: 0 / 498.9 MB, free: 2.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007898/0.1119, allocations: 277.2 kB / 499.1 MB, free: 2.027 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.599e-05/0.112, allocations: 132.5 kB / 499.3 MB, free: 1.867 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.1123, allocations: 332.4 kB / 499.6 MB, free: 1.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1123, allocations: 25.7 kB / 499.6 MB, free: 1.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.1125, allocations: 231.7 kB / 499.8 MB, free: 1.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.1125, allocations: 55.23 kB / 499.9 MB, free: 1.219 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.1125, allocations: 8 kB / 499.9 MB, free: 1.211 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1127, allocations: 346.7 kB / 0.4885 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.1129, allocations: 88.5 kB / 0.4886 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.1132, allocations: 180.1 kB / 0.4888 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.1138, allocations: 274.9 kB / 0.489 GB, free: 260 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1138, allocations: 0 / 0.489 GB, free: 260 kB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.1722/0.286, allocations: 319.2 kB / 0.4893 GB, free: 42.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.2861, allocations: 7.438 kB / 0.4893 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.2861, allocations: 2.656 kB / 0.4893 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.2861, allocations: 11.72 kB / 0.4893 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.2866, allocations: 105.4 kB / 0.4894 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.2866, allocations: 9.078 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.2869, allocations: 48.36 kB / 0.4895 GB, free: 42.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.287, allocations: 12.09 kB / 0.4895 GB, free: 42.48 MB / 378.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 () * Number of clocked 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.0001611/0.2871, allocations: 154.3 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.2872, allocations: 32.52 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.569e-05/0.2873, allocations: 36.77 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2873, allocations: 3.438 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2873, allocations: 4.469 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2874, allocations: 2.094 kB / 0.4897 GB, free: 42.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007649/0.2881, allocations: 0.5852 MB / 0.4903 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2881, allocations: 2.844 kB / 0.4903 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002913/0.2884, allocations: 75.11 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2884, allocations: 2.375 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2885, allocations: 6.844 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.2885, allocations: 7.375 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2885, allocations: 2.766 kB / 0.4904 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005051/0.289, allocations: 415.9 kB / 0.4908 GB, free: 41.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.738e-05/0.2891, allocations: 111.6 kB / 0.4909 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.2891, allocations: 4.859 kB / 0.4909 GB, free: 41.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.2894, allocations: 26.92 kB / 0.4909 GB, free: 41.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.211e-05/0.2894, allocations: 14.03 kB / 0.4909 GB, free: 41.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.2895, allocations: 7.938 kB / 0.491 GB, free: 41.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002507/0.2897, allocations: 225.5 kB / 0.4912 GB, free: 41.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2897, allocations: 0 / 0.4912 GB, free: 41.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003792/0.2901, allocations: 74.73 kB / 0.4912 GB, free: 41.51 MB / 378.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 () * Number of clocked 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.0006469/0.2908, allocations: 0.9529 MB / 0.4922 GB, free: 40.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005403/0.2913, allocations: 211.5 kB / 0.4924 GB, free: 40.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2913, allocations: 1.031 kB / 0.4924 GB, free: 40.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.2916, allocations: 93.69 kB / 0.4925 GB, free: 40.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.292, allocations: 25.06 kB / 0.4925 GB, free: 40.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.2948, allocations: 1.763 MB / 0.4942 GB, free: 39.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.295, allocations: 0.7733 MB / 0.495 GB, free: 39.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.2952, allocations: 103.9 kB / 0.4951 GB, free: 39.17 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2952, allocations: 5.281 kB / 0.4951 GB, free: 39.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.463/2.758, allocations: 4.154 MB / 0.4991 GB, free: 38.82 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_FluxTubes_Sources.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches