Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001648/0.001648, 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.002047/0.002047, 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.514/1.514, 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.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.219/0.219, allocations: 44.92 MB / 359.6 MB, free: 6.32 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.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="cs",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.002061/0.002061, allocations: 63.91 kB / 0.4938 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.303, allocations: 65.48 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001561/0.3045, allocations: 479.4 kB / 0.5582 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002623/0.3072, allocations: 1.344 MB / 0.5595 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.774e-05/0.3072, allocations: 0 / 0.5595 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.3072, allocations: 0 / 0.5595 GB, free: 5.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.3072, allocations: 0 / 0.5595 GB, free: 5.984 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220: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.001479/0.3087, allocations: 0.5804 MB / 0.5601 GB, free: 5.402 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.374e-05/0.3087, allocations: 4 kB / 0.5601 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.192e-05/0.3087, allocations: 4 kB / 0.5601 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.922e-05/0.3088, allocations: 7.984 kB / 0.5601 GB, free: 5.387 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.82e-05/0.3088, allocations: 3.938 kB / 0.5601 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-06/0.3088, allocations: 0 / 0.5601 GB, free: 5.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01697/0.3258, allocations: 2.559 MB / 0.5626 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.3258, allocations: 3.984 kB / 0.5626 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.3258, allocations: 0 / 0.5626 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.3262, allocations: 163.7 kB / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3262, allocations: 0 / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3262, allocations: 0 / 0.5628 GB, free: 3.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3262, allocations: 0 / 0.5628 GB, free: 3.188 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.0003672/0.3265, allocations: 307.8 kB / 0.5631 GB, free: 2.852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3266, allocations: 11.97 kB / 0.5631 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.624e-05/0.3266, allocations: 4.188 kB / 0.5631 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.358e-05/0.3266, allocations: 30.75 kB / 0.5631 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.622e-05/0.3267, allocations: 4.938 kB / 0.5631 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.646e-05/0.3267, allocations: 102.5 kB / 0.5632 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.3268, allocations: 4.359 kB / 0.5632 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.597e-06/0.3268, allocations: 4.125 kB / 0.5632 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.073e-05/0.3268, allocations: 29.7 kB / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.3268, allocations: 0 / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-06/0.3269, allocations: 0 / 0.5633 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3269, allocations: 7.938 kB / 0.5633 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.827e-05/0.3269, allocations: 4 kB / 0.5633 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001385/0.327, allocations: 120.7 kB / 0.5634 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.146e-05/0.3271, allocations: 18.56 kB / 0.5634 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.944e-05/0.3271, allocations: 12.89 kB / 0.5634 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.3271, allocations: 0 / 0.5634 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.3271, allocations: 60.27 kB / 0.5635 GB, free: 2.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3271, allocations: 4 kB / 0.5635 GB, free: 2.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001612/0.3273, allocations: 63.34 kB / 0.5635 GB, free: 2.258 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/0.3274, allocations: 81.09 kB / 0.5636 GB, free: 2.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.35e-05/0.3274, allocations: 89.86 kB / 0.5637 GB, free: 2.062 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3274, allocations: 25.7 kB / 0.5637 GB, free: 2.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.397e-05/0.3275, allocations: 80.14 kB / 0.5638 GB, free: 1.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.3275, allocations: 4 kB / 0.5638 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.3275, allocations: 13.72 kB / 0.5638 GB, free: 1.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3277, allocations: 315 kB / 0.5641 GB, free: 1.609 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.401e-05/0.3277, allocations: 4 kB / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.3277, allocations: 0 / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.427e-05/0.3277, allocations: 60.27 kB / 0.5642 GB, free: 1.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3277, allocations: 0 / 0.5642 GB, free: 1.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.083e-05/0.3278, allocations: 71.27 kB / 0.5642 GB, free: 1.449 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.3278, allocations: 33.7 kB / 0.5643 GB, free: 1.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3278, allocations: 7.938 kB / 0.5643 GB, free: 1.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3279, allocations: 4.094 kB / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.72e-07/0.3279, allocations: 0 / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.3279, allocations: 0 / 0.5643 GB, free: 1.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.3279, allocations: 7.953 kB / 0.5643 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.3279, allocations: 0 / 0.5643 GB, free: 1.391 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.000103/0.328, allocations: 139.5 kB / 0.5644 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.293e-05/0.328, allocations: 7.938 kB / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.016e-05/0.328, allocations: 3 kB / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.328, allocations: 0 / 0.5644 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.328, allocations: 4 kB / 0.5644 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.328, allocations: 0 / 0.5644 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.3281, allocations: 116.8 kB / 0.5646 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3281, allocations: 7.938 kB / 0.5646 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3281, allocations: 3.938 kB / 0.5646 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.3281, allocations: 0 / 0.5646 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.3281, allocations: 4 kB / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.3281, allocations: 0 / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.3281, allocations: 0 / 0.5646 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.3282, allocations: 98.77 kB / 0.5647 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-06/0.3283, allocations: 3.938 kB / 0.5647 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.3283, allocations: 0 / 0.5647 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-06/0.3283, allocations: 4 kB / 0.5647 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-06/0.3283, allocations: 0 / 0.5647 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.3283, allocations: 0 / 0.5647 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.865e-05/0.3283, allocations: 75.28 kB / 0.5647 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3283, allocations: 0 / 0.5647 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002893/0.3286, allocations: 71.89 kB / 0.5648 GB, free: 0.7773 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.00142/0.33, allocations: 0.9344 MB / 0.5657 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001078/0.3301, allocations: 63.34 kB / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3301, allocations: 0 / 0.5658 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.775e-05/0.3302, allocations: 59.34 kB / 0.5658 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.3303, allocations: 4 kB / 0.5658 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003497/0.3307, allocations: 134.6 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.331, allocations: 0.6728 MB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.331, allocations: 128 / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.331, allocations: 15.44 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.331, allocations: 0 / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0227/0.3537, allocations: 3.295 MB / 0.5699 GB, free: 11.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.82, allocations: 7.922 kB / 0.5699 GB, free: 11.7 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.758312646998093]