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.001226/0.001226, allocations: 101.7 kB / 15.98 MB, free: 6.332 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.001241/0.001241, allocations: 192.2 kB / 16.9 MB, free: 6.184 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.423/1.423, allocations: 205.1 MB / 222.8 MB, free: 4.703 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.3044/0.3044, allocations: 43.5 MB / 313.6 MB, free: 8.504 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.001413/0.001413, allocations: 67.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1067, allocations: 57.78 MB / 440.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002942/0.1097, allocations: 1.713 MB / 441.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009346/0.1106, allocations: 0.562 MB / 442.4 MB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.082e-05/0.1107, allocations: 11.94 kB / 442.4 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.1109, allocations: 7.875 kB / 442.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.091e-05/0.1109, allocations: 3.938 kB / 442.4 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.1112, allocations: 51.89 kB / 442.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.1114, allocations: 103.8 kB / 442.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1115, allocations: 43.89 kB / 442.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.467e-05/0.1116, allocations: 51.83 kB / 442.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.1117, allocations: 43.78 kB / 442.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.1118, allocations: 8 kB / 442.7 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.979e-05/0.1118, allocations: 12 kB / 442.7 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.603e-05/0.1118, allocations: 23.92 kB / 442.7 MB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.651e-05/0.1119, allocations: 55.66 kB / 442.8 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.1121, allocations: 95.95 kB / 442.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.1121, allocations: 0 / 442.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1121, allocations: 0 / 442.9 MB, free: 11.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1121, allocations: 0 / 442.9 MB, free: 11.85 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.0006684/0.1128, allocations: 419 kB / 443.3 MB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1128, allocations: 11.89 kB / 443.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.796e-05/0.1129, allocations: 38.73 kB / 443.3 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.55e-05/0.1129, allocations: 12.84 kB / 443.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.1131, allocations: 204 kB / 443.5 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1131, allocations: 8.375 kB / 443.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.922e-05/0.1132, allocations: 12.38 kB / 443.6 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002234/0.1134, allocations: 85.77 kB / 443.6 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.1135, allocations: 8 kB / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1135, allocations: 0 / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1135, allocations: 0 / 443.7 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001381/0.1136, allocations: 47.97 kB / 443.7 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006174/0.1143, allocations: 372.5 kB / 444.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1144, allocations: 62.5 kB / 444.1 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/0.1145, allocations: 24.98 kB / 444.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1145, allocations: 4 kB / 444.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000217/0.1147, allocations: 99.34 kB / 444.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 5.02e-06/0.1148, allocations: 3.984 kB / 444.3 MB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003579/0.1151, allocations: 125.5 kB / 444.4 MB, free: 10.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.1152, allocations: 55.41 kB / 444.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1153, allocations: 145.3 kB / 444.6 MB, free: 9.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1153, allocations: 29.7 kB / 444.6 MB, free: 9.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.604e-05/0.1154, allocations: 104.3 kB / 444.7 MB, free: 9.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.1155, allocations: 27.98 kB / 444.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.241e-05/0.1155, allocations: 33.7 kB / 444.8 MB, free: 9.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1157, allocations: 322.8 kB / 445.1 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.665e-05/0.1157, allocations: 35.86 kB / 445.1 MB, free: 9.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.1159, allocations: 79.64 kB / 445.2 MB, free: 9.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.116, allocations: 131.6 kB / 445.3 MB, free: 9.117 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1161, allocations: 0 / 445.3 MB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002351/0.1163, allocations: 137.4 kB / 445.5 MB, free: 8.977 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.1163, allocations: 7.938 kB / 445.5 MB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.1163, allocations: 4 kB / 445.5 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1164, allocations: 0 / 445.5 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.1165, allocations: 36.14 kB / 445.5 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.1165, allocations: 7.938 kB / 445.5 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.158e-05/0.1166, allocations: 7.906 kB / 445.5 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.1166, allocations: 4 kB / 445.5 MB, free: 8.91 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.0001187/0.1167, allocations: 129.8 kB / 445.7 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.972e-05/0.1168, allocations: 7.906 kB / 445.7 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.696e-05/0.1168, allocations: 16.66 kB / 445.7 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1168, allocations: 0 / 445.7 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1168, allocations: 7.938 kB / 445.7 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1168, allocations: 0 / 445.7 MB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.117, allocations: 201.6 kB / 445.9 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.117, allocations: 0 / 445.9 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.1171, allocations: 15.98 kB / 445.9 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1172, allocations: 0 / 445.9 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1172, allocations: 4 kB / 445.9 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1172, allocations: 0 / 445.9 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1172, allocations: 3.938 kB / 445.9 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.1176, allocations: 168.9 kB / 446.1 MB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.612e-05/0.1176, allocations: 85.05 kB / 446.2 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.1177, allocations: 3.984 kB / 446.2 MB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.708e-05/0.1178, allocations: 8 kB / 446.2 MB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.1178, allocations: 11.92 kB / 446.2 MB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.1178, allocations: 4 kB / 446.2 MB, free: 8.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.447e-05/0.1179, allocations: 103.2 kB / 446.3 MB, free: 8.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1179, allocations: 0 / 446.3 MB, free: 8.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.1182, allocations: 24.06 kB / 446.3 MB, free: 8.035 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.0005854/0.1188, allocations: 0.7139 MB / 447 MB, free: 7.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002079/0.119, allocations: 80.2 kB / 447.1 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.119, allocations: 0 / 447.1 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.372e-05/0.1191, allocations: 43.91 kB / 447.1 MB, free: 7.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.1193, allocations: 11.94 kB / 447.1 MB, free: 7.156 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.1209, allocations: 1.666 MB / 448.8 MB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.1212, allocations: 0.708 MB / 449.5 MB, free: 4.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.957e-05/0.1213, allocations: 12.55 kB / 449.5 MB, free: 4.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.1213, allocations: 23.44 kB / 449.6 MB, free: 4.59 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1213, allocations: 0 / 449.6 MB, free: 4.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1197/0.2411, allocations: 2.176 MB / 451.7 MB, free: 2.426 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002537/0.2414, allocations: 187.3 kB / 451.9 MB, free: 2.172 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.185, allocations: 4.062 kB / 451.9 MB, free: 2.168 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