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.0013/0.0013, allocations: 101.5 kB / 16.4 MB, free: 6.406 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.001294/0.001294, allocations: 193.3 kB / 17.34 MB, free: 5.691 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.596/1.596, allocations: 205.1 MB / 223.2 MB, free: 12.2 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.2464/0.2464, allocations: 43.52 MB / 314.1 MB, free: 456 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.002109/0.002109, allocations: 69.78 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1341, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002947/0.137, allocations: 1.55 MB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001337/0.1372, allocations: 47.84 kB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.553e-05/0.1373, allocations: 7.938 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.1374, allocations: 19.86 kB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.299e-05/0.1375, allocations: 3.938 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.468e-05/0.1375, allocations: 19.97 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.1377, allocations: 71.81 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.138, allocations: 131.4 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.919e-05/0.138, allocations: 31.92 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.223e-05/0.1381, allocations: 43.78 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.1381, allocations: 8 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.801e-05/0.1382, allocations: 12 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.979e-05/0.1383, allocations: 67.88 kB / 0.4894 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.926e-05/0.1383, allocations: 63.61 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.1386, allocations: 155.3 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1386, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.1386, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1386, allocations: 3.938 kB / 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.0005325/0.1391, allocations: 443.2 kB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.1392, allocations: 11.89 kB / 0.49 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.994e-05/0.1393, allocations: 71.11 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.878e-05/0.1393, allocations: 20.8 kB / 0.4901 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.1395, allocations: 212.2 kB / 0.4903 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.1396, allocations: 20.8 kB / 0.4903 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.553e-05/0.1396, allocations: 16.38 kB / 0.4903 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.14, allocations: 211.6 kB / 0.4905 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.14, allocations: 0 / 0.4905 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.14, allocations: 4 kB / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.14, allocations: 8 kB / 0.4905 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000243/0.1403, allocations: 141.6 kB / 0.4907 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.1409, allocations: 0.5024 MB / 0.4912 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.162e-05/0.141, allocations: 46.56 kB / 0.4912 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.686e-05/0.1411, allocations: 28.97 kB / 0.4912 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.277e-06/0.1411, allocations: 3.938 kB / 0.4912 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.1412, allocations: 34.56 kB / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.1412, allocations: 0 / 0.4913 GB, free: 8.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002047/0.1414, allocations: 81.56 kB / 0.4914 GB, free: 8.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.1414, allocations: 51.41 kB / 0.4914 GB, free: 7.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.1415, allocations: 109.8 kB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.1416, allocations: 37.64 kB / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.1417, allocations: 144.1 kB / 0.4917 GB, free: 7.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.1417, allocations: 19.89 kB / 0.4917 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.1418, allocations: 17.72 kB / 0.4917 GB, free: 7.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1419, allocations: 318.8 kB / 0.492 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.427e-05/0.142, allocations: 12 kB / 0.492 GB, free: 7.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.324e-05/0.142, allocations: 7.984 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.475e-05/0.1421, allocations: 36.84 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1421, allocations: 0 / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001316/0.1423, allocations: 69.58 kB / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1423, allocations: 4 kB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.1423, allocations: 0 / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1423, allocations: 0 / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.517e-05/0.1424, allocations: 11.98 kB / 0.4922 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1424, allocations: 4 kB / 0.4922 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.264e-05/0.1425, allocations: 0 / 0.4922 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.1425, 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.0001251/0.1426, allocations: 149.6 kB / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.1426, allocations: 3.953 kB / 0.4923 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.545e-05/0.1427, allocations: 12.41 kB / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1427, allocations: 0 / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.1427, allocations: 0 / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.1427, allocations: 0 / 0.4923 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004295/0.1431, allocations: 374.4 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1431, allocations: 4 kB / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.208e-05/0.1432, allocations: 8 kB / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1432, allocations: 0 / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1432, allocations: 4 kB / 0.4927 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.1432, allocations: 7.984 kB / 0.4927 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.1432, allocations: 7.875 kB / 0.4927 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.1434, allocations: 155.4 kB / 0.4929 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.565e-05/0.1435, allocations: 85.11 kB / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.224e-05/0.1435, allocations: 0 / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.297e-05/0.1435, allocations: 3.984 kB / 0.4929 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.1436, allocations: 11.94 kB / 0.493 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1436, allocations: 0 / 0.493 GB, free: 6.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.501e-05/0.1437, allocations: 91.27 kB / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1437, allocations: 0 / 0.493 GB, free: 6.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002297/0.1439, 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.000559/0.1445, allocations: 0.7046 MB / 0.4938 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.1446, allocations: 35.97 kB / 0.4938 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1446, allocations: 0 / 0.4938 GB, free: 5.367 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.996e-05/0.1447, allocations: 19.94 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.0003212/0.145, allocations: 24.36 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.001577/0.1466, allocations: 1.446 MB / 0.4952 GB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.147, allocations: 0.7351 MB / 0.496 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.145e-05/0.147, 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.844e-05/0.1471, allocations: 47.41 kB / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1471, allocations: 0 / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.1703, allocations: 1.991 MB / 0.498 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.712, allocations: 7.984 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