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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 110 kB / 18.45 MB, free: 4.602 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.000976/0.000976, allocations: 186.3 kB / 19.38 MB, free: 3.684 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.235/1.235, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1933/0.1933, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3018, allocations: 60.82 MB / 0.5196 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002477/0.3043, allocations: 1.656 MB / 0.5212 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007638/0.3051, allocations: 0.5374 MB / 0.5217 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.729e-05/0.3052, allocations: 2.219 kB / 0.5217 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.626e-05/0.3053, allocations: 14.59 kB / 0.5217 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.715e-05/0.3053, allocations: 10.55 kB / 0.5217 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002349/0.3056, allocations: 58.69 kB / 0.5218 GB, free: 1.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.3057, allocations: 112.5 kB / 0.5219 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.3059, allocations: 32.89 kB / 0.5219 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.21e-05/0.306, allocations: 50.22 kB / 0.522 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.3061, allocations: 46.44 kB / 0.522 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.3061, allocations: 13 kB / 0.522 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.231e-05/0.3061, allocations: 10.25 kB / 0.522 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.062e-05/0.3062, allocations: 25 kB / 0.5221 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.894e-05/0.3063, allocations: 52.19 kB / 0.5221 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.3064, allocations: 110.6 kB / 0.5222 GB, free: 1.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3064, allocations: 7.938 kB / 0.5222 GB, free: 1.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3064, allocations: 0.7969 kB / 0.5222 GB, free: 1.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.3065, allocations: 1.344 kB / 0.5222 GB, free: 1.762 MB / 382.1 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.0005841/0.307, allocations: 406.1 kB / 0.5226 GB, free: 1.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3071, allocations: 8.969 kB / 0.5226 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/0.3071, allocations: 16.09 kB / 0.5226 GB, free: 1.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.3073, allocations: 199.3 kB / 0.5228 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.3073, allocations: 13.5 kB / 0.5228 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.2e-05/0.3074, allocations: 5.812 kB / 0.5228 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.3076, allocations: 104.5 kB / 0.5229 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3076, allocations: 3.938 kB / 0.5229 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.3076, allocations: 5.5 kB / 0.523 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3077, allocations: 2.828 kB / 0.523 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001383/0.3078, allocations: 47.23 kB / 0.523 GB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.3083, allocations: 387.4 kB / 0.5234 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001259/0.3084, allocations: 57.39 kB / 0.5234 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.447e-05/0.3085, allocations: 28.19 kB / 0.5234 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.3085, allocations: 0.9375 kB / 0.5235 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001872/0.3087, allocations: 104.1 kB / 0.5236 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.3087, allocations: 0 / 0.5236 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003184/0.3091, allocations: 127.9 kB / 0.5237 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/0.3091, allocations: 58.45 kB / 0.5237 GB, free: 500 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.908e-05/0.3092, allocations: 133.9 kB / 0.5239 GB, free: 388 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.3092, allocations: 31.97 kB / 0.5239 GB, free: 352 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.907e-05/0.3093, allocations: 109 kB / 0.524 GB, free: 248 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.3093, allocations: 33.11 kB / 0.524 GB, free: 220 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.3093, allocations: 35.2 kB / 0.5241 GB, free: 192 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.3094, allocations: 325.2 kB / 0.5244 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.999e-05/0.3095, allocations: 22.03 kB / 0.5244 GB, free: 15.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.3096, allocations: 85.36 kB / 0.5245 GB, free: 15.78 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3098, allocations: 119.3 kB / 0.5246 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3098, allocations: 0 / 0.5246 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002359/0.3101, allocations: 139 kB / 0.5247 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.3101, allocations: 10.19 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3101, allocations: 5.969 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3101, allocations: 4.094 kB / 0.5247 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3102, allocations: 24.64 kB / 0.5248 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.3103, allocations: 8.047 kB / 0.5248 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.404e-05/0.3103, allocations: 19.05 kB / 0.5248 GB, free: 15.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.3104, allocations: 4.844 kB / 0.5248 GB, free: 15.58 MB / 398.1 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 (mean1.y_last,$PRE.mean1.y_last,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.549e-05/0.3105, allocations: 129.4 kB / 0.5249 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.922e-05/0.3105, allocations: 9.219 kB / 0.5249 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.382e-05/0.3105, allocations: 15.67 kB / 0.5249 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.714e-06/0.3105, allocations: 5.688 kB / 0.5249 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3105, allocations: 0 / 0.5249 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3106, allocations: 1.297 kB / 0.5249 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.3107, allocations: 197.8 kB / 0.5251 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3107, allocations: 1.672 kB / 0.5251 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.512e-05/0.3108, allocations: 15.17 kB / 0.5251 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3108, allocations: 1.562 kB / 0.5251 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.3109, allocations: 6.312 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3109, allocations: 8.438 kB / 0.5252 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3109, allocations: 9.156 kB / 0.5252 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.3112, allocations: 163.4 kB / 0.5253 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.85e-05/0.3112, allocations: 85.98 kB / 0.5254 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.3113, allocations: 6.219 kB / 0.5254 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.304e-05/0.3113, allocations: 6.703 kB / 0.5254 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.3114, allocations: 10.31 kB / 0.5254 GB, free: 14.99 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.3114, allocations: 5.109 kB / 0.5254 GB, free: 14.99 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.894e-05/0.3115, allocations: 115.3 kB / 0.5255 GB, free: 14.9 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3115, allocations: 96 / 0.5255 GB, free: 14.9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.3117, allocations: 26.69 kB / 0.5256 GB, free: 14.89 MB / 398.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.72e-05/0.3118, allocations: 95.19 kB / 0.5257 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002144/0.312, allocations: 78.27 kB / 0.5257 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3121, allocations: 448 / 0.5257 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.138e-05/0.3122, allocations: 42.48 kB / 0.5258 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.3124, allocations: 14.84 kB / 0.5258 GB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004692/0.3128, allocations: 269.5 kB / 0.526 GB, free: 14.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.3131, allocations: 0.7023 MB / 0.5267 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.262e-05/0.3131, allocations: 18.64 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3131, allocations: 4 kB / 0.5268 GB, free: 13.84 MB / 398.1 MB Notification: Performance of Templates: time 0.003216/0.3164, allocations: 1.365 MB / 0.5281 GB, free: 13.46 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches