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.001496/0.001497, allocations: 106 kB / 16.4 MB, free: 6.508 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.001845/0.001846, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.471/1.471, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2331/0.2331, 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.002155/0.002155, allocations: 65.62 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1292, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002955/0.1322, allocations: 1.554 MB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001602/0.1324, allocations: 51.78 kB / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.451e-05/0.1325, allocations: 0 / 0.489 GB, free: 10.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.1327, allocations: 23.84 kB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.579e-05/0.1327, allocations: 3.938 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.889e-05/0.1329, allocations: 19.97 kB / 0.489 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.133, allocations: 71.83 kB / 0.4891 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.1333, allocations: 135.2 kB / 0.4892 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.247e-05/0.1333, allocations: 35.92 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.027e-05/0.1334, allocations: 39.78 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.1334, allocations: 12 kB / 0.4893 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.776e-05/0.1335, allocations: 8 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.704e-05/0.1335, allocations: 67.88 kB / 0.4894 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.73e-05/0.1336, allocations: 67.61 kB / 0.4894 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1338, allocations: 155.4 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1338, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1338, allocations: 0 / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1338, 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.0004084/0.1342, allocations: 443.3 kB / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.1343, allocations: 11.89 kB / 0.49 GB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.737e-05/0.1344, allocations: 67.08 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.1344, allocations: 16.75 kB / 0.4901 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001923/0.1346, allocations: 220.1 kB / 0.4903 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1346, allocations: 12.81 kB / 0.4903 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.1347, allocations: 24.38 kB / 0.4903 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.135, allocations: 211.5 kB / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.135, allocations: 0 / 0.4905 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.135, allocations: 8 kB / 0.4905 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.135, allocations: 8 kB / 0.4905 GB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.1352, allocations: 129.7 kB / 0.4907 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.1358, allocations: 0.4984 MB / 0.4912 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.1359, allocations: 46.56 kB / 0.4912 GB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.624e-05/0.136, allocations: 28.97 kB / 0.4912 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.978e-06/0.136, allocations: 0 / 0.4912 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.136, allocations: 34.55 kB / 0.4913 GB, free: 8.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 8.22e-07/0.136, allocations: 7.875 kB / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002051/0.1363, allocations: 73.59 kB / 0.4913 GB, free: 8.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.1363, allocations: 55.39 kB / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.324e-05/0.1364, allocations: 118 kB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.1364, allocations: 25.7 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.1365, allocations: 140 kB / 0.4917 GB, free: 7.699 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.1365, allocations: 23.7 kB / 0.4917 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.1365, allocations: 13.72 kB / 0.4917 GB, free: 7.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1366, allocations: 322.8 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.815e-05/0.1367, allocations: 11.98 kB / 0.492 GB, free: 7.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.057e-05/0.1367, allocations: 12.38 kB / 0.492 GB, free: 7.309 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.12e-05/0.1368, allocations: 44.78 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1368, allocations: 0 / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001167/0.1369, allocations: 57.69 kB / 0.4921 GB, free: 7.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.137, allocations: 11.98 kB / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.137, allocations: 0 / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.137, allocations: 0 / 0.4921 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.581e-05/0.1371, allocations: 8 kB / 0.4921 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1371, allocations: 4.062 kB / 0.4921 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.512e-05/0.1371, allocations: 4 kB / 0.4921 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.007e-06/0.1371, allocations: 4 kB / 0.4922 GB, free: 7.168 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 9.835e-05/0.1372, allocations: 145.6 kB / 0.4923 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.1372, allocations: 7.906 kB / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.993e-05/0.1373, allocations: 7.969 kB / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1373, allocations: 0 / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1373, allocations: 0 / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1373, allocations: 0 / 0.4923 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003589/0.1377, allocations: 370.4 kB / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1377, allocations: 0 / 0.4927 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.337e-05/0.1377, allocations: 19.92 kB / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.1377, allocations: 0 / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.1377, allocations: 0 / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1377, allocations: 0 / 0.4927 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1377, allocations: 3.938 kB / 0.4927 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.1379, allocations: 167.6 kB / 0.4928 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.138, allocations: 81.11 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-06/0.138, allocations: 3.938 kB / 0.4929 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-05/0.138, allocations: 4 kB / 0.4929 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.1381, allocations: 7.922 kB / 0.4929 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.1381, allocations: 11.98 kB / 0.4929 GB, free: 6.254 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.529e-05/0.1381, allocations: 79.28 kB / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1381, allocations: 0 / 0.493 GB, free: 6.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1384, allocations: 31.75 kB / 0.4931 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.0004414/0.1388, allocations: 0.7124 MB / 0.4937 GB, free: 5.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.1389, allocations: 28.05 kB / 0.4938 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1389, allocations: 0 / 0.4938 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.377e-05/0.139, allocations: 23.92 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.1393, allocations: 19.88 kB / 0.4938 GB, free: 5.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.1407, allocations: 1.442 MB / 0.4952 GB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.141, allocations: 0.7356 MB / 0.4959 GB, free: 3.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.851e-05/0.141, allocations: 3.984 kB / 0.4959 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.1411, allocations: 47.42 kB / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1411, allocations: 0 / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01584/0.1569, allocations: 2.007 MB / 0.498 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.397/7.554, allocations: 4.062 kB / 0.498 GB, free: 0.9844 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