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.001453/0.001453, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001654/0.001654, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.602/1.602, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2442/0.2442, allocations: 43.52 MB / 313.9 MB, free: 0.5195 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.001454/0.001454, allocations: 65.88 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1293, allocations: 57.79 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002736/0.132, allocations: 1.653 MB / 442.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008556/0.1329, allocations: 0.5658 MB / 442.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.06e-05/0.133, allocations: 4 kB / 442.8 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1332, allocations: 11.86 kB / 442.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.252e-05/0.1332, allocations: 15.81 kB / 442.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.1335, allocations: 55.88 kB / 442.9 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.1336, allocations: 107.7 kB / 443 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.1338, allocations: 36.11 kB / 443.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.454e-05/0.1339, allocations: 47.8 kB / 443.1 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.134, allocations: 51.75 kB / 443.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.134, allocations: 12 kB / 443.2 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.788e-05/0.1341, allocations: 8 kB / 443.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.203e-05/0.1341, allocations: 23.92 kB / 443.2 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/0.1342, allocations: 47.78 kB / 443.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.1343, allocations: 103.6 kB / 443.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1343, allocations: 0 / 443.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1343, allocations: 0 / 443.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.1344, allocations: 0 / 443.3 MB, free: 4.043 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.0006147/0.135, allocations: 408.3 kB / 443.7 MB, free: 3.598 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.135, allocations: 11.89 kB / 443.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.293e-05/0.1351, allocations: 46.67 kB / 443.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.535e-05/0.1351, allocations: 8.844 kB / 443.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.1353, allocations: 204 kB / 444 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.1353, allocations: 8.375 kB / 444 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.1353, allocations: 12.38 kB / 444 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.1355, allocations: 93.77 kB / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1355, allocations: 0 / 444.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.1356, allocations: 3.984 kB / 444.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1356, allocations: 0 / 444.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.1357, allocations: 55.91 kB / 444.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.1361, allocations: 360.6 kB / 444.5 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.1363, allocations: 66.59 kB / 444.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.028e-05/0.1363, allocations: 24.89 kB / 444.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1364, allocations: 0 / 444.6 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.1365, allocations: 103.3 kB / 444.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.943e-06/0.1365, allocations: 0 / 444.7 MB, free: 2.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002937/0.1368, allocations: 129.5 kB / 444.9 MB, free: 2.359 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.1369, allocations: 59.34 kB / 444.9 MB, free: 2.289 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.875e-05/0.137, allocations: 145.3 kB / 445.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.137, allocations: 29.7 kB / 445.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.974e-05/0.137, allocations: 104.2 kB / 445.2 MB, free: 2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.1371, allocations: 23.66 kB / 445.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.123e-05/0.1371, allocations: 34.08 kB / 445.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.489e-05/0.1372, allocations: 322.8 kB / 445.6 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.506e-05/0.1372, allocations: 27.98 kB / 445.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.663e-05/0.1373, allocations: 87.64 kB / 445.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.1375, allocations: 119.6 kB / 445.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1375, allocations: 0 / 445.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001979/0.1377, allocations: 141.4 kB / 445.9 MB, free: 1.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.1377, allocations: 4 kB / 445.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1377, allocations: 4 kB / 445.9 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1377, allocations: 4 kB / 445.9 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1379, allocations: 28.14 kB / 446 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1379, allocations: 7.938 kB / 446 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.489e-05/0.1379, allocations: 7.906 kB / 446 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.138, 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 7.554e-05/0.138, allocations: 133.7 kB / 446.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.1381, allocations: 15.89 kB / 446.1 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.189e-05/0.1381, allocations: 16.66 kB / 446.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1381, allocations: 0 / 446.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1381, allocations: 7.938 kB / 446.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1381, allocations: 4 kB / 446.2 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.1382, allocations: 197.6 kB / 446.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1382, allocations: 4 kB / 446.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.934e-05/0.1383, allocations: 11.98 kB / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1384, allocations: 0 / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.1384, allocations: 0 / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1384, allocations: 4 kB / 446.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1384, allocations: 3.938 kB / 446.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002642/0.1386, allocations: 164.9 kB / 446.5 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.1387, allocations: 88.95 kB / 446.6 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.1387, allocations: 11.98 kB / 446.6 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.907e-05/0.1388, allocations: 0 / 446.6 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.1388, allocations: 11.92 kB / 446.6 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.1388, allocations: 4 kB / 446.7 MB, free: 364 kB / 318.1 MB Notification: Performance of sorting global known variables: time 4.481e-05/0.1389, allocations: 107.2 kB / 446.8 MB, free: 256 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1389, allocations: 0 / 446.8 MB, free: 256 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002082/0.1391, allocations: 20.06 kB / 446.8 MB, free: 236 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.000567/0.1397, allocations: 0.7022 MB / 447.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.1399, allocations: 80.16 kB / 447.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1399, allocations: 4 kB / 447.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.736e-05/0.14, allocations: 35.91 kB / 447.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.1402, allocations: 19.88 kB / 447.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.1421, allocations: 1.643 MB / 449.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.1425, allocations: 0.7041 MB / 450 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.175e-05/0.1425, allocations: 12.55 kB / 450 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.1426, allocations: 23.44 kB / 450 MB, free: 12.82 MB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1426, allocations: 0 / 450 MB, free: 12.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02169/0.1643, allocations: 2.279 MB / 452.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/7.719, allocations: 11.98 kB / 452.3 MB, free: 10.54 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_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.csv","/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