Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_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.001111/0.001111, allocations: 108.6 kB / 17.21 MB, free: 6.273 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.001153/0.001153, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 222.9 MB / 241.8 MB, free: 13.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.248/0.248, allocations: 44.17 MB / 336.1 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 67.7 kB / 407.8 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1385, allocations: 60.82 MB / 468.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003289/0.1418, allocations: 1.61 MB / 470.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001484/0.142, allocations: 51.77 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.841e-05/0.1421, allocations: 4 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001838/0.1423, allocations: 11.92 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.843e-05/0.1423, allocations: 7.922 kB / 470.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.006e-05/0.1424, allocations: 19.98 kB / 470.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.1425, allocations: 67.84 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002888/0.1428, allocations: 119.4 kB / 470.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.96e-05/0.1429, allocations: 39.86 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.1429, allocations: 39.84 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.143, allocations: 4 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.731e-05/0.143, allocations: 8 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.1431, allocations: 71.8 kB / 470.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.1432, allocations: 59.61 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.1433, allocations: 131.6 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1433, allocations: 8 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1433, allocations: 0 / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1434, allocations: 3.938 kB / 470.9 MB, free: 12.45 MB / 350.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.000604/0.144, allocations: 435.8 kB / 471.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.144, allocations: 12.03 kB / 471.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.1441, allocations: 66.95 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.1442, allocations: 20.75 kB / 471.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.1444, allocations: 220.1 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.1445, allocations: 12.81 kB / 471.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.1445, allocations: 20.38 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003809/0.1449, allocations: 215.6 kB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1449, allocations: 0 / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1449, allocations: 4 kB / 471.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1449, allocations: 4 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.1452, allocations: 137.5 kB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007101/0.1459, allocations: 0.5216 MB / 472.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.146, allocations: 42.56 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.1461, allocations: 32.97 kB / 472.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1461, allocations: 0 / 472.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1462, allocations: 30.56 kB / 472.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.1462, allocations: 4 kB / 472.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002714/0.1464, allocations: 77.61 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.1465, allocations: 55.41 kB / 472.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.1466, allocations: 105.8 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.1466, allocations: 25.7 kB / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.967e-05/0.1467, allocations: 147.9 kB / 473 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.607e-05/0.1468, allocations: 15.75 kB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.1468, allocations: 17.72 kB / 473 MB, free: 10.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.147, allocations: 322.8 kB / 473.4 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.26e-05/0.147, allocations: 8 kB / 473.4 MB, free: 9.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.622e-05/0.1471, allocations: 15.98 kB / 473.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.933e-05/0.1472, allocations: 32.84 kB / 473.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1472, allocations: 0 / 473.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001163/0.1473, allocations: 61.62 kB / 473.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.1473, allocations: 8 kB / 473.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1473, allocations: 4 kB / 473.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1474, allocations: 0 / 473.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.407e-05/0.1475, allocations: 11.98 kB / 473.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.1475, allocations: 0 / 473.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.973e-05/0.1475, allocations: 7.906 kB / 473.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.1475, allocations: 0 / 473.5 MB, free: 9.566 MB / 350.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.0001523/0.1477, allocations: 137.8 kB / 473.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.1477, allocations: 4 kB / 473.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.1477, allocations: 11.97 kB / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1477, allocations: 0 / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1478, allocations: 0 / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1478, allocations: 4.438 kB / 473.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.1482, allocations: 374.4 kB / 474 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1482, allocations: 3.938 kB / 474 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.233e-05/0.1482, allocations: 11.98 kB / 474 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.1482, allocations: 0 / 474 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.1483, allocations: 4 kB / 474.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1483, allocations: 0 / 474.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1483, allocations: 3.938 kB / 474.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.1485, allocations: 163.4 kB / 474.2 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.1485, allocations: 85.08 kB / 474.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.1486, allocations: 4 kB / 474.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.161e-05/0.1486, allocations: 0 / 474.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.1487, allocations: 7.938 kB / 474.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.1487, allocations: 8 kB / 474.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.257e-05/0.1487, allocations: 83.27 kB / 474.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1487, allocations: 0 / 474.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.149, allocations: 35.69 kB / 474.4 MB, free: 8.547 MB / 350.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.0007724/0.1498, allocations: 0.709 MB / 475.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001678/0.1499, allocations: 32.03 kB / 475.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1499, allocations: 0 / 475.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.938e-05/0.15, allocations: 16 kB / 475.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.1504, allocations: 15.86 kB / 475.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1522, allocations: 1.526 MB / 476.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1527, allocations: 0.7434 MB / 477.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.588e-05/0.1527, allocations: 4 kB / 477.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.496e-05/0.1528, allocations: 43.42 kB / 477.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1528, allocations: 0 / 477.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01304/0.1659, allocations: 1.795 MB / 479.3 MB, free: 3.598 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002776/0.1662, allocations: 179.1 kB / 479.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/1.929, allocations: 3.75 kB / 479.5 MB, free: 3.344 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches