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.0008667/0.0008668, allocations: 92.36 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009118/0.0009118, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.19 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1321, allocations: 63.55 MB / 483.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001592/0.1337, allocations: 1.279 MB / 484.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001845/0.1339, allocations: 63.77 kB / 484.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.65e-05/0.134, allocations: 4 kB / 484.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1341, allocations: 19.84 kB / 484.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.657e-05/0.1341, allocations: 7.875 kB / 484.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001236/0.1343, allocations: 27.92 kB / 484.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.381e-05/0.1344, allocations: 63.89 kB / 484.6 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002284/0.1346, allocations: 115.4 kB / 484.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.188e-05/0.1346, allocations: 19.86 kB / 484.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.19e-05/0.1347, allocations: 19.86 kB / 484.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.1347, allocations: 0 / 484.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.05e-05/0.1347, allocations: 8 kB / 484.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.664e-05/0.1348, allocations: 51.83 kB / 484.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.431e-05/0.1349, allocations: 77.31 kB / 484.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.135, allocations: 123.6 kB / 485 MB, free: 2.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1351, allocations: 0 / 485 MB, free: 2.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1351, allocations: 0 / 485 MB, free: 2.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.1351, allocations: 0 / 485 MB, free: 2.172 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.0004554/0.1355, allocations: 403.8 kB / 485.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1356, allocations: 12.88 kB / 485.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.311e-05/0.1357, allocations: 71.06 kB / 485.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.1357, allocations: 20.75 kB / 485.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.1359, allocations: 220 kB / 485.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1359, allocations: 16.81 kB / 485.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.697e-05/0.136, allocations: 16.38 kB / 485.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.1363, allocations: 215.5 kB / 486 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.1363, allocations: 0 / 486 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.1364, allocations: 12 kB / 486 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1364, allocations: 8 kB / 486 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.1366, allocations: 133.7 kB / 486.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.1372, allocations: 0.5178 MB / 486.7 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.972e-05/0.1373, allocations: 46.5 kB / 486.7 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.93e-05/0.1374, allocations: 32.91 kB / 486.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.1374, allocations: 0 / 486.7 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1375, allocations: 42.56 kB / 486.8 MB, free: 264 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 8.22e-07/0.1375, allocations: 0 / 486.8 MB, free: 264 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002321/0.1377, allocations: 81.58 kB / 486.9 MB, free: 176 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.1377, allocations: 55.39 kB / 486.9 MB, free: 108 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.646e-05/0.1378, allocations: 105.9 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.1379, allocations: 25.7 kB / 487 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.329e-05/0.1379, allocations: 148 kB / 487.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.138, allocations: 23.59 kB / 487.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.057e-05/0.138, allocations: 9.719 kB / 487.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1381, allocations: 322.8 kB / 487.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.322e-05/0.1382, allocations: 16 kB / 487.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.32e-05/0.1382, allocations: 11.98 kB / 487.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.854e-05/0.1383, allocations: 40.84 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1383, allocations: 3.938 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001176/0.1384, allocations: 65.67 kB / 487.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1384, allocations: 8 kB / 487.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1385, allocations: 0 / 487.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1385, allocations: 0 / 487.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.617e-05/0.1386, allocations: 11.94 kB / 487.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.1386, allocations: 4 kB / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.622e-05/0.1386, allocations: 4 kB / 487.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.1386, allocations: 3.984 kB / 487.7 MB, free: 15.27 MB / 366.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.572e-05/0.1387, allocations: 137.8 kB / 487.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.1387, allocations: 3.906 kB / 487.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.115e-05/0.1388, allocations: 11.97 kB / 487.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1388, allocations: 0 / 487.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1388, allocations: 3.984 kB / 487.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1388, allocations: 3.984 kB / 487.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000361/0.1392, allocations: 378.4 kB / 488.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1392, allocations: 0.5 kB / 488.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.084e-05/0.1392, allocations: 8 kB / 488.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1392, allocations: 4 kB / 488.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.1392, allocations: 0 / 488.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1392, allocations: 4 kB / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1392, allocations: 11.88 kB / 488.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.1394, allocations: 167.4 kB / 488.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.1395, allocations: 77.11 kB / 488.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.1395, allocations: 3.938 kB / 488.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.796e-05/0.1395, allocations: 7.984 kB / 488.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.161e-05/0.1396, allocations: 7.938 kB / 488.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.1396, allocations: 8 kB / 488.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.865e-05/0.1396, allocations: 83.27 kB / 488.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1396, allocations: 0 / 488.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.1398, allocations: 35.69 kB / 488.6 MB, free: 14.23 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.0004624/0.1403, allocations: 0.7047 MB / 489.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.1405, allocations: 39.97 kB / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1405, allocations: 0 / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.306e-05/0.1405, allocations: 16 kB / 489.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.1408, allocations: 19.92 kB / 489.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.1422, allocations: 1.533 MB / 490.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1425, allocations: 0.7355 MB / 491.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.882e-05/0.1425, allocations: 4 kB / 491.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.156e-05/0.1426, allocations: 55.45 kB / 491.7 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1426, allocations: 3.938 kB / 491.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01098/0.1536, allocations: 1.701 MB / 493.4 MB, free: 9.395 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002084/0.1538, allocations: 174.6 kB / 493.6 MB, free: 9.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/1.84, allocations: 0 / 493.6 MB, free: 9.145 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