Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001797/0.001797, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002325/0.002325, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.501/1.501, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2326/0.2326, allocations: 46.94 MB / 361.7 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 67.89 kB / 0.4969 GB, free: 7.934 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2929, allocations: 66.04 MB / 0.5614 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001787/0.2947, allocations: 485.1 kB / 0.5619 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007793/0.2955, allocations: 273.5 kB / 0.5621 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.374e-05/0.2955, allocations: 0 / 0.5621 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.2955, allocations: 4 kB / 0.5621 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.725e-06/0.2955, allocations: 0 / 0.5621 GB, free: 3.727 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0004072/0.2959, allocations: 55.77 kB / 0.5622 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.041e-05/0.296, allocations: 0 / 0.5622 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.804e-05/0.296, allocations: 0 / 0.5622 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.945e-05/0.2961, allocations: 4 kB / 0.5622 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.219e-05/0.2961, allocations: 7.984 kB / 0.5622 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.2961, allocations: 0 / 0.5622 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001771/0.2963, allocations: 67.94 kB / 0.5623 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-06/0.2963, allocations: 0 / 0.5623 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.2963, allocations: 0 / 0.5623 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001673/0.2965, allocations: 63.66 kB / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2965, allocations: 0 / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2965, allocations: 0 / 0.5623 GB, free: 3.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2965, allocations: 0 / 0.5623 GB, free: 3.535 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.0003993/0.2969, allocations: 278 kB / 0.5626 GB, free: 3.227 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.297, allocations: 16.03 kB / 0.5626 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.824e-05/0.297, allocations: 192 / 0.5626 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.297, allocations: 34.75 kB / 0.5626 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.2971, allocations: 0.9375 kB / 0.5626 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.252e-05/0.2971, allocations: 102.5 kB / 0.5627 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2971, allocations: 4.375 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.2972, allocations: 384 / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.732e-05/0.2972, allocations: 33.95 kB / 0.5628 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.2973, allocations: 0 / 0.5628 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.2973, allocations: 8 kB / 0.5628 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.2973, allocations: 0 / 0.5628 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.782e-05/0.2973, allocations: 3.984 kB / 0.5628 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001425/0.2974, allocations: 112.8 kB / 0.5629 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.248e-05/0.2975, allocations: 22.61 kB / 0.5629 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.548e-05/0.2975, allocations: 4.859 kB / 0.5629 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.68e-06/0.2975, allocations: 0 / 0.5629 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.573e-05/0.2976, allocations: 72.2 kB / 0.563 GB, free: 2.711 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.2976, allocations: 0 / 0.563 GB, free: 2.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001619/0.2977, allocations: 67.33 kB / 0.563 GB, free: 2.633 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.2978, allocations: 81.11 kB / 0.5631 GB, free: 2.535 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.475e-05/0.2979, allocations: 93.81 kB / 0.5632 GB, free: 2.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.2979, allocations: 29.64 kB / 0.5632 GB, free: 2.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.2979, allocations: 80.14 kB / 0.5633 GB, free: 2.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.2979, allocations: 0 / 0.5633 GB, free: 2.316 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.998e-05/0.298, allocations: 13.84 kB / 0.5633 GB, free: 2.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2981, allocations: 318.8 kB / 0.5636 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-06/0.2981, allocations: 0 / 0.5636 GB, free: 1.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.809e-06/0.2981, allocations: 0 / 0.5636 GB, free: 1.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.848e-05/0.2982, allocations: 68.2 kB / 0.5637 GB, free: 1.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2982, allocations: 0 / 0.5637 GB, free: 1.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.657e-05/0.2983, allocations: 59.41 kB / 0.5638 GB, free: 1.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.2983, allocations: 37.62 kB / 0.5638 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.2983, allocations: 8.094 kB / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.2983, allocations: 0 / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.11e-07/0.2983, allocations: 0 / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.2983, allocations: 0 / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.2983, allocations: 0 / 0.5638 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.2984, allocations: 4 kB / 0.5638 GB, free: 1.77 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.0001015/0.2985, allocations: 139.5 kB / 0.5639 GB, free: 1.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.2985, allocations: 3.938 kB / 0.5639 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.017e-05/0.2985, allocations: 3 kB / 0.5639 GB, free: 1.609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2985, allocations: 7.984 kB / 0.564 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2985, allocations: 0 / 0.564 GB, free: 1.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.2985, allocations: 4 kB / 0.564 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.807e-05/0.2986, allocations: 116.7 kB / 0.5641 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.2986, allocations: 0 / 0.5641 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.2986, allocations: 0 / 0.5641 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.2986, allocations: 3.938 kB / 0.5641 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.2986, allocations: 4 kB / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.2986, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2986, allocations: 0 / 0.5641 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.991e-05/0.2987, allocations: 90.83 kB / 0.5642 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-06/0.2987, allocations: 4 kB / 0.5642 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.2987, allocations: 3.938 kB / 0.5642 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.2987, allocations: 3.938 kB / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.2987, allocations: 3.984 kB / 0.5642 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-06/0.2987, allocations: 7.984 kB / 0.5642 GB, free: 1.297 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.024e-05/0.2988, allocations: 75.28 kB / 0.5643 GB, free: 1.223 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2988, allocations: 0 / 0.5643 GB, free: 1.223 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.299, allocations: 27.97 kB / 0.5643 GB, free: 1.195 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.0009802/0.3, allocations: 0.8054 MB / 0.5651 GB, free: 436 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.306e-05/0.3001, allocations: 59.41 kB / 0.5651 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3001, allocations: 0 / 0.5651 GB, free: 364 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.297e-05/0.3001, allocations: 67.44 kB / 0.5652 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000118/0.3003, allocations: 0 / 0.5652 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000299/0.3006, allocations: 126.6 kB / 0.5653 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003139/0.3009, allocations: 0.669 MB / 0.566 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.3009, allocations: 4 kB / 0.566 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.293e-05/0.3009, allocations: 7.438 kB / 0.566 GB, free: 15.41 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3009, allocations: 0 / 0.566 GB, free: 15.41 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.3212, allocations: 1.788 MB / 0.5677 GB, free: 13.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.75, allocations: 10.34 kB / 0.5677 GB, free: 13.75 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.667431887006387]