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: "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001656, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.1 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 77.88 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1231, allocations: 62.44 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.004162/0.1274, allocations: 1.691 MB / 481.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.1287, allocations: 0.5844 MB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1288, allocations: 0 / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.129, allocations: 11.86 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.482e-05/0.1291, allocations: 19.81 kB / 482.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004142/0.1295, allocations: 63.81 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1298, allocations: 123.7 kB / 482.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1299, allocations: 29.11 kB / 482.6 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.1301, allocations: 59.7 kB / 482.7 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001458/0.1303, allocations: 55.77 kB / 482.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.1303, allocations: 8 kB / 482.8 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.1304, allocations: 16 kB / 482.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.371e-05/0.1305, allocations: 31.84 kB / 482.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.787e-05/0.1306, allocations: 51.73 kB / 482.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.1308, allocations: 119.9 kB / 483 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.1308, allocations: 0 / 483 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1308, allocations: 0 / 483 MB, free: 2.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1309, allocations: 0 / 483 MB, free: 2.348 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.0008492/0.1317, allocations: 423 kB / 483.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.1318, allocations: 12.03 kB / 483.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.681e-05/0.1318, allocations: 34.75 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002347/0.1321, allocations: 24.83 kB / 483.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/0.1323, allocations: 224.1 kB / 483.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.1324, allocations: 4.375 kB / 483.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.1324, allocations: 19.88 kB / 483.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002239/0.1326, allocations: 96.39 kB / 483.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1327, allocations: 8 kB / 483.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.1327, allocations: 0 / 483.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1327, allocations: 0 / 483.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001522/0.1328, allocations: 51.97 kB / 483.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.1335, allocations: 392.4 kB / 484.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.1337, allocations: 58.55 kB / 484.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.381e-05/0.1338, allocations: 24.98 kB / 484.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.1339, allocations: 7.922 kB / 484.3 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.1341, allocations: 99.34 kB / 484.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.255e-06/0.1341, allocations: 4 kB / 484.4 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004169/0.1346, allocations: 129.4 kB / 484.6 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.1346, allocations: 51.41 kB / 484.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1348, allocations: 149.9 kB / 484.8 MB, free: 384 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.1348, allocations: 29.7 kB / 484.8 MB, free: 348 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.603e-05/0.1349, allocations: 108 kB / 484.9 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.135, allocations: 31.55 kB / 484.9 MB, free: 204 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.006e-05/0.1351, allocations: 25.72 kB / 484.9 MB, free: 172 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.1353, allocations: 322.8 kB / 485.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.37e-05/0.1354, allocations: 27.98 kB / 485.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.1355, allocations: 91.64 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.1357, allocations: 115.6 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1357, allocations: 0 / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002909/0.136, allocations: 145.3 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.1361, allocations: 8.375 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.1361, allocations: 224 / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.1361, allocations: 8 kB / 485.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.1362, allocations: 19.98 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1363, allocations: 11.88 kB / 485.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.562e-05/0.1364, allocations: 15.84 kB / 485.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.1364, allocations: 11.98 kB / 485.7 MB, free: 15.34 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.000142/0.1365, allocations: 125.8 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.109e-05/0.1366, allocations: 11.84 kB / 485.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.1366, allocations: 12.72 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1366, allocations: 4 kB / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.1366, allocations: 0 / 485.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.1367, allocations: 7.984 kB / 485.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000229/0.1369, allocations: 213.5 kB / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1369, allocations: 0 / 486.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.137, allocations: 11.94 kB / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.137, allocations: 0 / 486.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1371, allocations: 7.984 kB / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1371, allocations: 0 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1371, allocations: 96 / 486.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003665/0.1374, allocations: 176.8 kB / 486.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.1375, allocations: 84.95 kB / 486.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.1375, allocations: 8.031 kB / 486.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.535e-05/0.1376, allocations: 3.984 kB / 486.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.1377, allocations: 4 kB / 486.4 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.1377, allocations: 7.984 kB / 486.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1378, allocations: 114.3 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1378, allocations: 4 kB / 486.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1381, allocations: 23.94 kB / 486.5 MB, free: 14.44 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.0006719/0.1387, allocations: 0.6982 MB / 487.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000243/0.139, allocations: 87.84 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.139, allocations: 0 / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.1391, allocations: 31.98 kB / 487.3 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.1393, allocations: 15.98 kB / 487.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.1411, allocations: 1.692 MB / 489 MB, free: 11.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.1415, allocations: 0.708 MB / 489.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.32e-05/0.1416, allocations: 8.547 kB / 489.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.03e-05/0.1417, allocations: 39.42 kB / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1417, allocations: 0 / 489.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.1615, allocations: 2.409 MB / 492.2 MB, free: 8.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.394/7.555, allocations: 13.06 kB / 492.2 MB, free: 8.594 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.csv","/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