Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.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.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",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.001521/0.001521, allocations: 108 kB / 16.41 MB, free: 6.484 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.001781/0.001781, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.534/1.534, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2289/0.2289, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 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.00219/0.00219, allocations: 67.89 kB / 441.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1335, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003695/0.1373, allocations: 1.554 MB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000199/0.1375, allocations: 47.84 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.04e-05/0.1376, allocations: 3.938 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.1378, allocations: 19.86 kB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.631e-05/0.1378, allocations: 7.922 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.247e-05/0.1379, allocations: 19.98 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.1381, allocations: 67.81 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002741/0.1384, allocations: 135.4 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.157e-05/0.1384, allocations: 31.92 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.458e-05/0.1385, allocations: 43.78 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.623e-05/0.1385, allocations: 12 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.68e-05/0.1386, allocations: 8 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.184e-05/0.1386, allocations: 63.88 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.541e-05/0.1387, allocations: 63.61 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002016/0.1389, allocations: 151.3 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1389, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.139, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.139, allocations: 0 / 0.4896 GB, free: 10.07 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005154/0.1395, allocations: 446.6 kB / 0.49 GB, free: 9.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1395, allocations: 11.89 kB / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.125e-05/0.1396, allocations: 75.05 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.138e-05/0.1397, allocations: 20.8 kB / 0.4901 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1399, allocations: 216.2 kB / 0.4903 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1399, allocations: 16.81 kB / 0.4903 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.14, allocations: 20.38 kB / 0.4903 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.1403, allocations: 207.6 kB / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1403, allocations: 0 / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.1404, allocations: 12 kB / 0.4905 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.1404, allocations: 8 kB / 0.4905 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.1406, allocations: 133.6 kB / 0.4907 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006306/0.1412, allocations: 0.5063 MB / 0.4912 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.239e-05/0.1413, allocations: 42.5 kB / 0.4912 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.1414, allocations: 32.97 kB / 0.4912 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.607e-06/0.1414, allocations: 3.938 kB / 0.4912 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.1415, allocations: 30.56 kB / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.452e-06/0.1415, allocations: 0 / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002381/0.1417, allocations: 81.56 kB / 0.4913 GB, free: 8.059 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.1417, allocations: 51.41 kB / 0.4914 GB, free: 7.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.745e-05/0.1418, allocations: 117.8 kB / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1419, allocations: 25.7 kB / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.1419, allocations: 148.1 kB / 0.4917 GB, free: 7.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.142, allocations: 15.91 kB / 0.4917 GB, free: 7.672 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.142, allocations: 17.72 kB / 0.4917 GB, free: 7.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1421, allocations: 318.8 kB / 0.492 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.1422, allocations: 12 kB / 0.492 GB, free: 7.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.472e-05/0.1422, allocations: 11.98 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.342e-05/0.1423, allocations: 37.22 kB / 0.4921 GB, free: 7.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1423, allocations: 0 / 0.4921 GB, free: 7.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001219/0.1424, allocations: 69.58 kB / 0.4921 GB, free: 7.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.1424, allocations: 4 kB / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1425, allocations: 4 kB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.1425, allocations: 0 / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.25e-05/0.1426, allocations: 11.98 kB / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1426, allocations: 0 / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.1426, allocations: 4 kB / 0.4922 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.1426, allocations: 4 kB / 0.4922 GB, free: 7.164 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.000122/0.1427, allocations: 145.6 kB / 0.4923 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.1428, allocations: 7.953 kB / 0.4923 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.078e-05/0.1428, allocations: 7.969 kB / 0.4923 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1428, allocations: 0 / 0.4923 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1428, allocations: 3.984 kB / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1428, allocations: 0 / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/0.1432, allocations: 378.4 kB / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1432, allocations: 0 / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.075e-05/0.1432, allocations: 8 kB / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1433, allocations: 4 kB / 0.4927 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.1433, allocations: 3.984 kB / 0.4927 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1433, allocations: 0 / 0.4927 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.1433, allocations: 3.938 kB / 0.4927 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.1434, allocations: 167.4 kB / 0.4929 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.352e-05/0.1435, allocations: 77.11 kB / 0.4929 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.1435, allocations: 3.984 kB / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.439e-05/0.1436, allocations: 8 kB / 0.4929 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.84e-05/0.1436, allocations: 8.062 kB / 0.493 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.1436, allocations: 8 kB / 0.493 GB, free: 6.246 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.761e-05/0.1437, allocations: 87.27 kB / 0.493 GB, free: 6.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1437, allocations: 0 / 0.493 GB, free: 6.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.1439, allocations: 31.78 kB / 0.4931 GB, free: 6.129 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0004654/0.1444, allocations: 0.7085 MB / 0.4938 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.1445, allocations: 32.03 kB / 0.4938 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1445, allocations: 0 / 0.4938 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.372e-05/0.1446, allocations: 16 kB / 0.4938 GB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003063/0.1449, allocations: 27.66 kB / 0.4938 GB, free: 5.324 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1464, allocations: 1.442 MB / 0.4952 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.1467, allocations: 0.739 MB / 0.496 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.618e-05/0.1468, allocations: 4 kB / 0.496 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.218e-05/0.1468, allocations: 47.41 kB / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1468, allocations: 0 / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.1647, allocations: 1.988 MB / 0.498 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/7.967, allocations: 4 kB / 0.498 GB, free: 0.9844 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_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_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches