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.00168/0.00168, allocations: 108.4 kB / 16.27 MB, free: 6 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.002202/0.002202, allocations: 190 kB / 17.2 MB, free: 5.617 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.598/1.598, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2136/0.2136, allocations: 43.53 MB / 313.9 MB, free: 0.5312 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.001553/0.001553, allocations: 71.05 kB / 382.8 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1079, allocations: 57.79 MB / 440.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002941/0.1109, allocations: 1.653 MB / 442.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009079/0.1118, allocations: 0.5658 MB / 442.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.647e-05/0.1119, allocations: 7.938 kB / 442.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001129/0.1121, allocations: 11.86 kB / 442.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.307e-05/0.1121, allocations: 15.86 kB / 442.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.1124, allocations: 55.81 kB / 442.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.1126, allocations: 107.7 kB / 443 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.1128, allocations: 36.09 kB / 443.1 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.624e-05/0.1129, allocations: 55.78 kB / 443.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.113, allocations: 47.77 kB / 443.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.911e-05/0.113, allocations: 12 kB / 443.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.05e-05/0.1131, allocations: 11.94 kB / 443.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.132e-05/0.1131, allocations: 23.91 kB / 443.2 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.484e-05/0.1132, allocations: 43.8 kB / 443.3 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.1133, allocations: 99.67 kB / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.1134, allocations: 0 / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1134, allocations: 0 / 443.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.497e-05/0.1135, allocations: 0 / 443.3 MB, free: 4.051 MB / 318.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.0006532/0.1141, allocations: 411.1 kB / 443.7 MB, free: 3.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.1142, allocations: 11.89 kB / 443.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.966e-05/0.1142, allocations: 42.73 kB / 443.8 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.682e-05/0.1142, allocations: 8.844 kB / 443.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.1144, allocations: 212 kB / 444 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1144, allocations: 8.375 kB / 444 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.369e-05/0.1145, allocations: 8.375 kB / 444 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.1146, allocations: 97.77 kB / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1147, allocations: 0 / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1147, allocations: 0 / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1147, allocations: 0 / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.1148, allocations: 47.97 kB / 444.2 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004319/0.1153, allocations: 364.6 kB / 444.5 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.1154, allocations: 58.59 kB / 444.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.864e-05/0.1155, allocations: 28.95 kB / 444.6 MB, free: 2.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1155, allocations: 3.938 kB / 444.6 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.1156, allocations: 103.3 kB / 444.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.1157, allocations: 0 / 444.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003126/0.116, allocations: 121.5 kB / 444.8 MB, free: 2.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.808e-05/0.116, allocations: 59.39 kB / 444.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.367e-05/0.1161, allocations: 149.4 kB / 445 MB, free: 2.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.1161, allocations: 26.08 kB / 445.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.196e-05/0.1162, allocations: 108.2 kB / 445.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.1162, allocations: 23.66 kB / 445.2 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.696e-05/0.1163, allocations: 37.7 kB / 445.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.12e-05/0.1163, allocations: 322.8 kB / 445.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.369e-05/0.1164, allocations: 31.98 kB / 445.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.363e-05/0.1165, allocations: 87.16 kB / 445.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.1167, allocations: 127.6 kB / 445.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1167, allocations: 0 / 445.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002019/0.1169, allocations: 137.4 kB / 445.9 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.1169, allocations: 4 kB / 445.9 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1169, allocations: 4 kB / 445.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1169, allocations: 4 kB / 445.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1171, allocations: 24.2 kB / 446 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.1171, allocations: 11.88 kB / 446 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.722e-05/0.1171, allocations: 11.91 kB / 446 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1172, allocations: 8 kB / 446 MB, free: 1.121 MB / 318.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 8.309e-05/0.1173, allocations: 129.7 kB / 446.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.892e-05/0.1173, allocations: 15.89 kB / 446.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.1173, allocations: 8.719 kB / 446.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1173, allocations: 0 / 446.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1173, allocations: 7.938 kB / 446.2 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1174, allocations: 4 kB / 446.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.1175, allocations: 201.5 kB / 446.4 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1175, allocations: 0 / 446.4 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.131e-05/0.1176, allocations: 15.98 kB / 446.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1176, allocations: 0 / 446.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1176, allocations: 0 / 446.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.1176, allocations: 4 kB / 446.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1176, allocations: 3.938 kB / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.1179, allocations: 169 kB / 446.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.1179, allocations: 84.92 kB / 446.6 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.118, allocations: 4 kB / 446.6 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.118, allocations: 7.984 kB / 446.6 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.881e-05/0.1181, allocations: 7.938 kB / 446.6 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.1181, allocations: 7.984 kB / 446.7 MB, free: 372 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.81e-05/0.1182, allocations: 103.3 kB / 446.8 MB, free: 268 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1182, allocations: 96 / 446.8 MB, free: 268 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.1184, allocations: 24 kB / 446.8 MB, free: 244 kB / 318.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.0005196/0.1189, allocations: 0.6944 MB / 447.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002271/0.1191, allocations: 88.28 kB / 447.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1191, allocations: 0 / 447.6 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.422e-05/0.1192, allocations: 31.98 kB / 447.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.1194, allocations: 27.86 kB / 447.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.1212, allocations: 1.644 MB / 449.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.1215, allocations: 0.7041 MB / 450 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.542e-05/0.1216, allocations: 8.562 kB / 450 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.427e-05/0.1217, allocations: 31.42 kB / 450 MB, free: 12.83 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1217, allocations: 0 / 450 MB, free: 12.83 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02286/0.1445, allocations: 2.265 MB / 452.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.864/8.009, allocations: 12.05 kB / 452.3 MB, free: 10.56 MB / 334.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches