Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000901/0.000901, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000821/0.000821, allocations: 170.3 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8707/0.8707, allocations: 158.6 MB / 185 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1297/0.1297, allocations: 32.36 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.FluxTubes.Sources,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 406.8 MB, free: 2.277 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.735e-05, allocations: 6.219 kB / 406.8 MB, free: 2.27 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.0024/0.002417, allocations: 2.458 MB / 409.3 MB, free: 15.8 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009656/0.003383, allocations: 0.7486 MB / 410 MB, free: 15.04 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.003509, allocations: 4 kB / 410 MB, free: 15.04 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.003688, allocations: 79.3 kB / 410.1 MB, free: 14.96 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.003866, allocations: 107.1 kB / 410.2 MB, free: 14.85 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.004085, allocations: 107.8 kB / 410.3 MB, free: 14.75 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002966/0.004382, allocations: 430.1 kB / 410.7 MB, free: 14.32 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.004541, allocations: 99.84 kB / 410.8 MB, free: 14.22 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002416/0.004782, allocations: 235.5 kB / 411.1 MB, free: 13.99 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.004883, allocations: 115.7 kB / 411.2 MB, free: 13.88 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.04e-05/0.004923, allocations: 39.94 kB / 411.2 MB, free: 13.84 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.682e-05/0.00495, allocations: 32 kB / 411.2 MB, free: 13.81 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 3.928e-05/0.004989, allocations: 71.73 kB / 411.3 MB, free: 13.74 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 7.189e-05/0.005061, allocations: 123.7 kB / 411.4 MB, free: 13.62 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002711/0.005332, allocations: 430.5 kB / 411.9 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005335, allocations: 0 / 411.9 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.005336, allocations: 0 / 411.9 MB, free: 13.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.005342, allocations: 4 kB / 411.9 MB, free: 13.19 MB / 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.0006255/0.005967, allocations: 0.5949 MB / 412.5 MB, free: 12.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.006004, allocations: 8.031 kB / 412.5 MB, free: 12.56 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.009e-05/0.006054, allocations: 70.72 kB / 412.5 MB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.006102, allocations: 44.66 kB / 412.6 MB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/0.00658, allocations: 226 kB / 412.8 MB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.006597, allocations: 29.31 kB / 412.8 MB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.006625, allocations: 36.38 kB / 412.9 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.007029, allocations: 366.7 kB / 413.2 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.007039, allocations: 0 / 413.2 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.007063, allocations: 16 kB / 413.2 MB, free: 11.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.007071, allocations: 8 kB / 413.2 MB, free: 11.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.007411, allocations: 263.8 kB / 413.5 MB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.008524, allocations: 1.216 MB / 414.7 MB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.008808, allocations: 190.5 kB / 414.9 MB, free: 9.938 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.008911, allocations: 75.56 kB / 415 MB, free: 9.852 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.008934, allocations: 7.984 kB / 415 MB, free: 9.844 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.008952, allocations: 42.5 kB / 415 MB, free: 9.793 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.008953, allocations: 0 / 415 MB, free: 9.793 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.000424/0.009377, allocations: 261.2 kB / 415.3 MB, free: 9.531 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.009422, allocations: 132.5 kB / 415.4 MB, free: 9.371 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.009635, allocations: 336.4 kB / 415.7 MB, free: 9.039 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.009648, allocations: 25.7 kB / 415.8 MB, free: 9.008 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.9e-05/0.009747, allocations: 240.2 kB / 416 MB, free: 8.766 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.009774, allocations: 59.47 kB / 416.1 MB, free: 8.707 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.009829, allocations: 62.06 kB / 416.1 MB, free: 8.641 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.229e-05/0.009911, allocations: 338.8 kB / 416.4 MB, free: 8.301 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.01003, allocations: 76.5 kB / 416.5 MB, free: 8.227 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.01018, allocations: 168.2 kB / 416.7 MB, free: 8.023 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002667/0.01045, allocations: 250.9 kB / 416.9 MB, free: 7.738 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.01045, allocations: 3.938 kB / 416.9 MB, free: 7.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003417/0.0108, allocations: 309.1 kB / 417.2 MB, free: 7.426 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.01081, allocations: 8 kB / 417.2 MB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.01081, allocations: 0 / 417.2 MB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.01083, allocations: 8 kB / 417.3 MB, free: 7.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.01102, allocations: 96.11 kB / 417.3 MB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.01103, allocations: 4 kB / 417.3 MB, free: 7.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.01115, allocations: 47.7 kB / 417.4 MB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.01116, allocations: 12 kB / 417.4 MB, free: 7.254 MB / 394.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.372e-05/0.01125, allocations: 153.6 kB / 417.6 MB, free: 7.094 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.0113, allocations: 31.81 kB / 417.6 MB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.01134, allocations: 34.56 kB / 417.6 MB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.01135, allocations: 4 kB / 417.6 MB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.01135, allocations: 0 / 417.6 MB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01136, allocations: 7.984 kB / 417.6 MB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005111/0.01187, allocations: 0.5321 MB / 418.2 MB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.01187, allocations: 0.5625 kB / 418.2 MB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.01201, allocations: 55.94 kB / 418.2 MB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.01202, allocations: 7.938 kB / 418.2 MB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.01203, allocations: 8 kB / 418.2 MB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.01203, allocations: 8.156 kB / 418.2 MB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.01203, allocations: 7.875 kB / 418.3 MB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000296/0.01233, allocations: 394.7 kB / 418.6 MB, free: 5.914 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.855e-05/0.01236, allocations: 23.81 kB / 418.7 MB, free: 5.891 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.01238, allocations: 11.98 kB / 418.7 MB, free: 5.879 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.01249, allocations: 11.98 kB / 418.7 MB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.01253, allocations: 28.14 kB / 418.7 MB, free: 5.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.01254, allocations: 4 kB / 418.7 MB, free: 5.836 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.01268, allocations: 235 kB / 418.9 MB, free: 5.605 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01268, allocations: 0 / 418.9 MB, free: 5.605 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000243/0.01292, allocations: 75.83 kB / 419 MB, free: 5.531 MB / 394.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006964/0.01362, allocations: 0.9226 MB / 419.9 MB, free: 4.566 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002901/0.01391, allocations: 183.7 kB / 420.1 MB, free: 4.387 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01391, allocations: 0 / 420.1 MB, free: 4.387 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.01403, allocations: 80.64 kB / 420.2 MB, free: 4.309 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.01431, allocations: 25.48 kB / 420.2 MB, free: 4.285 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.01673, allocations: 2.961 MB / 423.2 MB, free: 1.129 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.01683, allocations: 168.8 kB / 423.4 MB, free: 0.9453 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.726e-05/0.01691, allocations: 21.94 kB / 423.4 MB, free: 0.9258 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.01702, allocations: 100.5 kB / 423.5 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01702, allocations: 0 / 423.5 MB, free: 0.8281 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.03282, allocations: 5.582 MB / 429.1 MB, free: 11.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.644/6.677, allocations: 7.844 kB / 429.1 MB, free: 11.22 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Sources.fmu > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.602227327413857]