Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001637/0.001637, allocations: 105.2 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001811/0.001811, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2323/0.2323, allocations: 46.11 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 70.78 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1295, allocations: 62.44 MB / 479.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003265/0.1328, allocations: 1.626 MB / 481 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002745/0.1331, allocations: 59.75 kB / 481.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.545e-05/0.1332, allocations: 3.938 kB / 481.1 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.1334, allocations: 15.92 kB / 481.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.648e-05/0.1335, allocations: 11.88 kB / 481.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001496/0.1336, allocations: 19.98 kB / 481.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.1337, allocations: 59.89 kB / 481.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.134, allocations: 127.4 kB / 481.3 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.333e-05/0.1341, allocations: 35.86 kB / 481.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.604e-05/0.1342, allocations: 39.84 kB / 481.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.933e-05/0.1342, allocations: 8 kB / 481.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.1343, allocations: 8 kB / 481.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.106e-05/0.1344, allocations: 67.81 kB / 481.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.753e-05/0.1345, allocations: 63.61 kB / 481.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.1347, allocations: 123.6 kB / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1347, allocations: 0 / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1347, allocations: 0 / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.1347, allocations: 0 / 481.6 MB, free: 3.398 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.000588/0.1353, allocations: 443.7 kB / 482.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.1354, allocations: 12.88 kB / 482.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.1355, allocations: 63.06 kB / 482.1 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.1355, allocations: 20.75 kB / 482.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.1358, allocations: 232 kB / 482.4 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.1358, allocations: 12.81 kB / 482.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.1359, allocations: 20.38 kB / 482.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.1363, allocations: 211.5 kB / 482.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.1363, allocations: 4 kB / 482.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.865e-05/0.1363, allocations: 4 kB / 482.6 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.1364, allocations: 4 kB / 482.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.1366, allocations: 129.7 kB / 482.8 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007303/0.1374, allocations: 0.5216 MB / 483.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.1375, allocations: 42.5 kB / 483.3 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.878e-05/0.1376, allocations: 40.91 kB / 483.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.1376, allocations: 3.984 kB / 483.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.1376, allocations: 30.56 kB / 483.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.1376, allocations: 0 / 483.4 MB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002506/0.1379, allocations: 69.67 kB / 483.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.1379, allocations: 59.41 kB / 483.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.477e-05/0.138, allocations: 109.8 kB / 483.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.138, allocations: 33.64 kB / 483.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.1381, allocations: 143.9 kB / 483.8 MB, free: 1.012 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.1382, allocations: 15.75 kB / 483.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.702e-05/0.1382, allocations: 17.7 kB / 483.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1384, allocations: 322.8 kB / 484.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.598e-05/0.1384, allocations: 7.984 kB / 484.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.44e-05/0.1384, allocations: 12 kB / 484.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.879e-05/0.1385, allocations: 36.84 kB / 484.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1386, allocations: 0 / 484.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001188/0.1387, allocations: 61.67 kB / 484.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.1387, allocations: 4 kB / 484.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1387, allocations: 0 / 484.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1387, allocations: 0 / 484.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.057e-05/0.1388, allocations: 19.92 kB / 484.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1388, allocations: 320 / 484.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.1389, allocations: 8.344 kB / 484.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1389, allocations: 4 kB / 484.3 MB, free: 500 kB / 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.0001136/0.139, allocations: 137.8 kB / 484.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/0.139, allocations: 3.984 kB / 484.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.423e-05/0.1391, allocations: 3.969 kB / 484.4 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1391, allocations: 4 kB / 484.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1391, allocations: 4 kB / 484.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.1391, allocations: 0 / 484.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/0.1395, allocations: 378.4 kB / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1395, allocations: 0 / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.47e-05/0.1396, allocations: 8 kB / 484.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1396, allocations: 0 / 484.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1396, allocations: 3.984 kB / 484.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1396, allocations: 4 kB / 484.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1396, allocations: 7.875 kB / 484.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.1398, allocations: 163.4 kB / 485 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.1399, allocations: 85.09 kB / 485.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.307e-05/0.1399, allocations: 0 / 485.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.542e-05/0.1399, allocations: 4 kB / 485.1 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.938e-05/0.14, allocations: 3.938 kB / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.14, allocations: 0 / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.245e-05/0.14, allocations: 95.25 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.14, allocations: 0 / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.1403, allocations: 35.69 kB / 485.2 MB, free: 15.46 MB / 366.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.0005924/0.1409, allocations: 0.7007 MB / 485.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001564/0.141, allocations: 39.91 kB / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1411, allocations: 0 / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.651e-05/0.1411, allocations: 20.3 kB / 486 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.1415, allocations: 21.84 kB / 486 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.1431, allocations: 1.518 MB / 487.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.1434, allocations: 0.7355 MB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.37e-05/0.1435, allocations: 3.984 kB / 488.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.42e-05/0.1435, allocations: 47.42 kB / 488.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1436, allocations: 0 / 488.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.156, allocations: 1.77 MB / 490.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000215/0.1562, allocations: 179.2 kB / 490.3 MB, free: 10.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.007, allocations: 0 / 490.3 MB, free: 10.29 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches