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.001179/0.001179, allocations: 107.1 kB / 17.33 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 205.8 kB / 18.26 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.4 MB, free: 9.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2256/0.2256, allocations: 46.1 MB / 343.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 76.69 kB / 417.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1295, allocations: 62.43 MB / 479.6 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003456/0.133, allocations: 1.626 MB / 481.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002627/0.1333, allocations: 59.75 kB / 481.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.607e-05/0.1334, allocations: 7.938 kB / 481.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.1335, allocations: 11.86 kB / 481.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.072e-05/0.1336, allocations: 7.938 kB / 481.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.1338, allocations: 27.98 kB / 481.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.1339, allocations: 63.88 kB / 481.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.1342, allocations: 127.4 kB / 481.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.821e-05/0.1343, allocations: 39.86 kB / 481.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.444e-05/0.1344, allocations: 35.84 kB / 481.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1344, allocations: 8 kB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.418e-05/0.1344, allocations: 12 kB / 481.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.63e-05/0.1345, allocations: 71.8 kB / 481.7 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.415e-05/0.1346, allocations: 67.61 kB / 481.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.1348, allocations: 139.5 kB / 481.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1348, allocations: 0 / 481.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1348, allocations: 0 / 481.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.1348, allocations: 0 / 481.9 MB, free: 3.184 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.0005534/0.1354, allocations: 435.8 kB / 482.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.1355, allocations: 8.031 kB / 482.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.339e-05/0.1356, allocations: 67.08 kB / 482.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.06e-05/0.1356, allocations: 16.75 kB / 482.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.1358, allocations: 224 kB / 482.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1359, allocations: 16.81 kB / 482.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.1359, allocations: 20.38 kB / 482.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.1363, allocations: 207.6 kB / 482.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.1364, allocations: 3.938 kB / 482.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.519e-05/0.1364, allocations: 8 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.1364, allocations: 8 kB / 482.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.1366, allocations: 129.7 kB / 483 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.1374, allocations: 0.5294 MB / 483.5 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001044/0.1375, allocations: 42.5 kB / 483.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.095e-05/0.1376, allocations: 32.97 kB / 483.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.1376, allocations: 0 / 483.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.1377, allocations: 38.56 kB / 483.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.1377, allocations: 0 / 483.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002652/0.1379, allocations: 69.67 kB / 483.7 MB, free: 1.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.138, allocations: 51.41 kB / 483.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.424e-05/0.1381, allocations: 113.8 kB / 483.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1381, allocations: 33.7 kB / 483.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.035e-05/0.1382, allocations: 139.9 kB / 484 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.1382, allocations: 23.67 kB / 484.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.1383, allocations: 17.72 kB / 484.1 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1384, allocations: 318.8 kB / 484.4 MB, free: 456 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.262e-05/0.1384, allocations: 11.98 kB / 484.4 MB, free: 444 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.556e-05/0.1385, allocations: 15.98 kB / 484.4 MB, free: 428 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.029e-05/0.1386, allocations: 32.84 kB / 484.4 MB, free: 392 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1386, allocations: 0 / 484.4 MB, free: 392 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001288/0.1387, allocations: 57.69 kB / 484.5 MB, free: 328 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1387, allocations: 6.656 kB / 484.5 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1388, allocations: 4 kB / 484.5 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1388, allocations: 0 / 484.5 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.794e-05/0.1389, allocations: 15.92 kB / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1389, allocations: 0 / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.087e-05/0.1389, allocations: 3.906 kB / 484.5 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1389, allocations: 8 kB / 484.5 MB, free: 292 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.0001186/0.1391, allocations: 137.8 kB / 484.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.1391, allocations: 4 kB / 484.7 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.614e-05/0.1391, allocations: 7.969 kB / 484.7 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1391, allocations: 0 / 484.7 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.1391, allocations: 4.375 kB / 484.7 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1392, allocations: 0 / 484.7 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004361/0.1396, allocations: 378.4 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1396, allocations: 0 / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.871e-05/0.1397, allocations: 15.98 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1397, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.1397, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1397, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1397, allocations: 3.938 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001942/0.1399, allocations: 167.4 kB / 485.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.308e-05/0.14, allocations: 81.11 kB / 485.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.14, allocations: 7.938 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.287e-05/0.14, allocations: 3.938 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.1401, allocations: 3.938 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.1401, allocations: 4 kB / 485.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.388e-05/0.1401, allocations: 87.27 kB / 485.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1401, allocations: 0 / 485.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002585/0.1404, allocations: 31.69 kB / 485.5 MB, free: 15.27 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.0004933/0.1409, allocations: 0.7085 MB / 486.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.1411, allocations: 39.98 kB / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1411, allocations: 0 / 486.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.212e-05/0.1411, allocations: 15.98 kB / 486.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.1414, allocations: 23.5 kB / 486.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.1429, allocations: 1.52 MB / 487.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.1432, allocations: 0.7314 MB / 488.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.605e-05/0.1433, allocations: 4 kB / 488.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.691e-05/0.1434, allocations: 51.41 kB / 488.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 5e-07/0.1434, allocations: 0 / 488.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01309/0.1565, allocations: 1.823 MB / 490.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.1567, allocations: 183.6 kB / 490.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/2.013, allocations: 0 / 490.5 MB, free: 10.05 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