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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 113.4 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 201.9 kB / 18.77 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.789/1.789, allocations: 222.9 MB / 242.4 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3487/0.3487, allocations: 44.16 MB / 336.8 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002318/0.002318, allocations: 61.33 kB / 408.3 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.174, allocations: 60.82 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002583/0.1767, allocations: 0.5286 MB / 469.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004047/0.1807, allocations: 1.401 MB / 471.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.732e-05/0.1808, allocations: 0 / 471.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.572e-05/0.1808, allocations: 0 / 471.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.023e-06/0.1809, allocations: 4 kB / 471.1 MB, free: 12.88 MB / 350.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.002226/0.1831, allocations: 450.9 kB / 471.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.966e-05/0.1832, allocations: 8 kB / 471.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.1833, allocations: 0 / 471.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.433e-05/0.1833, allocations: 3.984 kB / 471.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.382e-05/0.1833, allocations: 0 / 471.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-06/0.1834, allocations: 0 / 471.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04969/0.2331, allocations: 2.334 MB / 473.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.713e-05/0.2331, allocations: 7.984 kB / 473.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.495e-05/0.2332, allocations: 4 kB / 473.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004191/0.2336, allocations: 107.8 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.2336, allocations: 7.938 kB / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2336, allocations: 0 / 474 MB, free: 10.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.451e-06/0.2336, allocations: 3.938 kB / 474 MB, free: 10.38 MB / 350.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.0006714/0.2343, allocations: 377.3 kB / 474.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.2344, allocations: 8.031 kB / 474.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.2345, allocations: 0.9375 kB / 474.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.2346, allocations: 160.4 kB / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.2346, allocations: 8.375 kB / 474.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.2347, allocations: 384 / 474.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.2348, allocations: 41.75 kB / 474.6 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2348, allocations: 4 kB / 474.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.2348, allocations: 0 / 474.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.2349, allocations: 0 / 474.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.72e-05/0.2349, allocations: 0 / 474.6 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000202/0.2351, allocations: 141.7 kB / 474.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.979e-05/0.2352, allocations: 26.59 kB / 474.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.752e-05/0.2352, allocations: 8.859 kB / 474.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.2352, allocations: 0 / 474.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.866e-05/0.2353, allocations: 72.2 kB / 474.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.703e-06/0.2354, allocations: 3.938 kB / 474.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002609/0.2356, allocations: 59.41 kB / 474.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.2357, allocations: 81.09 kB / 475 MB, free: 9.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.846e-05/0.2358, allocations: 93.98 kB / 475.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2358, allocations: 25.7 kB / 475.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.191e-05/0.2359, allocations: 80.14 kB / 475.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.2359, allocations: 0 / 475.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.236, allocations: 17.72 kB / 475.2 MB, free: 8.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2361, allocations: 310.8 kB / 475.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.549e-05/0.2362, allocations: 0 / 475.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.088e-05/0.2362, allocations: 0 / 475.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.206e-05/0.2363, allocations: 68.27 kB / 475.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2363, allocations: 0 / 475.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001239/0.2364, allocations: 67.39 kB / 475.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.213e-05/0.2365, allocations: 33.64 kB / 475.7 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2365, allocations: 4 kB / 475.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.2366, allocations: 0 / 475.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.693e-06/0.2366, allocations: 0 / 475.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2366, allocations: 0 / 475.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.954e-05/0.2366, allocations: 3.984 kB / 475.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.2366, allocations: 4.031 kB / 475.7 MB, free: 8.445 MB / 350.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.0001449/0.2368, allocations: 139.5 kB / 475.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.949e-05/0.2368, allocations: 3.938 kB / 475.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.643e-05/0.2369, allocations: 7.078 kB / 475.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2369, allocations: 0 / 475.8 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.2369, allocations: 3.938 kB / 475.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2369, allocations: 4 kB / 475.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.2371, allocations: 145.7 kB / 476 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2371, allocations: 0 / 476 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-06/0.2371, allocations: 4 kB / 476 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2371, allocations: 7.875 kB / 476 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.2371, allocations: 4 kB / 476 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.2371, allocations: 4 kB / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2371, allocations: 0 / 476 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.2373, allocations: 90.86 kB / 476.1 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.2374, allocations: 88.98 kB / 476.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.2374, allocations: 0 / 476.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.51e-05/0.2374, allocations: 4.031 kB / 476.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.2375, allocations: 0 / 476.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.2375, allocations: 0 / 476.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.909e-05/0.2375, allocations: 75.28 kB / 476.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2375, allocations: 4 kB / 476.3 MB, free: 7.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.2381, allocations: 67.98 kB / 476.3 MB, free: 7.695 MB / 350.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.001372/0.2395, allocations: 410.1 kB / 476.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.2397, allocations: 63.33 kB / 476.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.2397, allocations: 0 / 476.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5e-05/0.2398, allocations: 59.34 kB / 476.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.24, allocations: 0 / 476.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.2403, allocations: 116.4 kB / 477 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.2407, allocations: 0.6731 MB / 477.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.22e-05/0.2407, allocations: 11.44 kB / 477.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2407, allocations: 0 / 477.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of Templates: time 0.006711/0.2475, allocations: 2.028 MB / 479.7 MB, free: 4.336 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) 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) Reference file matches