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.0009772/0.0009771, allocations: 102.5 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.00113, allocations: 185.7 kB / 16.92 MB, free: 6.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.752/1.752, allocations: 205.4 MB / 223.1 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4155/0.4155, allocations: 43.57 MB / 315 MB, free: 8.801 MB / 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.0005527/0.0005527, allocations: 16 kB / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1294, allocations: 58.86 MB / 443.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00279/0.1322, allocations: 1.267 MB / 444.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002589/0.1325, allocations: 51.77 kB / 444.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.678e-05/0.1326, allocations: 4 kB / 444.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1328, allocations: 7.922 kB / 444.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.909e-05/0.1329, allocations: 3.938 kB / 444.9 MB, free: 11.26 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001027/0.133, allocations: 19.98 kB / 444.9 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1331, allocations: 75.81 kB / 445 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003281/0.1334, allocations: 115.4 kB / 445.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.365e-05/0.1335, allocations: 23.84 kB / 445.1 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.844e-05/0.1336, allocations: 15.88 kB / 445.1 MB, free: 11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.1336, allocations: 0 / 445.1 MB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.155e-05/0.1336, allocations: 0 / 445.1 MB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.1338, allocations: 51.89 kB / 445.2 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.699e-05/0.1339, allocations: 77.31 kB / 445.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000181/0.134, allocations: 119.8 kB / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.1341, allocations: 4 kB / 445.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1341, allocations: 8 kB / 445.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1341, allocations: 0 / 445.4 MB, free: 10.74 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.0007213/0.1348, allocations: 415.5 kB / 445.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.1349, allocations: 12.03 kB / 445.8 MB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.135, allocations: 66.95 kB / 445.8 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.308e-05/0.1351, allocations: 24.66 kB / 445.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.1353, allocations: 216.2 kB / 446.1 MB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1354, allocations: 20.81 kB / 446.1 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.1354, allocations: 16.38 kB / 446.1 MB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.1358, allocations: 211.6 kB / 446.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1358, allocations: 0 / 446.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.1358, allocations: 8 kB / 446.3 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.1359, allocations: 8 kB / 446.3 MB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.1361, allocations: 137.6 kB / 446.5 MB, free: 9.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008253/0.1369, allocations: 0.5216 MB / 447 MB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001104/0.1371, allocations: 42.56 kB / 447 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.809e-05/0.1372, allocations: 32.97 kB / 447.1 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.1372, allocations: 7.984 kB / 447.1 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1372, allocations: 30.56 kB / 447.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.593e-06/0.1372, allocations: 0 / 447.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003207/0.1376, allocations: 85.61 kB / 447.2 MB, free: 8.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.1376, allocations: 55.41 kB / 447.2 MB, free: 8.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.1378, allocations: 105.8 kB / 447.4 MB, free: 8.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.1378, allocations: 29.64 kB / 447.4 MB, free: 8.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1379, allocations: 147.9 kB / 447.5 MB, free: 8.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.138, allocations: 15.75 kB / 447.5 MB, free: 8.359 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.138, allocations: 13.72 kB / 447.6 MB, free: 8.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1382, allocations: 322.8 kB / 447.9 MB, free: 8.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.573e-05/0.1382, allocations: 12 kB / 447.9 MB, free: 8.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.396e-05/0.1383, allocations: 15.98 kB / 447.9 MB, free: 7.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.344e-05/0.1384, allocations: 36.84 kB / 447.9 MB, free: 7.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1384, allocations: 0 / 447.9 MB, free: 7.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000178/0.1386, allocations: 77.53 kB / 448 MB, free: 7.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1386, allocations: 4 kB / 448 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1386, allocations: 0 / 448 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/0.1387, allocations: 0 / 448 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.1388, allocations: 11.98 kB / 448 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1388, allocations: 4 kB / 448 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.85e-05/0.1388, allocations: 0 / 448 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.1389, allocations: 4 kB / 448 MB, free: 7.844 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.000163/0.139, allocations: 141.8 kB / 448.2 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.128e-05/0.1391, allocations: 4 kB / 448.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.1391, allocations: 3.969 kB / 448.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1391, allocations: 0 / 448.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1391, allocations: 0 / 448.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1391, allocations: 0 / 448.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.1396, allocations: 382.7 kB / 448.6 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.1396, allocations: 4 kB / 448.6 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.625e-05/0.1397, allocations: 20.05 kB / 448.6 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1397, allocations: 0 / 448.6 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.1397, allocations: 0 / 448.6 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1397, allocations: 320 / 448.6 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1397, allocations: 3.938 kB / 448.6 MB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.14, allocations: 167.5 kB / 448.7 MB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.234e-05/0.14, allocations: 88.94 kB / 448.8 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.14, allocations: 0 / 448.8 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.1401, allocations: 4 kB / 448.8 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.1402, allocations: 7.938 kB / 448.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1402, allocations: 0 / 448.8 MB, free: 6.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.744e-05/0.1402, allocations: 95.19 kB / 448.9 MB, free: 6.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1403, allocations: 4 kB / 448.9 MB, free: 6.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1405, allocations: 27.75 kB / 449 MB, free: 6.812 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.0006662/0.1412, allocations: 0.7163 MB / 449.7 MB, free: 6.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.1414, allocations: 40.03 kB / 449.7 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1414, allocations: 0 / 449.7 MB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.323e-05/0.1415, allocations: 23.94 kB / 449.7 MB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.1418, allocations: 11.92 kB / 449.8 MB, free: 5.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.1436, allocations: 1.533 MB / 451.3 MB, free: 4.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1439, allocations: 0.7321 MB / 452 MB, free: 3.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.307e-05/0.144, allocations: 7.984 kB / 452 MB, free: 3.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.453e-05/0.144, allocations: 39.42 kB / 452.1 MB, free: 3.566 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.144, allocations: 0 / 452.1 MB, free: 3.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01213/0.1562, allocations: 1.728 MB / 453.8 MB, free: 1.855 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.1564, allocations: 175.4 kB / 454 MB, free: 1.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/1.814, allocations: 4 kB / 454 MB, free: 1.594 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches