Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.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.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare") translateModel(ModelicaTest.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare") [: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.001159/0.001159, allocations: 179 kB / 8.517 MB, free: 1.852 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.281/1.281, allocations: 221.4 MB / 230.3 MB, free: 7.793 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.001075/0.001075, allocations: 80.75 kB / 281.2 MB, free: 5.531 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.1883/0.1883, allocations: 44.16 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.332e-06/6.371e-06, allocations: 224 / 444 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1386, allocations: 61.91 MB / 0.4941 GB, free: 1.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3445/0.4832, allocations: 86.09 MB / 0.5782 GB, free: 10.63 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001648/0.4834, allocations: 64.53 kB / 0.5782 GB, free: 10.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.005052/0.4885, allocations: 1.442 MB / 0.5796 GB, free: 9.258 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.4885, allocations: 0 / 0.5796 GB, free: 9.258 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005323/0.4891, allocations: 390.1 kB / 0.58 GB, free: 8.832 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.4891, allocations: 11.97 kB / 0.58 GB, free: 8.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.03e-05/0.4892, allocations: 11.91 kB / 0.58 GB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.4895, allocations: 211.7 kB / 0.5802 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.4895, allocations: 4 kB / 0.5802 GB, free: 8.559 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.4895, allocations: 4 kB / 0.5802 GB, free: 8.555 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001059/0.4896, allocations: 39.98 kB / 0.5803 GB, free: 8.516 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.4898, allocations: 77.67 kB / 0.5803 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.4898, allocations: 0 / 0.5803 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.4898, allocations: 2.953 kB / 0.5803 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.4898, allocations: 4 kB / 0.5803 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004593/0.4903, allocations: 344.9 kB / 0.5807 GB, free: 8.055 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.4904, allocations: 50.56 kB / 0.5807 GB, free: 7.996 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.567e-05/0.4905, allocations: 21.11 kB / 0.5807 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.4905, allocations: 7.984 kB / 0.5808 GB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.4906, allocations: 79.38 kB / 0.5808 GB, free: 7.875 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.4906, allocations: 0 / 0.5808 GB, free: 7.875 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002105/0.4909, allocations: 85.52 kB / 0.5809 GB, free: 7.785 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.4909, allocations: 51.41 kB / 0.581 GB, free: 7.723 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.29e-05/0.491, allocations: 123.3 kB / 0.5811 GB, free: 7.594 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.491, allocations: 29.7 kB / 0.5811 GB, free: 7.559 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.564e-05/0.4911, allocations: 100.7 kB / 0.5812 GB, free: 7.457 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.4911, allocations: 27.78 kB / 0.5812 GB, free: 7.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.4911, allocations: 0 / 0.5812 GB, free: 7.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.4913, allocations: 326.8 kB / 0.5815 GB, free: 7.102 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.734e-05/0.4913, allocations: 16 kB / 0.5816 GB, free: 7.086 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.519e-05/0.4914, allocations: 70.69 kB / 0.5816 GB, free: 6.992 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.715e-05/0.4915, allocations: 39.83 kB / 0.5817 GB, free: 6.953 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.4915, allocations: 0 / 0.5817 GB, free: 6.953 MB / 394.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002187/0.4917, allocations: 109.5 kB / 0.5818 GB, free: 6.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/0.4917, allocations: 8.156 kB / 0.5818 GB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4917, allocations: 8 kB / 0.5818 GB, free: 6.824 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-06/0.4917, allocations: 4 kB / 0.5818 GB, free: 6.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.4919, allocations: 23.92 kB / 0.5818 GB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.4919, allocations: 4 kB / 0.5818 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.987e-05/0.492, allocations: 15.84 kB / 0.5818 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.492, allocations: 11.83 kB / 0.5818 GB, free: 6.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y_last,mean1.y_last,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.346e-05/0.4921, allocations: 112.9 kB / 0.5819 GB, free: 6.652 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.949e-05/0.4921, allocations: 15.81 kB / 0.582 GB, free: 6.637 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.4922, allocations: 8.5 kB / 0.582 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.4922, allocations: 4 kB / 0.582 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4922, allocations: 0 / 0.582 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4922, allocations: 4 kB / 0.582 GB, free: 6.617 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.4924, allocations: 174.2 kB / 0.5821 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4924, allocations: 0 / 0.5821 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.4925, allocations: 12 kB / 0.5822 GB, free: 6.398 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.4925, allocations: 3.906 kB / 0.5822 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.383e-05/0.4925, allocations: 7.984 kB / 0.5822 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.4925, allocations: 4 kB / 0.5822 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.4925, allocations: 0 / 0.5822 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002219/0.4928, allocations: 137 kB / 0.5823 GB, free: 6.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.081e-05/0.4928, allocations: 92.86 kB / 0.5824 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.629e-05/0.4929, allocations: 0 / 0.5824 GB, free: 6.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.165e-05/0.4929, allocations: 7.984 kB / 0.5824 GB, free: 6.113 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.493, allocations: 8.141 kB / 0.5824 GB, free: 6.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.493, allocations: 7.984 kB / 0.5824 GB, free: 6.098 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.058e-05/0.4931, allocations: 101.8 kB / 0.5825 GB, free: 6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.4933, allocations: 27.89 kB / 0.5825 GB, free: 5.973 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001352/0.4935, allocations: 99.28 kB / 0.5826 GB, free: 5.867 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000132/0.4936, allocations: 59.95 kB / 0.5827 GB, free: 5.809 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.4936, allocations: 448 / 0.5827 GB, free: 5.809 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.558e-05/0.4937, allocations: 35.94 kB / 0.5827 GB, free: 5.773 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.4938, allocations: 11.98 kB / 0.5827 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.4942, allocations: 151.8 kB / 0.5829 GB, free: 5.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.4946, allocations: 0.7192 MB / 0.5836 GB, free: 4.844 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4946, allocations: 3.938 kB / 0.5836 GB, free: 4.84 MB / 394.7 MB Notification: Performance of Templates: time 0.002933/0.4975, allocations: 0.9287 MB / 0.5845 GB, free: 3.914 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches