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.001286/0.001286, allocations: 105.5 kB / 16.4 MB, free: 6.445 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.001211/0.001211, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.72/1.72, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2235/0.2235, 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.001766/0.001766, allocations: 70.05 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1412, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.006005/0.1472, allocations: 1.55 MB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002854/0.1476, allocations: 55.77 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.1477, allocations: 4 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002857/0.148, allocations: 15.86 kB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.706e-05/0.1482, allocations: 3.938 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.1484, allocations: 23.97 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002412/0.1486, allocations: 75.75 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004668/0.1491, allocations: 127.3 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1492, allocations: 39.91 kB / 0.4892 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.1494, allocations: 43.78 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.147e-05/0.1494, allocations: 12 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.384e-05/0.1494, allocations: 8 kB / 0.4893 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.1496, allocations: 63.88 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.1497, allocations: 67.61 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.15, allocations: 147.4 kB / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1501, allocations: 0 / 0.4896 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1501, allocations: 4 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.1501, allocations: 0 / 0.4896 GB, free: 10.05 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.000683/0.1508, allocations: 439.3 kB / 0.49 GB, free: 9.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.539e-05/0.1508, allocations: 19.89 kB / 0.49 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.151, allocations: 63.06 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.694e-05/0.151, allocations: 20.75 kB / 0.4901 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1513, allocations: 216.1 kB / 0.4903 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.1514, allocations: 12.81 kB / 0.4903 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.1514, allocations: 24.36 kB / 0.4903 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.1519, allocations: 215.5 kB / 0.4905 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.152, allocations: 0 / 0.4905 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.152, allocations: 4 kB / 0.4905 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.152, allocations: 8 kB / 0.4905 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003637/0.1524, allocations: 129.7 kB / 0.4907 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1536, allocations: 0.5022 MB / 0.4911 GB, free: 8.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.1538, allocations: 46.56 kB / 0.4912 GB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.264e-05/0.1539, allocations: 28.97 kB / 0.4912 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1539, allocations: 0 / 0.4912 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.1539, allocations: 34.5 kB / 0.4913 GB, free: 8.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.342e-06/0.154, allocations: 3.938 kB / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003354/0.1543, allocations: 77.58 kB / 0.4913 GB, free: 8.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.1544, allocations: 55.41 kB / 0.4914 GB, free: 7.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1545, allocations: 109.8 kB / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.1545, allocations: 29.64 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1546, allocations: 144 kB / 0.4917 GB, free: 7.695 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.1547, allocations: 19.7 kB / 0.4917 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.245e-05/0.1547, allocations: 13.72 kB / 0.4917 GB, free: 7.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1549, allocations: 322.8 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.082e-05/0.1549, allocations: 7.984 kB / 0.492 GB, free: 7.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-05/0.155, allocations: 20.36 kB / 0.492 GB, free: 7.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.218e-05/0.1551, allocations: 40.78 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1551, allocations: 0 / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001459/0.1553, allocations: 61.69 kB / 0.4921 GB, free: 7.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.1553, allocations: 4 kB / 0.4921 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.1553, allocations: 0 / 0.4921 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.1553, allocations: 0 / 0.4921 GB, free: 7.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.716e-05/0.1554, allocations: 11.98 kB / 0.4921 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1555, allocations: 0 / 0.4921 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.128e-05/0.1555, allocations: 8 kB / 0.4921 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.1555, allocations: 0 / 0.4921 GB, free: 7.172 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.0001474/0.1557, allocations: 145.6 kB / 0.4923 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.1557, allocations: 7.906 kB / 0.4923 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.1557, allocations: 7.969 kB / 0.4923 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1558, allocations: 4 kB / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1558, allocations: 0 / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1558, allocations: 0 / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004845/0.1563, allocations: 370.4 kB / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.1563, allocations: 0 / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.896e-05/0.1563, allocations: 11.94 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.1564, allocations: 0 / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.1564, allocations: 0 / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1564, allocations: 3.984 kB / 0.4927 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.1564, allocations: 3.938 kB / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.1566, allocations: 167.6 kB / 0.4928 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.1567, allocations: 77.11 kB / 0.4929 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.1567, allocations: 7.938 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.907e-05/0.1568, allocations: 3.984 kB / 0.4929 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.1568, allocations: 15.92 kB / 0.4929 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.626e-06/0.1569, allocations: 0 / 0.4929 GB, free: 6.262 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.319e-05/0.1569, allocations: 87.25 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1569, allocations: 4 kB / 0.493 GB, free: 6.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.1572, allocations: 27.75 kB / 0.493 GB, free: 6.145 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.000584/0.1578, allocations: 0.7046 MB / 0.4937 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.158, allocations: 39.91 kB / 0.4938 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.158, allocations: 0 / 0.4938 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.448e-05/0.1581, allocations: 16 kB / 0.4938 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.1584, allocations: 27.8 kB / 0.4938 GB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.1601, allocations: 1.442 MB / 0.4952 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.1606, allocations: 0.7356 MB / 0.4959 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.499e-05/0.1606, allocations: 4 kB / 0.4959 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.1607, allocations: 47.41 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of SimCode: time 9.71e-07/0.1607, allocations: 0 / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.1847, allocations: 2.014 MB / 0.498 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/7.909, allocations: 0 / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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