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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_4_0_0_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.00114/0.00114, allocations: 113 kB / 17.33 MB, free: 6.012 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.001087/0.001087, allocations: 193.3 kB / 18.25 MB, free: 5.102 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.444/1.444, allocations: 222.9 MB / 241.9 MB, free: 15.45 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.2446/0.2446, allocations: 44.17 MB / 336.2 MB, free: 2.887 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 65.19 kB / 408 MB, free: 27.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1173, allocations: 60.83 MB / 468.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002867/0.1202, allocations: 1.716 MB / 470.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008594/0.121, allocations: 0.5261 MB / 471.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.1211, allocations: 3.938 kB / 471.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.886e-05/0.1212, allocations: 3.938 kB / 471.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.427e-05/0.1213, allocations: 19.91 kB / 471.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000234/0.1216, allocations: 51.89 kB / 471.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.1217, allocations: 107.7 kB / 471.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.1218, allocations: 37.38 kB / 471.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.555e-05/0.1219, allocations: 47.78 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.82e-05/0.122, allocations: 47.77 kB / 471.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.1221, allocations: 16 kB / 471.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.739e-05/0.1221, allocations: 8 kB / 471.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.615e-05/0.1221, allocations: 27.91 kB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.689e-05/0.1222, allocations: 47.8 kB / 471.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.1223, allocations: 103.9 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.1223, allocations: 0 / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.12e-07/0.1223, allocations: 0 / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1223, allocations: 0 / 471.6 MB, free: 11.88 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.0006123/0.123, allocations: 419 kB / 472 MB, free: 11.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.123, allocations: 8.031 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.123, allocations: 38.75 kB / 472 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.644e-05/0.1231, allocations: 16.75 kB / 472 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.1233, allocations: 208.1 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1233, allocations: 8.375 kB / 472.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.1233, allocations: 8.375 kB / 472.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.1235, allocations: 97.77 kB / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.1235, allocations: 0 / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.1235, allocations: 0 / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1236, allocations: 8 kB / 472.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.1237, allocations: 47.91 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004733/0.1242, allocations: 380.5 kB / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.1243, allocations: 74.58 kB / 472.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.138e-05/0.1244, allocations: 32.83 kB / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.1244, allocations: 0 / 472.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.1246, allocations: 95.34 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.1246, allocations: 7.938 kB / 473 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002927/0.1249, allocations: 117.6 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.1249, allocations: 63.28 kB / 473.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.1251, allocations: 144.2 kB / 473.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.1251, allocations: 25.7 kB / 473.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.1251, allocations: 112 kB / 473.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.791e-05/0.1252, allocations: 27.61 kB / 473.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.573e-05/0.1252, allocations: 37.7 kB / 473.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.396e-05/0.1253, allocations: 318.8 kB / 473.8 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.785e-05/0.1254, allocations: 27.98 kB / 473.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/0.1255, allocations: 79.66 kB / 473.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.1257, allocations: 127.5 kB / 474 MB, free: 9.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1257, allocations: 4 kB / 474 MB, free: 9.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002274/0.1259, allocations: 133.4 kB / 474.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.1259, allocations: 4 kB / 474.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.126, allocations: 7.984 kB / 474.2 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.126, allocations: 7.938 kB / 474.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001039/0.1261, allocations: 19.94 kB / 474.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1261, allocations: 12.2 kB / 474.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.955e-05/0.1262, allocations: 11.91 kB / 474.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.1262, allocations: 4 kB / 474.2 MB, free: 8.91 MB / 350.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 8.853e-05/0.1263, allocations: 125.8 kB / 474.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.1263, allocations: 11.91 kB / 474.4 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.1263, allocations: 12.7 kB / 474.4 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1264, allocations: 4.312 kB / 474.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.1264, allocations: 0 / 474.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1264, allocations: 8 kB / 474.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.1265, allocations: 205.5 kB / 474.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1265, allocations: 7.938 kB / 474.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.235e-05/0.1266, allocations: 11.98 kB / 474.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1266, allocations: 96 / 474.6 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.1267, allocations: 4 kB / 474.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1267, allocations: 3.938 kB / 474.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1267, allocations: 3.984 kB / 474.6 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.127, allocations: 168.9 kB / 474.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.831e-05/0.127, allocations: 85.05 kB / 474.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.127, allocations: 4 kB / 474.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.1271, allocations: 11.92 kB / 474.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.033e-05/0.1272, allocations: 0 / 474.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.1272, allocations: 11.92 kB / 474.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.841e-05/0.1272, allocations: 108.9 kB / 475 MB, free: 8.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1272, allocations: 0 / 475 MB, free: 8.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002075/0.1275, allocations: 20 kB / 475 MB, free: 8.023 MB / 350.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.0005491/0.128, allocations: 0.7066 MB / 475.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.1282, allocations: 76.22 kB / 475.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1282, allocations: 4.312 kB / 475.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.322e-05/0.1283, allocations: 35.86 kB / 475.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.1285, allocations: 19.86 kB / 475.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.1301, allocations: 1.669 MB / 477.5 MB, free: 5.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.1303, allocations: 0.7119 MB / 478.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.486e-05/0.1304, allocations: 8.547 kB / 478.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.332e-05/0.1304, allocations: 31.42 kB / 478.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1304, allocations: 0 / 478.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.1/1.23, allocations: 2.174 MB / 480.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002468/1.23, allocations: 180.2 kB / 480.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.02/3.251, allocations: 0 / 480.6 MB, free: 2.25 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.RootMeanSquare.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches