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.0008382/0.0008382, allocations: 95.2 kB / 17.35 MB, free: 6.344 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.0009039/0.000904, allocations: 168.7 kB / 18.25 MB, free: 5.508 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.214/1.214, allocations: 223.3 MB / 242.3 MB, free: 14.47 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.1608/0.1608, allocations: 44.25 MB / 337.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002832, allocations: 8 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09056, allocations: 61.93 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001351/0.09195, allocations: 1.251 MB / 473.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000105/0.09207, allocations: 55.77 kB / 473.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.467e-05/0.09212, allocations: 4 kB / 473.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.09224, allocations: 19.84 kB / 473.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.263e-05/0.09227, allocations: 4 kB / 473.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.881e-05/0.09234, allocations: 15.98 kB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.081e-05/0.09243, allocations: 67.78 kB / 473.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.09265, allocations: 115.4 kB / 473.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.897e-05/0.09268, allocations: 23.88 kB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.513e-05/0.09272, allocations: 19.84 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.075e-05/0.09274, allocations: 0 / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.506e-06/0.09276, allocations: 4 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.568e-05/0.09282, allocations: 47.89 kB / 474 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.238e-05/0.09289, allocations: 77.31 kB / 474.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001147/0.09301, allocations: 131.5 kB / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.09302, allocations: 0 / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.09302, allocations: 0 / 474.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.09303, allocations: 3.938 kB / 474.2 MB, free: 11.38 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.0003684/0.0934, allocations: 407.8 kB / 474.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.09344, allocations: 12.03 kB / 474.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.221e-05/0.09353, allocations: 71.06 kB / 474.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.078e-05/0.09357, allocations: 16.75 kB / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.09374, allocations: 212.1 kB / 474.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.09377, allocations: 16.81 kB / 474.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.0938, allocations: 20.38 kB / 474.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.09412, allocations: 215.5 kB / 475.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.09414, allocations: 0 / 475.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.09416, allocations: 12 kB / 475.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.09418, allocations: 4 kB / 475.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002172/0.0944, allocations: 137.6 kB / 475.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005731/0.09498, allocations: 0.5178 MB / 475.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.844e-05/0.09507, allocations: 42.56 kB / 475.8 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.069e-05/0.09514, allocations: 36.91 kB / 475.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.09516, allocations: 0 / 475.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.041e-05/0.09518, allocations: 34.56 kB / 475.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 7.71e-07/0.09519, allocations: 0 / 475.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002064/0.0954, allocations: 85.52 kB / 476 MB, free: 9.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.09543, allocations: 55.34 kB / 476.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.554e-05/0.09551, allocations: 113.8 kB / 476.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.09554, allocations: 29.7 kB / 476.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.09561, allocations: 140 kB / 476.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.09564, allocations: 19.64 kB / 476.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.09567, allocations: 17.72 kB / 476.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.09576, allocations: 314.8 kB / 476.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.121e-05/0.0958, allocations: 15.98 kB / 476.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.464e-05/0.09584, allocations: 19.98 kB / 476.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.288e-05/0.09592, allocations: 32.86 kB / 476.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.09593, allocations: 3.984 kB / 476.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001087/0.09605, allocations: 66 kB / 476.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.09607, allocations: 4 kB / 476.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.09607, allocations: 0 / 476.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.067e-06/0.09609, allocations: 4 kB / 476.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-05/0.09616, allocations: 16.06 kB / 476.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.09618, allocations: 3.984 kB / 476.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.437e-05/0.0962, allocations: 4 kB / 476.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.09621, allocations: 0 / 476.8 MB, free: 8.488 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 8.49e-05/0.0963, allocations: 133.8 kB / 477 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.09633, allocations: 7.906 kB / 477 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.822e-05/0.09635, allocations: 11.95 kB / 477 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.09636, allocations: 4 kB / 477 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.09637, allocations: 0 / 477 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.09638, allocations: 4 kB / 477 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003342/0.09671, allocations: 366.4 kB / 477.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.09673, allocations: 4 kB / 477.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.935e-05/0.09677, allocations: 8 kB / 477.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.09678, allocations: 4 kB / 477.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.09679, allocations: 4 kB / 477.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.0968, allocations: 0 / 477.4 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.09681, allocations: 7.875 kB / 477.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.09696, allocations: 163.4 kB / 477.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.982e-05/0.097, allocations: 77.11 kB / 477.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.09701, allocations: 11.98 kB / 477.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.252e-05/0.09707, allocations: 3.984 kB / 477.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.0971, allocations: 15.88 kB / 477.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.09711, allocations: 3.938 kB / 477.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.281e-05/0.09716, allocations: 91.27 kB / 477.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09716, allocations: 0 / 477.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002083/0.09738, allocations: 27.69 kB / 477.8 MB, free: 7.461 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.0004245/0.09781, allocations: 0.7132 MB / 478.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001158/0.09793, allocations: 32.05 kB / 478.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.09795, allocations: 4 kB / 478.5 MB, free: 6.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.098, allocations: 27.92 kB / 478.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.09828, allocations: 15.92 kB / 478.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.0995, allocations: 1.528 MB / 480.1 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002268/0.09974, allocations: 0.7356 MB / 480.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.193e-05/0.09976, allocations: 4 kB / 480.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/0.09982, allocations: 51.41 kB / 480.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09983, allocations: 0 / 480.9 MB, free: 4.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.309/2.409, allocations: 1.712 MB / 482.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/2.409, allocations: 188.8 kB / 482.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/4.019, allocations: 0 / 482.8 MB, free: 2.352 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