Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002694/0.002694, allocations: 172.4 kB / 8.147 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.843/1.843, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001333/0.001333, allocations: 86.47 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2951/0.2951, allocations: 43.5 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.534e-05/1.576e-05, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3219, allocations: 58.84 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.4831, allocations: 84.13 MB / 0.5475 GB, free: 14.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.4834, allocations: 63.25 kB / 0.5476 GB, free: 14.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.009634/0.4931, allocations: 1.98 MB / 0.5495 GB, free: 12.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.4931, allocations: 4 kB / 0.5495 GB, free: 12.89 MB / 394.7 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.4935, allocations: 363.5 kB / 0.5499 GB, free: 12.49 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4936, allocations: 8.031 kB / 0.5499 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.4936, allocations: 4 kB / 0.5499 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.4938, allocations: 167.1 kB / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.4938, allocations: 0 / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.4938, allocations: 0 / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.771e-05/0.4939, allocations: 0 / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.988e-05/0.4939, allocations: 29.7 kB / 0.5501 GB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.494, allocations: 4 kB / 0.5501 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.494, allocations: 3.906 kB / 0.5501 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.494, allocations: 0 / 0.5501 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.4942, allocations: 126.2 kB / 0.5502 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.304e-05/0.4942, allocations: 26.55 kB / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.687e-05/0.4943, allocations: 4.859 kB / 0.5502 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.4943, allocations: 0 / 0.5502 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/0.4943, allocations: 60.27 kB / 0.5503 GB, free: 11.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.423e-06/0.4944, allocations: 0 / 0.5503 GB, free: 11.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001905/0.4945, allocations: 37.75 kB / 0.5503 GB, free: 11.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.515e-05/0.4946, allocations: 77.11 kB / 0.5504 GB, free: 11.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.758e-05/0.4947, allocations: 89.03 kB / 0.5505 GB, free: 11.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.4947, allocations: 25.7 kB / 0.5505 GB, free: 11.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.4948, allocations: 150.6 kB / 0.5506 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.4948, allocations: 7.844 kB / 0.5506 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-06/0.4948, allocations: 0 / 0.5506 GB, free: 11.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.495, allocations: 310.8 kB / 0.5509 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.495, allocations: 8 kB / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-06/0.495, allocations: 0 / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.965e-05/0.4951, allocations: 8 kB / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.4951, allocations: 4 kB / 0.551 GB, free: 11.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001005/0.4952, allocations: 33.69 kB / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.4952, allocations: 7.938 kB / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.4953, allocations: 0 / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.4953, allocations: 0 / 0.551 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.208e-06/0.4953, allocations: 4 kB / 0.551 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.4953, allocations: 0 / 0.551 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.4953, allocations: 0 / 0.551 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.4953, allocations: 0 / 0.551 GB, free: 11.15 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.089e-05/0.4954, allocations: 63.33 kB / 0.5511 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.455e-05/0.4955, allocations: 7.984 kB / 0.5511 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.4955, allocations: 3 kB / 0.5511 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.4955, allocations: 0 / 0.5511 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4955, allocations: 0 / 0.5511 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4955, allocations: 0 / 0.5511 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.4956, allocations: 130.1 kB / 0.5512 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4956, allocations: 0 / 0.5512 GB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.4957, allocations: 4 kB / 0.5512 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.4957, allocations: 3.984 kB / 0.5512 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.4957, allocations: 4 kB / 0.5512 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4957, allocations: 0 / 0.5512 GB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4957, allocations: 3.938 kB / 0.5512 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001531/0.4959, allocations: 61.12 kB / 0.5513 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.4959, allocations: 81.02 kB / 0.5514 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.496, allocations: 0 / 0.5514 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.496, allocations: 4 kB / 0.5514 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.846e-05/0.496, allocations: 4.031 kB / 0.5514 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.496, allocations: 0 / 0.5514 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.358e-05/0.4961, allocations: 75.28 kB / 0.5514 GB, free: 10.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003374/0.4964, allocations: 39.98 kB / 0.5515 GB, free: 10.59 MB / 394.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007039/0.4971, allocations: 256.4 kB / 0.5517 GB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.173e-05/0.4972, allocations: 37.64 kB / 0.5518 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4973, allocations: 3.938 kB / 0.5518 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.54e-05/0.4973, allocations: 29.7 kB / 0.5518 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001053/0.4974, allocations: 3.984 kB / 0.5518 GB, free: 10.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001711/0.4976, allocations: 65.78 kB / 0.5519 GB, free: 10.17 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.498, allocations: 0.688 MB / 0.5525 GB, free: 9.457 MB / 394.7 MB Notification: Performance of SimCode: time 6.51e-07/0.498, allocations: 0 / 0.5525 GB, free: 9.457 MB / 394.7 MB Notification: Performance of Templates: time 0.004078/0.5021, allocations: 1.207 MB / 0.5537 GB, free: 8.25 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches