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.001115/0.001115, allocations: 105 kB / 16.4 MB, free: 6.512 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.001026/0.001026, allocations: 189.5 kB / 17.34 MB, free: 5.734 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.381/1.381, 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.1987/0.1987, allocations: 43.53 MB / 314.1 MB, free: 448 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.00215/0.00215, allocations: 69.45 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1137, allocations: 57.78 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002688/0.1164, allocations: 1.558 MB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001369/0.1166, allocations: 47.83 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.349e-05/0.1166, allocations: 7.938 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.1168, allocations: 19.86 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.331e-05/0.1168, allocations: 3.938 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.837e-05/0.1169, allocations: 23.97 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001306/0.1171, allocations: 67.81 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.1174, allocations: 131.4 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.409e-05/0.1174, allocations: 31.91 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.166e-05/0.1175, allocations: 47.78 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.1175, allocations: 8 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.138e-05/0.1175, allocations: 12 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.092e-05/0.1176, allocations: 59.89 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.976e-05/0.1177, allocations: 67.59 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.1179, allocations: 151.3 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1179, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1179, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.1179, allocations: 0 / 0.4896 GB, free: 10.06 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.0005023/0.1184, allocations: 443.2 kB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1185, allocations: 11.89 kB / 0.49 GB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.707e-05/0.1186, allocations: 79.05 kB / 0.4901 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.1186, allocations: 20.8 kB / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.1188, allocations: 216.1 kB / 0.4903 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.1189, allocations: 16.81 kB / 0.4903 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.1189, allocations: 20.38 kB / 0.4903 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003535/0.1193, allocations: 207.6 kB / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1193, allocations: 0 / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.1193, allocations: 12 kB / 0.4905 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1193, allocations: 4 kB / 0.4905 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.1196, allocations: 137.6 kB / 0.4907 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.1202, allocations: 0.5063 MB / 0.4912 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.989e-05/0.1203, allocations: 38.56 kB / 0.4912 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.993e-05/0.1203, allocations: 28.97 kB / 0.4912 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.1204, allocations: 4 kB / 0.4912 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1204, allocations: 34.56 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.1204, allocations: 3.938 kB / 0.4913 GB, free: 8.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.000223/0.1206, allocations: 77.56 kB / 0.4913 GB, free: 8.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.1207, allocations: 55.34 kB / 0.4914 GB, free: 7.988 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.238e-05/0.1208, allocations: 109.8 kB / 0.4915 GB, free: 7.871 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1208, allocations: 29.7 kB / 0.4915 GB, free: 7.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.533e-05/0.1209, allocations: 148.1 kB / 0.4917 GB, free: 7.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.1209, allocations: 15.89 kB / 0.4917 GB, free: 7.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.1209, allocations: 17.72 kB / 0.4917 GB, free: 7.645 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.1211, allocations: 314.8 kB / 0.492 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.451e-05/0.1211, allocations: 15.98 kB / 0.492 GB, free: 7.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.024e-05/0.1212, allocations: 8.25 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.23e-05/0.1212, allocations: 40.97 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1212, allocations: 0 / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001217/0.1214, allocations: 73.55 kB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.1214, allocations: 4 kB / 0.4921 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1214, allocations: 0 / 0.4921 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1214, allocations: 4 kB / 0.4921 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.791e-05/0.1215, allocations: 8 kB / 0.4922 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.1215, allocations: 0 / 0.4922 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.497e-05/0.1216, allocations: 3.984 kB / 0.4922 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.1216, allocations: 8 kB / 0.4922 GB, free: 7.156 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.0001212/0.1217, allocations: 141.6 kB / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.1217, allocations: 7.953 kB / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.1218, allocations: 11.95 kB / 0.4923 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1218, allocations: 0 / 0.4923 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1218, allocations: 0 / 0.4923 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1218, allocations: 0 / 0.4923 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.1221, allocations: 374.4 kB / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1222, allocations: 4 kB / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.836e-05/0.1222, allocations: 8 kB / 0.4927 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1222, allocations: 0 / 0.4927 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1222, allocations: 4 kB / 0.4927 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1222, allocations: 0 / 0.4927 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1222, allocations: 3.938 kB / 0.4927 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.1224, allocations: 167.5 kB / 0.4929 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.1224, allocations: 81.11 kB / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1225, allocations: 7.938 kB / 0.4929 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.11e-05/0.1225, allocations: 4 kB / 0.4929 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.1226, allocations: 7.922 kB / 0.493 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.1226, allocations: 0 / 0.493 GB, free: 6.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.31e-05/0.1226, allocations: 87.28 kB / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1226, allocations: 0 / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.1228, allocations: 31.78 kB / 0.4931 GB, free: 6.133 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.0004725/0.1233, allocations: 0.7123 MB / 0.4938 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.1235, allocations: 28.05 kB / 0.4938 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1235, allocations: 8 kB / 0.4938 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.195e-05/0.1235, allocations: 15.92 kB / 0.4938 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.1238, allocations: 27.59 kB / 0.4938 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.1253, allocations: 1.442 MB / 0.4952 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.1256, allocations: 0.739 MB / 0.496 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.245e-05/0.1256, allocations: 4 kB / 0.496 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.309e-05/0.1257, allocations: 47.42 kB / 0.496 GB, free: 2.98 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1257, allocations: 0 / 0.496 GB, free: 2.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.1447, allocations: 1.989 MB / 0.498 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.492/7.637, allocations: 4 kB / 0.498 GB, free: 0.9805 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