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.001658/0.001658, allocations: 102.5 kB / 16.26 MB, free: 6.105 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.001994/0.001994, allocations: 185.8 kB / 17.19 MB, free: 5.73 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.611/1.611, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.2315/0.2315, allocations: 43.53 MB / 313.9 MB, free: 0.5391 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.001648/0.001648, allocations: 69.14 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1143, allocations: 57.78 MB / 440.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002704/0.117, allocations: 1.548 MB / 442.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001212/0.1172, allocations: 47.84 kB / 442.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.482e-05/0.1172, allocations: 7.938 kB / 442.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1174, allocations: 15.86 kB / 442.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.391e-05/0.1174, allocations: 7.922 kB / 442.2 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.949e-05/0.1175, allocations: 23.98 kB / 442.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.1176, allocations: 67.83 kB / 442.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.1179, allocations: 135.6 kB / 442.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.846e-05/0.1179, allocations: 27.92 kB / 442.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.118, allocations: 47.83 kB / 442.5 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.118, allocations: 8 kB / 442.5 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.462e-05/0.118, allocations: 8 kB / 442.5 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.552e-05/0.1181, allocations: 66.12 kB / 442.6 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.217e-05/0.1181, allocations: 67.55 kB / 442.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.1183, allocations: 143.5 kB / 442.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1183, allocations: 0 / 442.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1183, allocations: 4 kB / 442.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1183, allocations: 0 / 442.8 MB, free: 4.598 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0004206/0.1187, allocations: 439.4 kB / 443.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1188, allocations: 11.89 kB / 443.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.282e-05/0.1189, allocations: 67.02 kB / 443.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.49e-05/0.1189, allocations: 28.73 kB / 443.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.1191, allocations: 212.1 kB / 443.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.1191, allocations: 20.81 kB / 443.6 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.162e-05/0.1191, allocations: 20.38 kB / 443.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.1194, allocations: 207.6 kB / 443.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.1195, allocations: 0 / 443.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.1195, allocations: 12 kB / 443.8 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1195, allocations: 4 kB / 443.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.1197, allocations: 129.7 kB / 443.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005112/0.1202, allocations: 0.5178 MB / 444.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.708e-05/0.1203, allocations: 42.5 kB / 444.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.487e-05/0.1204, allocations: 28.97 kB / 444.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.1204, allocations: 4 kB / 444.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.917e-05/0.1204, allocations: 38.56 kB / 444.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.1204, allocations: 0 / 444.6 MB, free: 2.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002211/0.1206, allocations: 77.52 kB / 444.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.1207, allocations: 51.41 kB / 444.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.542e-05/0.1207, allocations: 109.8 kB / 444.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.436e-06/0.1208, allocations: 25.7 kB / 444.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.402e-05/0.1208, allocations: 140 kB / 445 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.1208, allocations: 23.72 kB / 445 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.1209, allocations: 21.7 kB / 445 MB, free: 2.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.1209, allocations: 314.8 kB / 445.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.825e-05/0.121, allocations: 15.98 kB / 445.3 MB, free: 1.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.778e-05/0.121, allocations: 8 kB / 445.3 MB, free: 1.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.457e-05/0.1211, allocations: 36.78 kB / 445.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1211, allocations: 0 / 445.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.604e-05/0.1212, allocations: 69.61 kB / 445.5 MB, free: 1.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1212, allocations: 4 kB / 445.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1212, allocations: 0 / 445.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1212, allocations: 4 kB / 445.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.372e-05/0.1213, allocations: 8 kB / 445.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1213, allocations: 0 / 445.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.215e-05/0.1213, allocations: 0 / 445.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.1214, allocations: 11.92 kB / 445.5 MB, free: 1.703 MB / 318.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 8.621e-05/0.1215, allocations: 141.7 kB / 445.6 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.1215, allocations: 7.906 kB / 445.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.751e-05/0.1215, allocations: 7.969 kB / 445.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.1215, allocations: 0 / 445.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1215, allocations: 0 / 445.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.1215, allocations: 3.984 kB / 445.6 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.1218, allocations: 378.8 kB / 446 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1218, allocations: 0 / 446 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.565e-05/0.1219, allocations: 15.98 kB / 446 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.1219, allocations: 4 kB / 446 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.1219, allocations: 0 / 446 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1219, allocations: 0 / 446 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1219, allocations: 3.938 kB / 446 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001153/0.122, allocations: 167.4 kB / 446.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.155e-05/0.122, allocations: 77.11 kB / 446.3 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.122, allocations: 8 kB / 446.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.109e-05/0.1221, allocations: 4 kB / 446.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.1221, allocations: 7.922 kB / 446.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-06/0.1221, allocations: 4 kB / 446.3 MB, free: 0.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.604e-05/0.1222, allocations: 83.28 kB / 446.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1222, allocations: 0 / 446.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1224, allocations: 27.75 kB / 446.4 MB, free: 0.6836 MB / 318.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.0003669/0.1228, allocations: 0.7046 MB / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.1229, allocations: 36.05 kB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1229, allocations: 0 / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.517e-05/0.123, allocations: 19.92 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.1233, allocations: 19.83 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.1248, allocations: 1.45 MB / 448.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1251, allocations: 0.7275 MB / 449.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.054e-05/0.1252, allocations: 7.984 kB / 449.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.066e-05/0.1252, allocations: 47.42 kB / 449.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1252, allocations: 0 / 449.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.1454, allocations: 1.94 MB / 451.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.665/7.81, allocations: 0.875 kB / 451.4 MB, free: 11.61 MB / 334.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