Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.001753/0.001753, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002172/0.002172, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.2288/0.2288, allocations: 44.91 MB / 358.8 MB, free: 6.305 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.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",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.002077/0.002077, allocations: 67.91 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3138, allocations: 65.47 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001522/0.3153, allocations: 487.1 kB / 0.5575 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000649/0.3159, allocations: 267.8 kB / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.316, allocations: 0 / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.316, allocations: 0 / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.709e-06/0.316, allocations: 5 kB / 0.5577 GB, free: 6.996 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000295/0.3163, allocations: 56.08 kB / 0.5578 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.352e-05/0.3163, allocations: 0.9688 kB / 0.5578 GB, free: 6.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.3164, allocations: 5.094 kB / 0.5578 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.3164, allocations: 5.141 kB / 0.5578 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.3164, allocations: 0.9062 kB / 0.5578 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.534e-06/0.3164, allocations: 0 / 0.5578 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.3165, allocations: 68.91 kB / 0.5579 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-06/0.3166, allocations: 0 / 0.5579 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.669e-05/0.3166, allocations: 1.219 kB / 0.5579 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.3167, allocations: 61.38 kB / 0.5579 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3167, allocations: 0 / 0.5579 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3167, allocations: 0 / 0.5579 GB, free: 6.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3167, allocations: 4 kB / 0.5579 GB, free: 6.859 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.0003434/0.3171, allocations: 282 kB / 0.5582 GB, free: 6.547 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3171, allocations: 8.031 kB / 0.5582 GB, free: 6.539 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.3171, allocations: 34.75 kB / 0.5582 GB, free: 6.496 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.456e-05/0.3172, allocations: 4.938 kB / 0.5582 GB, free: 6.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.25e-05/0.3172, allocations: 102.5 kB / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.222e-06/0.3172, allocations: 384 / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.3173, allocations: 4.312 kB / 0.5583 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.611e-05/0.3173, allocations: 38.19 kB / 0.5584 GB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.3173, allocations: 3.938 kB / 0.5584 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-06/0.3174, allocations: 4 kB / 0.5584 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.3174, allocations: 0 / 0.5584 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.545e-05/0.3174, allocations: 0 / 0.5584 GB, free: 6.312 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.3175, allocations: 120.8 kB / 0.5585 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.384e-05/0.3176, allocations: 14.58 kB / 0.5585 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.673e-05/0.3176, allocations: 8.953 kB / 0.5585 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.3176, allocations: 3.938 kB / 0.5585 GB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.951e-05/0.3177, allocations: 64.25 kB / 0.5586 GB, free: 6.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3177, allocations: 3.938 kB / 0.5586 GB, free: 6.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001814/0.3178, allocations: 67.34 kB / 0.5587 GB, free: 5.953 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3179, allocations: 77.11 kB / 0.5587 GB, free: 5.859 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.181e-05/0.318, allocations: 93.81 kB / 0.5588 GB, free: 5.758 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.318, allocations: 25.7 kB / 0.5588 GB, free: 5.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.31e-05/0.318, allocations: 80.14 kB / 0.5589 GB, free: 5.645 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.318, allocations: 4 kB / 0.5589 GB, free: 5.641 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.3181, allocations: 17.83 kB / 0.5589 GB, free: 5.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3182, allocations: 310.8 kB / 0.5592 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.3182, allocations: 4 kB / 0.5592 GB, free: 5.301 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.674e-06/0.3182, allocations: 3.938 kB / 0.5592 GB, free: 5.297 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.599e-05/0.3183, allocations: 64.27 kB / 0.5593 GB, free: 5.219 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3183, allocations: 0 / 0.5593 GB, free: 5.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.843e-05/0.3184, allocations: 63.39 kB / 0.5594 GB, free: 5.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.3184, allocations: 33.8 kB / 0.5594 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3184, allocations: 3.938 kB / 0.5594 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3184, allocations: 0 / 0.5594 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-07/0.3184, allocations: 0 / 0.5594 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.3184, allocations: 0 / 0.5594 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.726e-05/0.3184, allocations: 4 kB / 0.5594 GB, free: 5.098 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.3185, allocations: 0 / 0.5594 GB, free: 5.098 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 0.0001052/0.3186, allocations: 139.5 kB / 0.5595 GB, free: 4.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.3186, allocations: 7.984 kB / 0.5595 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.5e-05/0.3186, allocations: 14.92 kB / 0.5596 GB, free: 4.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3186, allocations: 3.938 kB / 0.5596 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3186, allocations: 0 / 0.5596 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-06/0.3186, allocations: 0 / 0.5596 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.3187, allocations: 112.8 kB / 0.5597 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3187, allocations: 4 kB / 0.5597 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.3187, allocations: 0 / 0.5597 GB, free: 4.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3187, allocations: 4 kB / 0.5597 GB, free: 4.758 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.3187, allocations: 7.875 kB / 0.5597 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.3187, allocations: 3.984 kB / 0.5597 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3187, allocations: 0 / 0.5597 GB, free: 4.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001062/0.3188, allocations: 90.84 kB / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-06/0.3188, allocations: 0 / 0.5598 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.3188, allocations: 11.86 kB / 0.5598 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.3188, allocations: 4 kB / 0.5598 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.585e-05/0.3189, allocations: 0 / 0.5598 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.3189, allocations: 0 / 0.5598 GB, free: 4.617 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.363e-05/0.3189, allocations: 75.28 kB / 0.5599 GB, free: 4.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3189, allocations: 4.031 kB / 0.5599 GB, free: 4.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.3191, allocations: 23.94 kB / 0.5599 GB, free: 4.516 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.0009898/0.3201, allocations: 0.8062 MB / 0.5607 GB, free: 3.742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.3202, allocations: 59.39 kB / 0.5607 GB, free: 3.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3202, allocations: 4.062 kB / 0.5607 GB, free: 3.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.727e-05/0.3203, allocations: 59.34 kB / 0.5608 GB, free: 3.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3204, allocations: 10.66 kB / 0.5608 GB, free: 3.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003102/0.3207, allocations: 118.6 kB / 0.5609 GB, free: 3.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.321, allocations: 0.6729 MB / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.321, allocations: 0 / 0.5616 GB, free: 2.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.321, allocations: 7.438 kB / 0.5616 GB, free: 2.727 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.321, allocations: 3.938 kB / 0.5616 GB, free: 2.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.348, allocations: 1.754 MB / 0.5633 GB, free: 1.102 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.7, allocations: 6.516 kB / 0.5633 GB, free: 1.098 MB / 398.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.580327412113547]