Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003937/0.003937, allocations: 100.4 kB / 15.87 MB, free: 6.309 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.001046/0.001046, allocations: 195.1 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 222.6 MB, free: 4.965 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2988/0.2988, allocations: 43.49 MB / 313.5 MB, free: 8.609 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 70.55 kB / 382.1 MB, free: 8.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1048, allocations: 57.77 MB / 439.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.003722/0.1086, allocations: 1.721 MB / 441.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.1098, allocations: 0.5697 MB / 442.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.1099, allocations: 0 / 442.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.11, allocations: 3.938 kB / 442.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.144e-05/0.1101, allocations: 23.86 kB / 442.2 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1104, allocations: 43.95 kB / 442.3 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1106, allocations: 107.6 kB / 442.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.1108, allocations: 27.97 kB / 442.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.1109, allocations: 35.86 kB / 442.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1111, allocations: 39.83 kB / 442.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.819e-05/0.1111, allocations: 8 kB / 442.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.384e-05/0.1111, allocations: 4 kB / 442.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.302e-05/0.1112, allocations: 23.92 kB / 442.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.921e-05/0.1113, allocations: 43.72 kB / 442.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.1115, allocations: 99.89 kB / 442.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1115, allocations: 0 / 442.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1115, allocations: 3.938 kB / 442.7 MB, free: 12.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1115, allocations: 0 / 442.7 MB, free: 12.29 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008871/0.1124, allocations: 415.1 kB / 443.1 MB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.1125, allocations: 12.02 kB / 443.1 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.515e-05/0.1126, allocations: 38.75 kB / 443.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.157e-05/0.1126, allocations: 8.844 kB / 443.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.1129, allocations: 208.1 kB / 443.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.1129, allocations: 384 / 443.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.1129, allocations: 12.38 kB / 443.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.1132, allocations: 89.77 kB / 443.4 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.1132, allocations: 3.938 kB / 443.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.1133, allocations: 8 kB / 443.4 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1133, allocations: 4 kB / 443.4 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.1135, allocations: 47.97 kB / 443.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000683/0.1142, allocations: 364.6 kB / 443.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.1143, allocations: 62.55 kB / 443.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.068e-05/0.1144, allocations: 24.94 kB / 443.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.1145, allocations: 4 kB / 443.9 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.1147, allocations: 95.28 kB / 444 MB, free: 10.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.784e-06/0.1148, allocations: 7.938 kB / 444 MB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004434/0.1152, allocations: 129.5 kB / 444.2 MB, free: 10.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.1153, allocations: 55.41 kB / 444.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1154, allocations: 141.7 kB / 444.3 MB, free: 10.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.1155, allocations: 29.7 kB / 444.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.478e-05/0.1155, allocations: 104.3 kB / 444.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.1156, allocations: 27.61 kB / 444.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.136e-05/0.1157, allocations: 41.7 kB / 444.5 MB, free: 10.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.1158, allocations: 314.8 kB / 444.9 MB, free: 9.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.349e-05/0.1159, allocations: 27.92 kB / 444.9 MB, free: 9.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1161, allocations: 83.7 kB / 445 MB, free: 9.719 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.1163, allocations: 123.6 kB / 445.1 MB, free: 9.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1163, allocations: 4 kB / 445.1 MB, free: 9.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003205/0.1166, allocations: 137.4 kB / 445.2 MB, free: 9.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.1167, allocations: 11.28 kB / 445.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1167, allocations: 0 / 445.2 MB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1167, allocations: 4 kB / 445.2 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.1169, allocations: 23.92 kB / 445.3 MB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.1169, allocations: 12.16 kB / 445.3 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001122/0.117, allocations: 15.89 kB / 445.3 MB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.117, allocations: 8 kB / 445.3 MB, free: 9.355 MB / 382.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,$PRE.mean1.y,$whenCondition2,$whenCondition1,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y) * 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.0001606/0.1172, allocations: 129.7 kB / 445.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.1172, allocations: 7.906 kB / 445.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.1173, allocations: 8.719 kB / 445.4 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1173, allocations: 4 kB / 445.4 MB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/0.1173, allocations: 7.922 kB / 445.5 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1173, allocations: 4 kB / 445.5 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.1175, allocations: 197.6 kB / 445.6 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1175, allocations: 0 / 445.6 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.1177, allocations: 15.98 kB / 445.7 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1177, allocations: 0 / 445.7 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.904e-05/0.1177, allocations: 8 kB / 445.7 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1177, allocations: 4.359 kB / 445.7 MB, free: 8.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1177, allocations: 3.938 kB / 445.7 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004282/0.1182, allocations: 172.9 kB / 445.8 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.1182, allocations: 85.02 kB / 445.9 MB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.1183, allocations: 4.031 kB / 445.9 MB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.407e-05/0.1184, allocations: 3.938 kB / 445.9 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.1184, allocations: 11.92 kB / 446 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.1185, allocations: 11.94 kB / 446 MB, free: 8.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.1186, allocations: 111.2 kB / 446.1 MB, free: 8.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1186, allocations: 0 / 446.1 MB, free: 8.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.119, allocations: 16 kB / 446.1 MB, free: 8.469 MB / 382.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,rootMeanSquare.mean.y) * 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.0007682/0.1197, allocations: 0.7022 MB / 446.8 MB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.12, allocations: 84.2 kB / 446.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.12, allocations: 4.125 kB / 446.9 MB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.1201, allocations: 27.98 kB / 446.9 MB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.1204, allocations: 15.88 kB / 446.9 MB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.1229, allocations: 1.66 MB / 448.6 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.1234, allocations: 0.7159 MB / 449.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.493e-05/0.1234, allocations: 8.547 kB / 449.3 MB, free: 5.066 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.382e-05/0.1235, allocations: 31.42 kB / 449.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1235, allocations: 0 / 449.3 MB, free: 5.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01203/0.1356, allocations: 2.115 MB / 451.4 MB, free: 2.918 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002051/0.1358, allocations: 179.5 kB / 451.6 MB, free: 2.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/1.81, allocations: 0 / 451.6 MB, free: 2.668 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/RootMeanSquare/RootMeanSquare.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches