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.001214/0.001214, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.237/0.237, allocations: 46.1 MB / 344.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 76.38 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1364, allocations: 62.45 MB / 480.1 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003446/0.1399, allocations: 1.553 MB / 481.7 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000307/0.1402, allocations: 63.75 kB / 481.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.522e-05/0.1403, allocations: 4 kB / 481.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.1406, allocations: 23.73 kB / 481.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.887e-05/0.1406, allocations: 3.938 kB / 481.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.1408, allocations: 27.97 kB / 481.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.1409, allocations: 63.89 kB / 481.9 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.1413, allocations: 127.4 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.742e-05/0.1413, allocations: 39.86 kB / 482 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.821e-05/0.1414, allocations: 43.78 kB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/0.1415, allocations: 8 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.52e-05/0.1415, allocations: 8 kB / 482.1 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.89e-05/0.1416, allocations: 71.81 kB / 482.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.539e-05/0.1417, allocations: 67.61 kB / 482.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.1419, allocations: 131.6 kB / 482.4 MB, free: 2.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1419, allocations: 3.938 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1419, allocations: 0 / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.142, allocations: 0 / 482.4 MB, free: 2.914 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.0005775/0.1425, allocations: 439.8 kB / 482.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.1426, allocations: 12.03 kB / 482.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001172/0.1427, allocations: 67.06 kB / 482.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.75e-05/0.1428, allocations: 16.75 kB / 482.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002639/0.143, allocations: 224 kB / 483.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.1431, allocations: 12.81 kB / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.1431, allocations: 24.36 kB / 483.1 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.1435, allocations: 211.6 kB / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.1436, allocations: 0 / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.1436, allocations: 11.94 kB / 483.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1436, allocations: 8 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002391/0.1439, allocations: 129.7 kB / 483.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007252/0.1446, allocations: 0.5177 MB / 484 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.1447, allocations: 42.5 kB / 484 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.878e-05/0.1448, allocations: 28.97 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1448, allocations: 3.984 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.1448, allocations: 34.56 kB / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.403e-06/0.1448, allocations: 0 / 484.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002667/0.1451, allocations: 73.67 kB / 484.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.1452, allocations: 55.34 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.715e-05/0.1453, allocations: 110.1 kB / 484.3 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.1453, allocations: 29.7 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.774e-05/0.1454, allocations: 139.9 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.1454, allocations: 23.73 kB / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.88e-05/0.1455, allocations: 17.7 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1456, allocations: 318.8 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.518e-05/0.1457, allocations: 15.98 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.1457, allocations: 12 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.766e-05/0.1458, allocations: 37.22 kB / 484.9 MB, free: 116 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1458, allocations: 0 / 484.9 MB, free: 116 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001317/0.1459, allocations: 61.61 kB / 485 MB, free: 48 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.146, allocations: 4 kB / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.146, allocations: 0 / 485 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.146, allocations: 7.938 kB / 485 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.823e-05/0.1461, allocations: 19.98 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1461, allocations: 4.062 kB / 485 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.182e-05/0.1462, allocations: 3.906 kB / 485 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.1462, allocations: 4 kB / 485 MB, free: 4 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.0001296/0.1463, allocations: 133.8 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1463, allocations: 7.984 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.424e-05/0.1464, allocations: 3.969 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1464, allocations: 0 / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1464, allocations: 4 kB / 485.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1464, allocations: 3.938 kB / 485.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1468, allocations: 370.4 kB / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1469, allocations: 0 / 485.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.769e-05/0.1469, allocations: 12 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.1469, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.1469, allocations: 3.984 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1469, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.147, allocations: 7.938 kB / 485.6 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001889/0.1472, allocations: 163.6 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.822e-05/0.1472, allocations: 81.09 kB / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.1472, allocations: 8 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.345e-05/0.1473, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/0.1473, allocations: 3.938 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.1473, allocations: 4 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.738e-05/0.1474, allocations: 91.27 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1474, allocations: 0 / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.1476, allocations: 31.69 kB / 485.9 MB, free: 14.99 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.0005632/0.1482, allocations: 0.7045 MB / 486.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.1484, allocations: 44.03 kB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1484, allocations: 0 / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.851e-05/0.1485, allocations: 19.98 kB / 486.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.1488, allocations: 7.938 kB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.1504, allocations: 1.442 MB / 488.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.1507, allocations: 0.7353 MB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.547e-05/0.1508, allocations: 7.984 kB / 488.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.812e-05/0.1509, allocations: 47.36 kB / 488.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1509, allocations: 0 / 488.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.1704, allocations: 1.904 MB / 490.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.718, allocations: 18.58 kB / 490.9 MB, free: 9.984 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.csv","/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