Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 178.7 kB / 8.519 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 221.4 MB / 230.3 MB, free: 7.664 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009723/0.0009727, allocations: 95.34 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1957/0.1957, allocations: 44.15 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.801e-06/5.841e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1357, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3499/0.4857, allocations: 85.29 MB / 0.5774 GB, free: 11.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.486, allocations: 62.78 kB / 0.5774 GB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.006084/0.4921, allocations: 1.991 MB / 0.5794 GB, free: 9.477 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4921, allocations: 4 kB / 0.5794 GB, free: 9.473 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.0002935/0.4924, allocations: 352.2 kB / 0.5797 GB, free: 9.078 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.4924, allocations: 11.97 kB / 0.5797 GB, free: 9.066 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.4925, allocations: 11.91 kB / 0.5797 GB, free: 9.055 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.4926, allocations: 163.1 kB / 0.5799 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.276e-06/0.4926, allocations: 3.938 kB / 0.5799 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.4926, allocations: 0 / 0.5799 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.064e-05/0.4927, allocations: 0 / 0.5799 GB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.241e-05/0.4928, allocations: 29.7 kB / 0.5799 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.4928, allocations: 4 kB / 0.5799 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.4928, allocations: 0 / 0.5799 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.4928, allocations: 3.906 kB / 0.5799 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001096/0.4929, allocations: 126.2 kB / 0.58 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.974e-05/0.493, allocations: 22.59 kB / 0.5801 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.487e-05/0.493, allocations: 4.859 kB / 0.5801 GB, free: 8.609 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.493, allocations: 0 / 0.5801 GB, free: 8.609 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.493, allocations: 64.2 kB / 0.5801 GB, free: 8.531 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.4931, allocations: 0 / 0.5801 GB, free: 8.531 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001669/0.4932, allocations: 33.77 kB / 0.5802 GB, free: 8.492 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.4933, allocations: 81.09 kB / 0.5802 GB, free: 8.395 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.033e-05/0.4933, allocations: 85 kB / 0.5803 GB, free: 8.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.4934, allocations: 25.7 kB / 0.5803 GB, free: 8.273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.4934, allocations: 84.14 kB / 0.5804 GB, free: 8.188 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.4934, allocations: 7.734 kB / 0.5804 GB, free: 8.184 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-06/0.4934, allocations: 0 / 0.5804 GB, free: 8.184 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4935, allocations: 318.9 kB / 0.5807 GB, free: 7.863 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.953e-06/0.4936, allocations: 0 / 0.5807 GB, free: 7.863 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.957e-06/0.4936, allocations: 0 / 0.5807 GB, free: 7.863 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.571e-05/0.4936, allocations: 4 kB / 0.5807 GB, free: 7.859 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4936, allocations: 0 / 0.5807 GB, free: 7.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.265e-05/0.4937, allocations: 37.62 kB / 0.5808 GB, free: 7.816 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.4937, allocations: 4 kB / 0.5808 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.4937, allocations: 0 / 0.5808 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.4937, allocations: 8.938 kB / 0.5808 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.4937, allocations: 0 / 0.5808 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.4938, allocations: 0 / 0.5808 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.137e-05/0.4938, allocations: 0 / 0.5808 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.4938, allocations: 0 / 0.5808 GB, free: 7.805 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.216e-05/0.4939, allocations: 134.6 kB / 0.5809 GB, free: 7.66 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-06/0.4939, allocations: 4 kB / 0.5809 GB, free: 7.656 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.622e-05/0.4939, allocations: 10.95 kB / 0.5809 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.4939, allocations: 0 / 0.5809 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.4939, allocations: 3.938 kB / 0.5809 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.4939, allocations: 4 kB / 0.5809 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.014e-05/0.494, allocations: 126.2 kB / 0.5811 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.494, allocations: 4 kB / 0.5811 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.494, allocations: 0 / 0.5811 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.494, allocations: 0 / 0.5811 GB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.494, allocations: 3.984 kB / 0.5811 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.494, allocations: 0 / 0.5811 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4941, allocations: 0 / 0.5811 GB, free: 7.469 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.641e-05/0.4942, allocations: 69.05 kB / 0.5811 GB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.4942, allocations: 85.02 kB / 0.5812 GB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.4942, allocations: 8 kB / 0.5812 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-06/0.4942, allocations: 0 / 0.5812 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.32e-05/0.4943, allocations: 0 / 0.5812 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.4943, allocations: 0 / 0.5812 GB, free: 7.273 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.236e-05/0.4943, allocations: 75.28 kB / 0.5813 GB, free: 7.199 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002689/0.4946, allocations: 39.92 kB / 0.5813 GB, free: 7.16 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.0005532/0.4951, allocations: 259.9 kB / 0.5816 GB, free: 6.945 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.938e-05/0.4952, allocations: 37.64 kB / 0.5816 GB, free: 6.902 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4952, allocations: 0 / 0.5816 GB, free: 6.902 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.04e-05/0.4953, allocations: 29.7 kB / 0.5816 GB, free: 6.867 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.701e-05/0.4954, allocations: 7.984 kB / 0.5816 GB, free: 6.859 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000144/0.4955, allocations: 40.08 kB / 0.5817 GB, free: 6.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.4958, allocations: 0.6802 MB / 0.5824 GB, free: 6.09 MB / 394.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4958, allocations: 0 / 0.5824 GB, free: 6.09 MB / 394.7 MB Notification: Performance of Templates: time 0.003237/0.499, allocations: 0.951 MB / 0.5833 GB, free: 5.145 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches