Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.001279, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 75.88 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1142, allocations: 62.45 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.00278/0.117, allocations: 1.689 MB / 483.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000964/0.118, allocations: 0.5844 MB / 483.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.345e-05/0.1181, allocations: 4 kB / 483.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.1182, allocations: 7.875 kB / 483.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.377e-05/0.1183, allocations: 27.72 kB / 483.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.1185, allocations: 67.81 kB / 483.8 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.1187, allocations: 115.7 kB / 483.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.1189, allocations: 33.09 kB / 484 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.119, allocations: 51.78 kB / 484 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.1191, allocations: 59.75 kB / 484.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.1192, allocations: 8 kB / 484.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.611e-05/0.1192, allocations: 20 kB / 484.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.012e-05/0.1193, allocations: 27.86 kB / 484.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.538e-05/0.1194, allocations: 51.72 kB / 484.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001848/0.1195, allocations: 123.5 kB / 484.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1196, allocations: 0 / 484.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1196, allocations: 0 / 484.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.271e-06/0.1196, allocations: 0 / 484.3 MB, free: 1.684 MB / 350.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.0007048/0.1203, allocations: 423 kB / 484.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1203, allocations: 12.03 kB / 484.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.1205, allocations: 20.83 kB / 484.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.1208, allocations: 220.2 kB / 485 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.1208, allocations: 4.375 kB / 485 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.1208, allocations: 20.12 kB / 485 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.121, allocations: 89.64 kB / 485.1 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1211, allocations: 4 kB / 485.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.1211, allocations: 4 kB / 485.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.1211, allocations: 3.938 kB / 485.1 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001363/0.1212, allocations: 55.91 kB / 485.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.1218, allocations: 384.4 kB / 485.5 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.1219, allocations: 74.56 kB / 485.6 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.274e-05/0.122, allocations: 24.89 kB / 485.6 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.122, allocations: 0 / 485.6 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.1222, allocations: 95.34 kB / 485.7 MB, free: 120 kB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 3.105e-06/0.1222, allocations: 4 kB / 485.7 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003372/0.1226, allocations: 133.5 kB / 485.9 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.1226, allocations: 55.41 kB / 485.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1227, allocations: 145.8 kB / 486.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.1228, allocations: 25.7 kB / 486.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.1228, allocations: 108.1 kB / 486.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.1229, allocations: 35.45 kB / 486.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/0.1229, allocations: 33.66 kB / 486.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1231, allocations: 326.8 kB / 486.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.703e-05/0.1231, allocations: 23.98 kB / 486.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1232, allocations: 83.7 kB / 486.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.1234, allocations: 115.6 kB / 486.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.1234, allocations: 8 kB / 486.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002493/0.1237, allocations: 141.4 kB / 486.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1237, allocations: 7.938 kB / 486.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.1237, allocations: 4 kB / 486.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1237, allocations: 0 / 486.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1239, allocations: 27.92 kB / 487 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1239, allocations: 4.219 kB / 487 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.231e-05/0.124, allocations: 19.84 kB / 487 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.124, allocations: 8.359 kB / 487 MB, free: 14.72 MB / 366.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.0001056/0.1241, allocations: 129.8 kB / 487.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.1241, allocations: 11.84 kB / 487.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.1241, allocations: 12.72 kB / 487.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1242, allocations: 3.938 kB / 487.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1242, allocations: 4 kB / 487.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.1242, allocations: 3.984 kB / 487.2 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.1243, allocations: 205.6 kB / 487.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1243, allocations: 0 / 487.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.002e-05/0.1244, allocations: 8 kB / 487.4 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1245, allocations: 7.938 kB / 487.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.1245, allocations: 3.984 kB / 487.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1245, allocations: 0 / 487.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1245, allocations: 0 / 487.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.1248, allocations: 172.9 kB / 487.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.621e-05/0.1249, allocations: 96.83 kB / 487.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.1249, allocations: 8 kB / 487.7 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.445e-05/0.125, allocations: 7.984 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.125, allocations: 4.094 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.125, allocations: 11.98 kB / 487.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.294e-05/0.1251, allocations: 106.3 kB / 487.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1251, allocations: 0 / 487.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.1254, allocations: 23.94 kB / 487.8 MB, free: 13.82 MB / 366.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.0001207/0.1255, allocations: 107.2 kB / 487.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002036/0.1257, allocations: 79.84 kB / 488 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1257, allocations: 0 / 488 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.1258, allocations: 31.98 kB / 488 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.126, allocations: 20.14 kB / 488 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005093/0.1265, allocations: 265.8 kB / 488.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.1268, allocations: 0.7041 MB / 489 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.394e-05/0.1269, allocations: 12.55 kB / 489 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.703e-05/0.1269, allocations: 15.44 kB / 489 MB, free: 12.54 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1269, allocations: 4 kB / 489 MB, free: 12.53 MB / 366.1 MB Notification: Performance of Templates: time 0.003396/0.1303, allocations: 0.9819 MB / 490 MB, free: 11.55 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches