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.001328/0.001328, allocations: 117.2 kB / 17.78 MB, free: 5.266 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.001462/0.001462, allocations: 184.2 kB / 18.71 MB, free: 4.344 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.429/1.429, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2326/0.2326, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 64.14 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4173, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002833/0.4202, allocations: 1.672 MB / 0.5205 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009813/0.4212, allocations: 0.5297 MB / 0.521 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.616e-05/0.4213, allocations: 2.281 kB / 0.521 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.4214, allocations: 14.08 kB / 0.521 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.4214, allocations: 19.59 kB / 0.5211 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.4217, allocations: 61.88 kB / 0.5211 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.4219, allocations: 109.8 kB / 0.5212 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.4221, allocations: 35.42 kB / 0.5213 GB, free: 1.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.901e-05/0.4222, allocations: 46.42 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.4223, allocations: 54.05 kB / 0.5214 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.4223, allocations: 13.91 kB / 0.5214 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.307e-05/0.4224, allocations: 10.12 kB / 0.5214 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.015e-05/0.4224, allocations: 24.42 kB / 0.5214 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.315e-05/0.4225, allocations: 48.69 kB / 0.5215 GB, free: 1.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001835/0.4227, allocations: 109.8 kB / 0.5216 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4227, allocations: 1.875 kB / 0.5216 GB, free: 1.773 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4227, allocations: 0 / 0.5216 GB, free: 1.773 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.4227, allocations: 0 / 0.5216 GB, free: 1.773 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.0006984/0.4234, allocations: 414.2 kB / 0.522 GB, free: 1.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.4235, allocations: 9.719 kB / 0.522 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.4235, allocations: 15.25 kB / 0.522 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.4237, allocations: 205.1 kB / 0.5222 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.4237, allocations: 3.688 kB / 0.5222 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.4238, allocations: 11.08 kB / 0.5222 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.424, allocations: 99.2 kB / 0.5223 GB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.424, allocations: 5.609 kB / 0.5223 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.4241, allocations: 1.719 kB / 0.5223 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.4241, allocations: 2.156 kB / 0.5223 GB, free: 1.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.4242, allocations: 51.62 kB / 0.5223 GB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005352/0.4248, allocations: 379.4 kB / 0.5227 GB, free: 0.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.4249, allocations: 64.3 kB / 0.5228 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.744e-05/0.425, allocations: 28.25 kB / 0.5228 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.425, allocations: 1.125 kB / 0.5228 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/0.4253, allocations: 95.92 kB / 0.5229 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.555e-06/0.4253, allocations: 4 kB / 0.5229 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003411/0.4256, allocations: 128.2 kB / 0.523 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.4256, allocations: 62.25 kB / 0.5231 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.4258, allocations: 134.5 kB / 0.5232 GB, free: 396 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.4258, allocations: 31.97 kB / 0.5232 GB, free: 360 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.373e-05/0.4258, allocations: 104 kB / 0.5233 GB, free: 260 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/0.4259, allocations: 29.61 kB / 0.5234 GB, free: 236 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.038e-05/0.4259, allocations: 30.86 kB / 0.5234 GB, free: 212 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.426, allocations: 333.2 kB / 0.5237 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.234e-05/0.4261, allocations: 27.02 kB / 0.5237 GB, free: 15.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.4262, allocations: 80.55 kB / 0.5238 GB, free: 15.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.4264, allocations: 124.4 kB / 0.5239 GB, free: 15.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4265, allocations: 4 kB / 0.5239 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002672/0.4267, allocations: 137.9 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.4267, allocations: 7.156 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.4268, allocations: 1.094 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.4268, allocations: 4.188 kB / 0.5241 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.4269, allocations: 29.2 kB / 0.5241 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4269, allocations: 2.922 kB / 0.5241 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.427, allocations: 18.47 kB / 0.5241 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.617e-05/0.427, allocations: 9.906 kB / 0.5241 GB, free: 15.59 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 0.0001091/0.4272, allocations: 126.7 kB / 0.5242 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.097e-05/0.4272, allocations: 8.594 kB / 0.5243 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.898e-05/0.4272, allocations: 12.34 kB / 0.5243 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.4272, allocations: 5.125 kB / 0.5243 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4273, allocations: 0.7969 kB / 0.5243 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4273, allocations: 1.094 kB / 0.5243 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.4275, allocations: 205.5 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4275, allocations: 1.125 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.795e-05/0.4276, allocations: 13.02 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.4276, allocations: 0 / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.4276, allocations: 6.156 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.4276, allocations: 6.141 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4276, allocations: 3.938 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.428, allocations: 163.8 kB / 0.5247 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.45e-05/0.428, allocations: 88.56 kB / 0.5247 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.4281, allocations: 1.953 kB / 0.5247 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.4281, allocations: 8.016 kB / 0.5248 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.4282, allocations: 6.172 kB / 0.5248 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.4282, allocations: 7.422 kB / 0.5248 GB, free: 15.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.85e-05/0.4283, allocations: 111.2 kB / 0.5249 GB, free: 14.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4283, allocations: 4.031 kB / 0.5249 GB, free: 14.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002633/0.4286, allocations: 24.02 kB / 0.5249 GB, free: 14.91 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 0.0001094/0.4287, allocations: 103.3 kB / 0.525 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002618/0.429, allocations: 78.44 kB / 0.5251 GB, free: 14.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.429, allocations: 0 / 0.5251 GB, free: 14.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.816e-05/0.4291, allocations: 30.38 kB / 0.5251 GB, free: 14.79 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.4293, allocations: 14.56 kB / 0.5251 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005564/0.4299, allocations: 253.2 kB / 0.5254 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.4302, allocations: 0.7012 MB / 0.526 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.154e-05/0.4302, allocations: 12.72 kB / 0.5261 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.998e-05/0.4303, allocations: 14.28 kB / 0.5261 GB, free: 13.89 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4303, allocations: 4 kB / 0.5261 GB, free: 13.89 MB / 398.1 MB Notification: Performance of Templates: time 0.003987/0.4343, allocations: 0.9362 MB / 0.527 GB, free: 13.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches