Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.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.001721/0.001721, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00198/0.00198, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.457/1.457, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.2197/0.2197, allocations: 46.97 MB / 361.7 MB, free: 4.055 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.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 63.89 kB / 0.4968 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3105, allocations: 66.03 MB / 0.5613 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001572/0.312, allocations: 495.8 kB / 0.5618 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.3145, allocations: 1.257 MB / 0.563 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.307e-05/0.3145, allocations: 0 / 0.563 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.3145, allocations: 0 / 0.563 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.959e-06/0.3145, allocations: 0 / 0.563 GB, free: 2.523 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.316, allocations: 0.5918 MB / 0.5636 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.392e-05/0.316, allocations: 7.984 kB / 0.5636 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.228e-05/0.316, allocations: 0 / 0.5636 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.566e-05/0.3161, allocations: 4 kB / 0.5636 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.974e-05/0.3161, allocations: 3.938 kB / 0.5636 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.33e-06/0.3161, allocations: 0 / 0.5636 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01707/0.3331, allocations: 2.549 MB / 0.5661 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.3332, allocations: 0 / 0.5661 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.134e-05/0.3332, allocations: 0 / 0.5661 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003449/0.3335, allocations: 167.7 kB / 0.5663 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3335, allocations: 0 / 0.5663 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3335, allocations: 0 / 0.5663 GB, free: 15.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.3335, allocations: 0 / 0.5663 GB, free: 15.73 MB / 414.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.000382/0.3339, allocations: 307.8 kB / 0.5666 GB, free: 15.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.334, allocations: 8.031 kB / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.827e-05/0.334, allocations: 192 / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.612e-05/0.334, allocations: 34.75 kB / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.448e-05/0.334, allocations: 0.9375 kB / 0.5666 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.3341, allocations: 106.5 kB / 0.5667 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.3341, allocations: 384 / 0.5667 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.3341, allocations: 12.11 kB / 0.5667 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.656e-05/0.3342, allocations: 63.34 kB / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.3342, allocations: 0 / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.3343, allocations: 3.938 kB / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3343, allocations: 0 / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.871e-05/0.3343, allocations: 29.7 kB / 0.5668 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001271/0.3344, allocations: 116.8 kB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.725e-05/0.3345, allocations: 44.31 kB / 0.567 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.966e-05/0.3345, allocations: 38.5 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.3345, allocations: 4.062 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.161e-05/0.3346, allocations: 64.2 kB / 0.5671 GB, free: 14.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.3346, allocations: 0 / 0.5671 GB, free: 14.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002054/0.3348, allocations: 114.8 kB / 0.5672 GB, free: 14.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.3349, allocations: 81.11 kB / 0.5673 GB, free: 14.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.978e-05/0.3349, allocations: 89.86 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3349, allocations: 29.7 kB / 0.5674 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.406e-05/0.335, allocations: 80.14 kB / 0.5674 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.335, allocations: 0 / 0.5674 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.335, allocations: 9.719 kB / 0.5675 GB, free: 14.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3352, allocations: 318.8 kB / 0.5678 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.722e-05/0.3352, allocations: 29.83 kB / 0.5678 GB, free: 13.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.656e-05/0.3352, allocations: 25.7 kB / 0.5678 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.854e-05/0.3353, allocations: 76.14 kB / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3353, allocations: 0 / 0.5679 GB, free: 13.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.485e-05/0.3354, allocations: 93.03 kB / 0.568 GB, free: 13.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.221e-05/0.3354, allocations: 33.7 kB / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3354, allocations: 0 / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3354, allocations: 0 / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.3354, allocations: 0 / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.3354, allocations: 4.094 kB / 0.568 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.645e-05/0.3354, allocations: 3.953 kB / 0.568 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3355, allocations: 0 / 0.568 GB, free: 13.64 MB / 414.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.258e-05/0.3355, allocations: 139.5 kB / 0.5681 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.3356, allocations: 7.922 kB / 0.5682 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.04e-05/0.3356, allocations: 3 kB / 0.5682 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.3356, allocations: 4 kB / 0.5682 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3356, allocations: 0 / 0.5682 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.3356, allocations: 3.938 kB / 0.5682 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.97e-05/0.3357, allocations: 112.8 kB / 0.5683 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3357, allocations: 11.88 kB / 0.5683 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3357, allocations: 0 / 0.5683 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3357, allocations: 4 kB / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.3357, allocations: 3.984 kB / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.3357, allocations: 0 / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.3357, allocations: 0 / 0.5683 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.3358, allocations: 112.5 kB / 0.5684 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.076e-05/0.3358, allocations: 7.922 kB / 0.5684 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3359, allocations: 8 kB / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-06/0.3359, allocations: 0 / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-06/0.3359, allocations: 0 / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3359, allocations: 4.031 kB / 0.5684 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.493e-05/0.3359, allocations: 75.28 kB / 0.5685 GB, free: 13.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3359, allocations: 0 / 0.5685 GB, free: 13.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.3362, allocations: 71.86 kB / 0.5686 GB, free: 13 MB / 414.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.001436/0.3376, allocations: 0.9812 MB / 0.5695 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.3378, allocations: 110.8 kB / 0.5696 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3378, allocations: 0 / 0.5696 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.557e-05/0.3379, allocations: 89.09 kB / 0.5697 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.338, allocations: 0 / 0.5697 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003995/0.3384, allocations: 168.2 kB / 0.5699 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.76e-05/0.3384, allocations: 55.3 kB / 0.5699 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.039e-06/0.3384, allocations: 0 / 0.5699 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.559e-05/0.3385, allocations: 11.44 kB / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3385, allocations: 4.125 kB / 0.5699 GB, free: 11.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.3609, allocations: 3.306 MB / 0.5732 GB, free: 8.363 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.03, allocations: 11.98 kB / 0.5732 GB, free: 8.352 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.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.854407471953891]