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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001786/0.001786, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002253/0.002253, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2504/0.2504, allocations: 46.9 MB / 357.4 MB, free: 10.49 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 72.78 kB / 0.4912 GB, free: 26.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.126, allocations: 65.99 MB / 0.5557 GB, free: 9.078 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002919/0.1289, allocations: 1.568 MB / 0.5572 GB, free: 7.492 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002322/0.1291, allocations: 67.75 kB / 0.5573 GB, free: 7.426 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.6e-05/0.1292, allocations: 3.938 kB / 0.5573 GB, free: 7.422 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.1293, allocations: 19.84 kB / 0.5573 GB, free: 7.402 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.262e-05/0.1293, allocations: 3.938 kB / 0.5573 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001301/0.1295, allocations: 23.97 kB / 0.5573 GB, free: 7.375 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.1296, allocations: 63.89 kB / 0.5574 GB, free: 7.312 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.1298, allocations: 115.7 kB / 0.5575 GB, free: 7.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.223e-05/0.1299, allocations: 39.86 kB / 0.5575 GB, free: 7.152 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.425e-05/0.13, allocations: 43.83 kB / 0.5576 GB, free: 7.109 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.13, allocations: 8 kB / 0.5576 GB, free: 7.102 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.13, allocations: 8 kB / 0.5576 GB, free: 7.094 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.768e-05/0.1301, allocations: 63.83 kB / 0.5577 GB, free: 7.031 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.684e-05/0.1302, allocations: 71.58 kB / 0.5577 GB, free: 6.961 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.1304, allocations: 151.3 kB / 0.5579 GB, free: 6.812 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1304, allocations: 0 / 0.5579 GB, free: 6.812 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1304, allocations: 7.875 kB / 0.5579 GB, free: 6.805 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.1304, allocations: 0 / 0.5579 GB, free: 6.805 MB / 414.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.0005654/0.131, allocations: 451.1 kB / 0.5583 GB, free: 6.316 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.131, allocations: 8.031 kB / 0.5583 GB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001105/0.1311, allocations: 71.11 kB / 0.5584 GB, free: 6.227 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.1311, allocations: 16.84 kB / 0.5584 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.1314, allocations: 212.1 kB / 0.5586 GB, free: 5.965 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1314, allocations: 16.81 kB / 0.5586 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.027e-05/0.1315, allocations: 20.38 kB / 0.5586 GB, free: 5.93 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.1318, allocations: 211.5 kB / 0.5588 GB, free: 5.715 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1319, allocations: 4 kB / 0.5588 GB, free: 5.711 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.1319, allocations: 12 kB / 0.5589 GB, free: 5.699 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1319, allocations: 4 kB / 0.5589 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.1321, allocations: 133.6 kB / 0.559 GB, free: 5.566 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006872/0.1328, allocations: 0.5158 MB / 0.5595 GB, free: 5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.1329, allocations: 38.56 kB / 0.5595 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.546e-05/0.133, allocations: 24.97 kB / 0.5595 GB, free: 4.926 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.133, allocations: 3.984 kB / 0.5596 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.133, allocations: 30.56 kB / 0.5596 GB, free: 4.883 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.133, allocations: 0 / 0.5596 GB, free: 4.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002725/0.1333, allocations: 89.56 kB / 0.5597 GB, free: 4.789 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.1334, allocations: 55.39 kB / 0.5597 GB, free: 4.723 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.1335, allocations: 101.9 kB / 0.5598 GB, free: 4.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1335, allocations: 25.7 kB / 0.5598 GB, free: 4.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.1336, allocations: 152.1 kB / 0.56 GB, free: 4.43 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/0.1336, allocations: 15.84 kB / 0.56 GB, free: 4.414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.1337, allocations: 17.72 kB / 0.56 GB, free: 4.391 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1338, allocations: 322.8 kB / 0.5603 GB, free: 4.066 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.619e-05/0.1339, allocations: 15.98 kB / 0.5603 GB, free: 4.051 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.15e-05/0.1339, allocations: 8 kB / 0.5604 GB, free: 4.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.967e-05/0.134, allocations: 32.84 kB / 0.5604 GB, free: 4.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.134, allocations: 384 / 0.5604 GB, free: 4.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000127/0.1341, allocations: 77.56 kB / 0.5605 GB, free: 3.926 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1341, allocations: 5.719 kB / 0.5605 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1341, allocations: 0 / 0.5605 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1342, allocations: 0 / 0.5605 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.153e-05/0.1342, allocations: 12 kB / 0.5605 GB, free: 3.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1342, allocations: 4 kB / 0.5605 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.717e-05/0.1343, allocations: 3.984 kB / 0.5605 GB, free: 3.902 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.1343, allocations: 0 / 0.5605 GB, free: 3.902 MB / 414.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.0001163/0.1344, allocations: 137.8 kB / 0.5606 GB, free: 3.758 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.1344, allocations: 3.953 kB / 0.5606 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.641e-05/0.1344, allocations: 19.89 kB / 0.5606 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1344, allocations: 0 / 0.5606 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1345, allocations: 0 / 0.5606 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1345, allocations: 4 kB / 0.5606 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004192/0.1349, allocations: 370.4 kB / 0.561 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1349, allocations: 0 / 0.561 GB, free: 3.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.457e-05/0.1349, allocations: 8 kB / 0.561 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.1349, allocations: 0 / 0.561 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.1349, allocations: 8 kB / 0.561 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.1349, allocations: 0 / 0.561 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1349, allocations: 7.875 kB / 0.561 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001962/0.1351, allocations: 159.5 kB / 0.5612 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.1352, allocations: 81.06 kB / 0.5612 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.1352, allocations: 0 / 0.5612 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.677e-05/0.1353, allocations: 7.984 kB / 0.5613 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.1353, allocations: 7.938 kB / 0.5613 GB, free: 3.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.1353, allocations: 192 / 0.5613 GB, free: 3.004 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.301e-05/0.1354, allocations: 87.27 kB / 0.5613 GB, free: 2.918 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1354, allocations: 3.938 kB / 0.5613 GB, free: 2.914 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.1356, allocations: 39.78 kB / 0.5614 GB, free: 2.875 MB / 414.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.0005874/0.1362, allocations: 0.7046 MB / 0.5621 GB, free: 2.145 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.1363, allocations: 32.03 kB / 0.5621 GB, free: 2.113 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.1363, allocations: 4 kB / 0.5621 GB, free: 2.109 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.387e-05/0.1364, allocations: 19.94 kB / 0.5621 GB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.1367, allocations: 13.33 kB / 0.5621 GB, free: 2.078 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.1383, allocations: 1.444 MB / 0.5635 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.1386, allocations: 0.7314 MB / 0.5643 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.524e-05/0.1387, allocations: 11.78 kB / 0.5643 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.867e-05/0.1388, allocations: 51.41 kB / 0.5643 GB, free: 15.74 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1388, allocations: 0 / 0.5643 GB, free: 15.74 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.1622, allocations: 1.948 MB / 0.5662 GB, free: 13.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.051/8.213, allocations: 12.52 kB / 0.5662 GB, free: 13.84 MB / 430.1 MB " [Timeout remaining time 652] (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 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.464420174714178]