Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.001664/0.001664, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002161/0.002161, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2195/0.2195, allocations: 44.91 MB / 358.8 MB, free: 6.312 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 63.91 kB / 0.4931 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3043, allocations: 65.47 MB / 0.557 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001504/0.3058, allocations: 497 kB / 0.5575 GB, free: 7.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.308, allocations: 1.366 MB / 0.5588 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.308, allocations: 0 / 0.5588 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.136e-05/0.3081, allocations: 4 kB / 0.5588 GB, free: 5.957 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001512/0.3082, allocations: 15.92 kB / 0.5588 GB, free: 5.941 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.3093, allocations: 260.8 kB / 0.5591 GB, free: 5.691 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.846e-05/0.3093, allocations: 4 kB / 0.5591 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.275e-05/0.3093, allocations: 3.984 kB / 0.5591 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.635e-05/0.3094, allocations: 7.984 kB / 0.5591 GB, free: 5.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.576e-05/0.3094, allocations: 7.938 kB / 0.5591 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.993e-06/0.3094, allocations: 0 / 0.5591 GB, free: 5.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.3137, allocations: 0.7422 MB / 0.5598 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.795e-06/0.3137, allocations: 0 / 0.5598 GB, free: 5.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.159e-05/0.3137, allocations: 4 kB / 0.5598 GB, free: 5.047 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.3141, allocations: 177.6 kB / 0.56 GB, free: 4.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3141, allocations: 0 / 0.56 GB, free: 4.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.3141, allocations: 4 kB / 0.56 GB, free: 4.871 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.3141, allocations: 0 / 0.56 GB, free: 4.871 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004019/0.3145, allocations: 323.6 kB / 0.5603 GB, free: 4.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.3145, allocations: 8.031 kB / 0.5603 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.684e-05/0.3145, allocations: 34.69 kB / 0.5604 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.271e-05/0.3146, allocations: 0.9375 kB / 0.5604 GB, free: 4.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3147, allocations: 106.5 kB / 0.5605 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.3147, allocations: 384 / 0.5605 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-06/0.3147, allocations: 384 / 0.5605 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.982e-05/0.3148, allocations: 41.62 kB / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.3148, allocations: 0 / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.3148, allocations: 0 / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3148, allocations: 0 / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.456e-05/0.3148, allocations: 0 / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.3149, allocations: 120.8 kB / 0.5606 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.363e-05/0.315, allocations: 22.55 kB / 0.5606 GB, free: 4.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.669e-05/0.315, allocations: 8.844 kB / 0.5606 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.876e-06/0.315, allocations: 7.938 kB / 0.5606 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.3151, allocations: 56.27 kB / 0.5607 GB, free: 4.012 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 3.236e-06/0.3151, allocations: 3.984 kB / 0.5607 GB, free: 4.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001678/0.3152, allocations: 67.47 kB / 0.5608 GB, free: 3.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.3153, allocations: 81.05 kB / 0.5608 GB, free: 3.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.631e-05/0.3154, allocations: 101.8 kB / 0.5609 GB, free: 3.723 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.687e-05/0.3154, allocations: 25.95 kB / 0.561 GB, free: 3.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.386e-05/0.3154, allocations: 84.14 kB / 0.561 GB, free: 3.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.3154, allocations: 0 / 0.561 GB, free: 3.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.3155, allocations: 17.72 kB / 0.5611 GB, free: 3.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3156, allocations: 310.8 kB / 0.5614 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.892e-05/0.3156, allocations: 0 / 0.5614 GB, free: 3.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.735e-06/0.3156, allocations: 0 / 0.5614 GB, free: 3.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.926e-05/0.3157, allocations: 64.25 kB / 0.5614 GB, free: 3.191 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3157, allocations: 4.062 kB / 0.5614 GB, free: 3.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.247e-05/0.3158, allocations: 75.23 kB / 0.5615 GB, free: 3.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3158, allocations: 37.64 kB / 0.5615 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3158, allocations: 0 / 0.5615 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.3158, allocations: 0 / 0.5615 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.328e-06/0.3158, allocations: 3.984 kB / 0.5615 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.3158, allocations: 0 / 0.5615 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.828e-05/0.3158, allocations: 4 kB / 0.5615 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-06/0.3158, allocations: 0 / 0.5615 GB, free: 3.051 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.519e-05/0.3159, allocations: 135.6 kB / 0.5617 GB, free: 2.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.3159, allocations: 7.938 kB / 0.5617 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.117e-05/0.316, allocations: 3.156 kB / 0.5617 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.316, allocations: 0 / 0.5617 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.316, allocations: 0 / 0.5617 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.316, allocations: 0 / 0.5617 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.3161, allocations: 124.8 kB / 0.5618 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3161, allocations: 7.938 kB / 0.5618 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.3161, allocations: 0 / 0.5618 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.3161, allocations: 0 / 0.5618 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-06/0.3161, allocations: 0 / 0.5618 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.3161, allocations: 4 kB / 0.5618 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.3161, allocations: 0 / 0.5618 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.3162, allocations: 98.77 kB / 0.5619 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.522e-06/0.3162, allocations: 3.938 kB / 0.5619 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.3162, allocations: 0 / 0.5619 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.119e-05/0.3162, allocations: 0 / 0.5619 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.294e-05/0.3162, allocations: 4 kB / 0.5619 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.3162, allocations: 8.016 kB / 0.5619 GB, free: 2.574 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.166e-05/0.3163, allocations: 75.28 kB / 0.562 GB, free: 2.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3163, allocations: 0 / 0.562 GB, free: 2.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.3166, allocations: 67.8 kB / 0.5621 GB, free: 2.434 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001068/0.3176, allocations: 0.8657 MB / 0.5629 GB, free: 1.602 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.3178, allocations: 63.34 kB / 0.563 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.3178, allocations: 0 / 0.563 GB, free: 1.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.69e-05/0.3178, allocations: 55.41 kB / 0.563 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.3179, allocations: 13.84 kB / 0.563 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.3183, allocations: 138.5 kB / 0.5632 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.3185, allocations: 0.6728 MB / 0.5638 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.314e-06/0.3186, allocations: 0 / 0.5638 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.488e-05/0.3186, allocations: 19.5 kB / 0.5638 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3186, allocations: 0 / 0.5638 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/0.3495, allocations: 2.653 MB / 0.5664 GB, free: 14.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.38, allocations: 17.7 kB / 0.5664 GB, free: 14.03 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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: 14.336971399003232]